summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorKatharina Fey <kookie@spacekookie.de>2019-07-14 20:28:52 +0100
committerKatharina Fey <kookie@spacekookie.de>2019-07-14 20:28:52 +0100
commit0d8ebee2c81d78a0f3c2450736d206ae181e8470 (patch)
tree9255520c8aafa1dde34449d1ae067076e569996b
parent5374bed33eb4c1e233ed692510005da898ffbfa7 (diff)
Adding `default.nix` build fileHEADmaster
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.nix15
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
+ '';
+}