pkgs/git-show-link: Add helper to display links to local git objects
This commit is contained in:
13
pkgs/git-show-link/default.nix
Normal file
13
pkgs/git-show-link/default.nix
Normal file
@@ -0,0 +1,13 @@
|
||||
{ pkgs, ... }:
|
||||
|
||||
pkgs.writeTextFile {
|
||||
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}
|
||||
'';
|
||||
}
|
Reference in New Issue
Block a user