nixpkgs/pkgs/development/tools/parse-cli-bin/default.nix

25 lines
605 B
Nix
Raw Normal View History

2015-11-05 05:58:42 +01:00
{ stdenv, fetchurl }:
2016-05-25 01:35:53 +02:00
stdenv.mkDerivation rec {
2015-11-05 05:58:42 +01:00
name = "parse-cli-bin-${version}";
2016-05-25 01:35:53 +02:00
version = "3.0.5";
2015-11-05 05:58:42 +01:00
src = fetchurl {
2016-05-25 01:35:53 +02:00
url = "https://github.com/ParsePlatform/parse-cli/releases/download/release_${version}/parse_linux";
sha256 = "1iyfizbbxmr87wjgqiwqds51irgw6l3vm9wn89pc3zpj2zkyvf5h";
2015-11-05 05:58:42 +01:00
};
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"
'';
2016-05-25 01:35:53 +02:00
}