From 419be355e2c200f940e02aba1a5f503974399bec Mon Sep 17 00:00:00 2001 From: Profpatsch Date: Mon, 25 Mar 2019 13:50:16 +0100 Subject: pkgs.profpatsch: add git-commit-index tools A set of utilities to generate and query a git commit index, which is a database that knows which revs (that is: commits) are in which git repository. That way we can query for the project that contains a commit and show them, e.g. with xdg-open. --- pkgs/profpatsch/default.nix | 7 +++++++ 1 file changed, 7 insertions(+) (limited to 'pkgs/profpatsch/default.nix') diff --git a/pkgs/profpatsch/default.nix b/pkgs/profpatsch/default.nix index d7c94ea6..a4378ecf 100644 --- a/pkgs/profpatsch/default.nix +++ b/pkgs/profpatsch/default.nix @@ -40,6 +40,12 @@ let }; in import src { nixpkgs = pkgs; }; + runCommandLocal = name: args: cmd: + pkgs.runCommand name (args // { + preferLocalBuild = true; + allowSubstitutes = false; + }) cmd; + in rec { inherit (nixperiments) # filterSource by parsing a .gitignore file @@ -55,6 +61,7 @@ in rec { backlight = callPackage ./backlight { inherit (pkgs.xorg) xbacklight; }; display-infos = callPackage ./display-infos {}; + git-commit-index = callPackage ./git-commit-index { inherit script runCommandLocal; }; nix-http-serve = callPackage ./nix-http-serve {}; nman = callPackage ./nman {}; show-qr-code = callPackage ./show-qr-code {}; -- cgit 1.4.1