diff options
| author | quentin@aristote.fr <quentin@aristote.fr> | 2026-01-25 20:19:01 +0100 |
|---|---|---|
| committer | quentin@aristote.fr <quentin@aristote.fr> | 2026-01-25 20:48:23 +0100 |
| commit | d00f8fb1791e6f412d4a8898b53cdbe3cac20daa (patch) | |
| tree | 9d493ea1c2af4721be7a27f72470dcb818fd2c47 /config/services/git/shell-commands/repo/default.nix | |
| parent | fbb1709e1504280ca5576f91d85bb7f5dfeff37a (diff) | |
git: add shell-commands
Diffstat (limited to 'config/services/git/shell-commands/repo/default.nix')
| -rw-r--r-- | config/services/git/shell-commands/repo/default.nix | 19 |
1 files changed, 19 insertions, 0 deletions
diff --git a/config/services/git/shell-commands/repo/default.nix b/config/services/git/shell-commands/repo/default.nix new file mode 100644 index 0000000..bbccbfd --- /dev/null +++ b/config/services/git/shell-commands/repo/default.nix @@ -0,0 +1,19 @@ +{ lib, pkgs }: + +pkgs.stdenvNoCC.mkDerivation { + name = "repo"; + src = lib.fileset.toSource { + root = ./src; + fileset = ./src; + }; + buildInputs = [ pkgs.bashly ]; + unpackPhase = '' + ln --symbolic --no-target-directory "$src" src + ''; + buildPhase = '' + bashly generate + ''; + installPhase = '' + install ./repo "$out" + ''; +} |
