Add genpass via nix

This commit is contained in:
Cyryl Płotnicki 2020-05-01 22:13:13 +01:00
parent 3b20ce938d
commit 3d82c908aa
2 changed files with 27 additions and 1 deletions

View file

@ -1,7 +1,7 @@
{ config, pkgs, ... }: { config, pkgs, ... }:
{ {
home.packages = with pkgs; [ home.packages = with pkgs; [
(import ./programs/genpass.nix {})
wget git gnupg curl tmux htop atop pciutils powertop ripgrep-all fd dnsutils du-dust wget git gnupg curl tmux htop atop pciutils powertop ripgrep-all fd dnsutils du-dust
( pass.withExtensions (ext: [ ext.pass-otp ext.pass-import ext.pass-genphrase ext.pass-audit ext.pass-update ])) ( pass.withExtensions (ext: [ ext.pass-otp ext.pass-import ext.pass-genphrase ext.pass-audit ext.pass-update ]))
cabal-install stack hsetroot lm_sensors cabal-install stack hsetroot lm_sensors

View file

@ -0,0 +1,26 @@
{ pkgs ? import <nixpkgs> {} }:
with pkgs;
rustPlatform.buildRustPackage rec {
pname = "genpass";
version = "0.4.1";
src = fetchFromGitHub {
owner = "cyplo";
repo = pname;
rev = "v" + version;
sha256 = "1b22m7g55k5ry0vwyd8pakh8rmfkhk37qy5r74cn3n5pv3fcwini";
};
cargoSha256 = "0lpavjm9yq7fcyqj8ihs60ipmz3f724rkyh50j6f62g6fkn8jybi";
buildInputs = [
openssl pkgconfig git
];
meta = with stdenv.lib; {
description = "A simple yet robust commandline random password generator.";
homepage = "https://github.com/cyplo/genpass";
license = licenses.agpl3;
platforms = platforms.all;
};
}