ma gen-oath-safe: init
This commit is contained in:
parent
51e091c7c3
commit
d9cc50653d
37
makefu/5pkgs/gen-oath-safe/default.nix
Normal file
37
makefu/5pkgs/gen-oath-safe/default.nix
Normal file
@ -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}
|
||||||
|
'';
|
||||||
|
}
|
Loading…
Reference in New Issue
Block a user