diff options
author | makefu <github@syntax-fehler.de> | 2017-06-30 22:36:25 +0200 |
---|---|---|
committer | makefu <github@syntax-fehler.de> | 2017-06-30 22:36:25 +0200 |
commit | d9cc50653d0c7998052284cfb66b2229e0ce849b (patch) | |
tree | f0b056214370b2452f1c19435c4bada5d15b4b86 /makefu/5pkgs/gen-oath-safe | |
parent | 51e091c7c3fb52579bc9ed59d1c7db633cd24e5b (diff) |
ma gen-oath-safe: init
Diffstat (limited to 'makefu/5pkgs/gen-oath-safe')
-rw-r--r-- | makefu/5pkgs/gen-oath-safe/default.nix | 37 |
1 files changed, 37 insertions, 0 deletions
diff --git a/makefu/5pkgs/gen-oath-safe/default.nix b/makefu/5pkgs/gen-oath-safe/default.nix new file mode 100644 index 000000000..245e65174 --- /dev/null +++ b/makefu/5pkgs/gen-oath-safe/default.nix @@ -0,0 +1,37 @@ +{ coreutils, makeWrapper, openssl, libcaca, qrencode, fetchFromGitHub, yubikey-manager, python, stdenv, ... }: + +stdenv.mkDerivation { + name = "geno-oath-safe-2017-06-30"; + src = fetchFromGitHub { + owner = "mcepl"; + repo = "gen-oath-safe"; + rev = "fb53841"; + sha256 = "0018kqmhg0861r5xkbis2a1rx49gyn0dxcyj05wap5ms7zz69m0m"; + }; + + phases = [ + "unpackPhase" + "installPhase" + "fixupPhase" + ]; + + buildInputs = [ makeWrapper ]; + + installPhase = + let + path = stdenv.lib.makeBinPath [ + coreutils + openssl + qrencode + yubikey-manager + libcaca + python + ]; + in + '' + mkdir -p $out/bin + cp gen-oath-safe $out/bin/ + wrapProgram $out/bin/gen-oath-safe \ + --prefix PATH : ${path} + ''; +} |