1
0

pkgs/build-support: Add writePytonScript helper function

This commit is contained in:
2025-06-28 14:03:57 +02:00
parent 721f6681e1
commit eace2fabb2
4 changed files with 46 additions and 9 deletions

View File

@@ -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;
}