1{ stdenv, fetchurl }:
2
3stdenv.mkDerivation rec {
4 name = "parse-cli-bin-${version}";
5 version = "3.0.5";
6
7 src = fetchurl {
8 url = "https://github.com/ParsePlatform/parse-cli/releases/download/release_${version}/parse_linux";
9 sha256 = "1iyfizbbxmr87wjgqiwqds51irgw6l3vm9wn89pc3zpj2zkyvf5h";
10 };
11
12 meta = with stdenv.lib; {
13 description = "Parse Command Line Interface";
14 homepage = "https://parse.com";
15 platforms = platforms.linux;
16 };
17
18 phases = "installPhase";
19
20 installPhase = ''
21 mkdir -p "$out/bin"
22 cp "$src" "$out/bin/parse"
23 chmod +x "$out/bin/parse"
24 '';
25}