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