From 0d8ebee2c81d78a0f3c2450736d206ae181e8470 Mon Sep 17 00:00:00 2001 From: Katharina Fey Date: Sun, 14 Jul 2019 20:28:52 +0100 Subject: Adding `default.nix` build file 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` --- default.nix | 15 +++++++++++++++ 1 file changed, 15 insertions(+) create mode 100644 default.nix 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 {}; + +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 + ''; +} -- cgit v1.2.3