about summary refs log tree commit diff
path: root/pkgs/development/tools/parse-cli-bin/default.nix
diff options
context:
space:
mode:
authorChris Martin <ch.martin@gmail.com>2015-11-04 23:58:42 -0500
committerChris Martin <ch.martin@gmail.com>2015-11-09 04:22:34 -0500
commitd03cee22c4c1fc01904dfb7ae374bfd136414630 (patch)
tree0d308ffb0607cba6ce3ff7b2edff95aa7f088182 /pkgs/development/tools/parse-cli-bin/default.nix
parentfc6c73c3c2ffa79988e8776f489c17276300c2ff (diff)
downloadnixlib-d03cee22c4c1fc01904dfb7ae374bfd136414630.tar
nixlib-d03cee22c4c1fc01904dfb7ae374bfd136414630.tar.gz
nixlib-d03cee22c4c1fc01904dfb7ae374bfd136414630.tar.bz2
nixlib-d03cee22c4c1fc01904dfb7ae374bfd136414630.tar.lz
nixlib-d03cee22c4c1fc01904dfb7ae374bfd136414630.tar.xz
nixlib-d03cee22c4c1fc01904dfb7ae374bfd136414630.tar.zst
nixlib-d03cee22c4c1fc01904dfb7ae374bfd136414630.zip
parse: init at 3.0.1
Diffstat (limited to 'pkgs/development/tools/parse-cli-bin/default.nix')
-rw-r--r--pkgs/development/tools/parse-cli-bin/default.nix29
1 files changed, 29 insertions, 0 deletions
diff --git a/pkgs/development/tools/parse-cli-bin/default.nix b/pkgs/development/tools/parse-cli-bin/default.nix
new file mode 100644
index 000000000000..33a6a7ebceff
--- /dev/null
+++ b/pkgs/development/tools/parse-cli-bin/default.nix
@@ -0,0 +1,29 @@
+{ stdenv, fetchurl }:
+
+let
+  version = "3.0.1";
+
+in stdenv.mkDerivation rec {
+
+  name = "parse-cli-bin-${version}";
+
+  src = fetchurl {
+    url    = "https://github.com/ParsePlatform/parse-cli/releases/download/release_${version}/parse_linux";
+    sha256 = "d68eccc1d9408b60901b149d2b4710f3cfd0eabe5772d2e222c06870fdeca3c7";
+  };
+
+  meta = with stdenv.lib; {
+    description = "Parse Command Line Interface";
+    homepage    = "https://parse.com";
+    platforms   = platforms.linux;
+  };
+
+  phases = "installPhase";
+
+  installPhase = ''
+    mkdir -p "$out/bin"
+    cp "$src" "$out/bin/parse"
+    chmod +x "$out/bin/parse"
+  '';
+
+}