depot/third_party/nixpkgs/pkgs/development/tools/parse-cli-bin/default.nix
Default email a3bb8d7922 Project import generated by Copybara.
GitOrigin-RevId: 439b1605227b8adb1357b55ce8529d541abbe9eb
2021-08-06 00:33:18 +03:00

26 lines
621 B
Nix

{ lib, stdenv, fetchurl }:
stdenv.mkDerivation rec {
pname = "parse-cli-bin";
version = "3.0.5";
src = fetchurl {
url = "https://github.com/ParsePlatform/parse-cli/releases/download/release_${version}/parse_linux";
sha256 = "1iyfizbbxmr87wjgqiwqds51irgw6l3vm9wn89pc3zpj2zkyvf5h";
};
meta = with lib; {
description = "Parse Command Line Interface";
homepage = "https://parse.com";
platforms = platforms.linux;
license = licenses.bsd3;
};
dontUnpack = true;
installPhase = ''
mkdir -p "$out/bin"
cp "$src" "$out/bin/parse"
chmod +x "$out/bin/parse"
'';
}