Clone of https://github.com/NixOS/nixpkgs.git (to stress-test knotserver)
1{ 2 lib, 3 stdenv, 4 fetchurl, 5}: 6 7stdenv.mkDerivation rec { 8 pname = "parse-cli-bin"; 9 version = "3.0.5"; 10 11 src = fetchurl { 12 url = "https://github.com/ParsePlatform/parse-cli/releases/download/release_${version}/parse_linux"; 13 sha256 = "1iyfizbbxmr87wjgqiwqds51irgw6l3vm9wn89pc3zpj2zkyvf5h"; 14 }; 15 16 meta = with lib; { 17 description = "Parse Command Line Interface"; 18 mainProgram = "parse"; 19 homepage = "https://parse.com"; 20 platforms = platforms.linux; 21 license = licenses.bsd3; 22 }; 23 24 dontUnpack = true; 25 26 installPhase = '' 27 mkdir -p "$out/bin" 28 cp "$src" "$out/bin/parse" 29 chmod +x "$out/bin/parse" 30 ''; 31}