use substituteAllInPlace for clean-s3-cache
This commit is contained in:
parent
6b1156875e
commit
67714ad579
2 changed files with 9 additions and 8 deletions
14
flake.lock
14
flake.lock
|
@ -3,11 +3,11 @@
|
||||||
"clean-s3-cache": {
|
"clean-s3-cache": {
|
||||||
"flake": false,
|
"flake": false,
|
||||||
"locked": {
|
"locked": {
|
||||||
"lastModified": 1654951411,
|
"lastModified": 1654955107,
|
||||||
"narHash": "sha256-Om6LZGjdrhsIL2K8VwzyRrX3+fOHJ1Bct4pI7/ijDP4=",
|
"narHash": "sha256-eOT9UWpp75gchFDhgnwj1UpVBAZZG5nJUl6N+JAIkT8=",
|
||||||
"ref": "refs/heads/main",
|
"ref": "refs/heads/main",
|
||||||
"rev": "e4bef52b5b8b8427d7027c681c96ac52ea007421",
|
"rev": "1a4dc9cc727b1f824507f28d35cbc93008d7de76",
|
||||||
"revCount": 1,
|
"revCount": 2,
|
||||||
"type": "git",
|
"type": "git",
|
||||||
"url": "https://gist.github.com/DarkKirb/533e9e8b9b6dd1badf9b103b4285dc4e"
|
"url": "https://gist.github.com/DarkKirb/533e9e8b9b6dd1badf9b103b4285dc4e"
|
||||||
},
|
},
|
||||||
|
@ -33,11 +33,11 @@
|
||||||
},
|
},
|
||||||
"nixpkgs": {
|
"nixpkgs": {
|
||||||
"locked": {
|
"locked": {
|
||||||
"lastModified": 1654948247,
|
"lastModified": 1654953433,
|
||||||
"narHash": "sha256-QCrcW0H15lwGf7xrk2N+Oj9Bw/5YE2/JL2fWUdWRXf8=",
|
"narHash": "sha256-TwEeh4r50NdWHFAHQSyjCk2cZxgwUfcCCAJOhPdXB28=",
|
||||||
"owner": "NixOS",
|
"owner": "NixOS",
|
||||||
"repo": "nixpkgs",
|
"repo": "nixpkgs",
|
||||||
"rev": "f8284756368b763e7e765f35b6305322c3d14599",
|
"rev": "90cd5459a1fd707819b9a3fb9c852beaaac3b79a",
|
||||||
"type": "github"
|
"type": "github"
|
||||||
},
|
},
|
||||||
"original": {
|
"original": {
|
||||||
|
|
|
@ -6,8 +6,9 @@
|
||||||
pname = "clean-s3-cache";
|
pname = "clean-s3-cache";
|
||||||
version = inputs.clean-s3-cache.lastModifiedDate;
|
version = inputs.clean-s3-cache.lastModifiedDate;
|
||||||
srcs = inputs.clean-s3-cache;
|
srcs = inputs.clean-s3-cache;
|
||||||
|
python = clean-s3-cache-env;
|
||||||
buildPhase = ''
|
buildPhase = ''
|
||||||
sed -i 's|#SHEBANG#|${clean-s3-cache-env}|' clean-s3-cache.py
|
substituteAllInPlace clean-s3-cache.py
|
||||||
'';
|
'';
|
||||||
installPhase = ''
|
installPhase = ''
|
||||||
mkdir -p $out/bin
|
mkdir -p $out/bin
|
||||||
|
|
Reference in a new issue