nixpkgs/pkgs/tools/package-management/deploy-rs/default.nix
Elis Hirwing 7728fdcb6f deploy-rs: Set mainProgram meta attribute
This makes it possible to run `deploy-rs` using `nix run nixpkgs#deploy-rs`
2023-08-22 23:04:23 +02:00

35 lines
794 B
Nix

{ lib
, stdenv
, fetchFromGitHub
, rustPlatform
, CoreServices
, SystemConfiguration
}:
rustPlatform.buildRustPackage {
pname = "deploy-rs";
version = "unstable-2023-06-04";
src = fetchFromGitHub {
owner = "serokell";
repo = "deploy-rs";
rev = "65211db63ba1199f09b4c9f27e5eba5ec50d76ac";
hash = "sha256-1FldJ059so0X/rScdbIiOlQbjjSNCCTdj2cUr5pHU4A=";
};
cargoHash = "sha256-iUYtLH01YGxsDQbSnQrs4jw2eJxsOn2v3HOIfhsZbdQ=";
buildInputs = lib.optionals stdenv.isDarwin [
CoreServices
SystemConfiguration
];
meta = with lib; {
description = "Multi-profile Nix-flake deploy tool";
homepage = "https://github.com/serokell/deploy-rs";
license = licenses.mpl20;
maintainers = with maintainers; [ teutat3s ];
mainProgram = "deploy";
};
}