Add genpass via nix
This commit is contained in:
parent
3b20ce938d
commit
3d82c908aa
2 changed files with 27 additions and 1 deletions
|
@ -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
|
||||||
|
|
26
nixos/programs/genpass.nix
Normal file
26
nixos/programs/genpass.nix
Normal 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;
|
||||||
|
};
|
||||||
|
}
|
Loading…
Reference in a new issue