summaryrefslogtreecommitdiffstats
path: root/makefu/5pkgs/gen-oath-safe/default.nix
diff options
context:
space:
mode:
authorlassulus <lassulus@lassul.us>2017-07-03 00:02:34 +0200
committerlassulus <lassulus@lassul.us>2017-07-03 00:02:34 +0200
commitc30e1fbc74c050386a82d1050ecc77b44401df6b (patch)
treec7d29147fe0387e9618c16838ab4bd3a0fcbfbd3 /makefu/5pkgs/gen-oath-safe/default.nix
parentd5aca8696caeac6d88923e1f668af213abc987fa (diff)
parent5f3bece0d647f65c2354ae0944a50d775a3b488e (diff)
Merge remote-tracking branch 'gum/master'
Diffstat (limited to 'makefu/5pkgs/gen-oath-safe/default.nix')
-rw-r--r--makefu/5pkgs/gen-oath-safe/default.nix37
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}
+ '';
+}