diff options
author | Katharina Fey <kookie@spacekookie.de> | 2019-07-14 20:28:52 +0100 |
---|---|---|
committer | Katharina Fey <kookie@spacekookie.de> | 2019-07-14 20:28:52 +0100 |
commit | 0d8ebee2c81d78a0f3c2450736d206ae181e8470 (patch) | |
tree | 9255520c8aafa1dde34449d1ae067076e569996b | |
parent | 5374bed33eb4c1e233ed692510005da898ffbfa7 (diff) |
Using the script in a not-nix system is a bit awkward
and potentially requires changing the path concatination
to point to a different directory to find `gitignore`
-rw-r--r-- | default.nix | 15 |
1 files changed, 15 insertions, 0 deletions
diff --git a/default.nix b/default.nix new file mode 100644 index 0000000..86f34d5 --- /dev/null +++ b/default.nix @@ -0,0 +1,15 @@ +with import <nixpkgs> {}; + +stdenv.mkDerivation { + name = "gi-cli"; + src = ./.; + buildInputs = with pkgs; [ + ruby + ruby.devdoc + ]; + installPhase = '' + mkdir -p $out/bin + cp -r gitignore $out/ + cp gicli.rb $out/bin/gicli + ''; +} |