pkgs/build-support: Add writePytonScript helper function
This commit is contained in:
@@ -1,13 +1,6 @@
|
||||
{ pkgs, ... }:
|
||||
|
||||
pkgs.writeTextFile {
|
||||
pkgs.clerie-build-support.writePythonScript {
|
||||
name = "git-show-link";
|
||||
executable = true;
|
||||
destination = "/bin/git-show-link";
|
||||
allowSubstitutes = true;
|
||||
preferLocalBuild = false;
|
||||
text = ''
|
||||
#!${pkgs.python3.withPackages (ps: with ps; [])}/bin/python3
|
||||
${builtins.readFile ./git-show-link.py}
|
||||
'';
|
||||
text = builtins.readFile ./git-show-link.py;
|
||||
}
|
||||
|
Reference in New Issue
Block a user