2022-04-16 10:39:33 +00:00
|
|
|
{ writeTextFile, python3, python3Packages }:
|
|
|
|
let environment = python3.buildEnv.override {
|
|
|
|
extraLibs = with python3Packages; [
|
|
|
|
boto3
|
|
|
|
];
|
|
|
|
}; in
|
|
|
|
writeTextFile {
|
2022-03-16 19:34:58 +00:00
|
|
|
name = "clean-s3-cache.py";
|
|
|
|
executable = true;
|
|
|
|
destination = "/bin/clean-s3-cache.py";
|
2022-04-16 10:39:33 +00:00
|
|
|
text = builtins.replaceStrings [ "#SHEBANG#" ] [ "${environment}/bin/python" ] (builtins.readFile ./clean-s3-cache.py);
|
2022-03-16 19:34:58 +00:00
|
|
|
}
|