pridefetch: make reproducible
This commit is contained in:
parent
24eb37f2a8
commit
b06a89a01c
|
@ -2,6 +2,7 @@
|
||||||
, fetchFromGitHub
|
, fetchFromGitHub
|
||||||
, python3
|
, python3
|
||||||
, stdenv
|
, stdenv
|
||||||
|
, strip-nondeterminism
|
||||||
, zip
|
, zip
|
||||||
}:
|
}:
|
||||||
|
|
||||||
|
@ -22,6 +23,7 @@ stdenv.mkDerivation {
|
||||||
inherit pname version src;
|
inherit pname version src;
|
||||||
|
|
||||||
nativeBuildInputs = [
|
nativeBuildInputs = [
|
||||||
|
strip-nondeterminism
|
||||||
zip
|
zip
|
||||||
];
|
];
|
||||||
|
|
||||||
|
@ -35,6 +37,7 @@ stdenv.mkDerivation {
|
||||||
runHook preBuild
|
runHook preBuild
|
||||||
pushd src
|
pushd src
|
||||||
zip -r ../pridefetch.zip ./*
|
zip -r ../pridefetch.zip ./*
|
||||||
|
strip-nondeterminism ../pridefetch.zip
|
||||||
popd
|
popd
|
||||||
echo '#!/usr/bin/env python' | cat - pridefetch.zip > pridefetch
|
echo '#!/usr/bin/env python' | cat - pridefetch.zip > pridefetch
|
||||||
rm pridefetch.zip
|
rm pridefetch.zip
|
||||||
|
|
Loading…
Reference in a new issue