From ce831333a24011d0692f6871047fe74eab9fab8c Mon Sep 17 00:00:00 2001 From: "quentin@aristote.fr" Date: Sun, 29 Nov 2026 17:24:18 +0100 Subject: initial commit --- config/services/git/shell-commands/repo/default.nix | 19 +++++++++++++++++++ 1 file changed, 19 insertions(+) create mode 100644 config/services/git/shell-commands/repo/default.nix (limited to 'config/services/git/shell-commands/repo/default.nix') 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" + ''; +} -- cgit v1.3.1