Merge pull request #61735 from evax/passff-host-1.2.1

passff-host: 1.0.2 -> 1.2.1
This commit is contained in:
Renaud 2019-05-21 17:43:13 +02:00 committed by GitHub
commit 2e3295d65f
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23

View File

@ -2,24 +2,21 @@
stdenv.mkDerivation rec {
name = "passff-host-${version}";
version = "1.0.2";
version = "1.2.1";
src = fetchFromGitHub {
owner = "passff";
repo = "passff-host";
rev = version;
sha256 = "1zks34rg9i8vphjrj1h80y5rijadx33z911qxa7pslf7ahmjqdv3";
sha256 = "0ydfwvhgnw5c3ydx2gn5d7ys9g7cxlck57vfddpv6ix890v21451";
};
buildInputs = [ python3 ];
patchPhase = ''
sed -i 's#COMMAND = "pass"#COMMAND = "${pass}/bin/pass"#' src/passff.py
sed -i 's#COMMAND = "pass"#COMMAND = "${pass}/bin/pass"#' src/passff.py
'';
preBuild = "cd src";
postBuild = "cd ..";
installPhase = ''
install -D bin/testing/passff.py $out/share/passff-host/passff.py
cp bin/testing/passff.json $out/share/passff-host/passff.json