diff options
author | Profpatsch <mail@profpatsch.de> | 2019-03-25 13:50:16 +0100 |
---|---|---|
committer | Profpatsch <mail@profpatsch.de> | 2019-03-25 13:53:46 +0100 |
commit | 419be355e2c200f940e02aba1a5f503974399bec (patch) | |
tree | 58b7ed864cd16d85e72a5426a577be66186d2788 /pkgs/profpatsch/default.nix | |
parent | 2217ba46e3e93d049c5e6aadf3b1c0090e8c7725 (diff) |
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.
Diffstat (limited to 'pkgs/profpatsch/default.nix')
-rw-r--r-- | pkgs/profpatsch/default.nix | 7 |
1 files changed, 7 insertions, 0 deletions
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 {}; |