From d03cee22c4c1fc01904dfb7ae374bfd136414630 Mon Sep 17 00:00:00 2001 From: Chris Martin Date: Wed, 4 Nov 2015 23:58:42 -0500 Subject: [PATCH] parse: init at 3.0.1 --- .../tools/parse-cli-bin/default.nix | 29 +++++++++++++++++++ pkgs/top-level/all-packages.nix | 2 ++ 2 files changed, 31 insertions(+) create mode 100644 pkgs/development/tools/parse-cli-bin/default.nix 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 00000000000..33a6a7ebcef --- /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" + ''; + +} diff --git a/pkgs/top-level/all-packages.nix b/pkgs/top-level/all-packages.nix index 8c9dae0af51..4245034ec77 100644 --- a/pkgs/top-level/all-packages.nix +++ b/pkgs/top-level/all-packages.nix @@ -5728,6 +5728,8 @@ let oprofile = callPackage ../development/tools/profiling/oprofile { }; + parse-cli-bin = callPackage ../development/tools/parse-cli-bin { }; + patchelf = callPackage ../development/tools/misc/patchelf { }; peg = callPackage ../development/tools/parsing/peg { };