Clone of https://github.com/NixOS/nixpkgs.git (to stress-test knotserver)
1{ lib, stdenv, fetchurl }: 2 3stdenv.mkDerivation rec { 4 pname = "parse-cli-bin"; 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 lib; { 13 description = "Parse Command Line Interface"; 14 homepage = "https://parse.com"; 15 platforms = platforms.linux; 16 license = licenses.bsd3; 17 }; 18 19 dontUnpack = true; 20 21 installPhase = '' 22 mkdir -p "$out/bin" 23 cp "$src" "$out/bin/parse" 24 chmod +x "$out/bin/parse" 25 ''; 26}