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