2022-12-17 10:02:37 +00:00
|
|
|
{ lib
|
|
|
|
, stdenv
|
|
|
|
, fetchFromGitHub
|
|
|
|
, rustPlatform
|
|
|
|
, CoreServices
|
|
|
|
, SystemConfiguration
|
|
|
|
}:
|
2022-08-12 12:06:08 +00:00
|
|
|
|
2023-04-12 12:48:02 +00:00
|
|
|
rustPlatform.buildRustPackage {
|
2022-08-12 12:06:08 +00:00
|
|
|
pname = "deploy-rs";
|
2023-10-09 19:29:22 +00:00
|
|
|
version = "unstable-2023-09-12";
|
2022-08-12 12:06:08 +00:00
|
|
|
|
|
|
|
src = fetchFromGitHub {
|
|
|
|
owner = "serokell";
|
|
|
|
repo = "deploy-rs";
|
2023-10-09 19:29:22 +00:00
|
|
|
rev = "31c32fb2959103a796e07bbe47e0a5e287c343a8";
|
|
|
|
hash = "sha256-wE5kHco3+FQjc+MwTPwLVqYz4hM7uno2CgXDXUFMCpc=";
|
2022-08-12 12:06:08 +00:00
|
|
|
};
|
|
|
|
|
2023-10-09 19:29:22 +00:00
|
|
|
cargoHash = "sha256-WqZnDWMrqWy1rzR6n+acFW6VHWbDnQmoxtPDA5B37JU=";
|
2022-08-12 12:06:08 +00:00
|
|
|
|
2022-12-17 10:02:37 +00:00
|
|
|
buildInputs = lib.optionals stdenv.isDarwin [
|
|
|
|
CoreServices
|
|
|
|
SystemConfiguration
|
|
|
|
];
|
2022-08-12 12:06:08 +00:00
|
|
|
|
|
|
|
meta = with lib; {
|
2022-12-17 10:02:37 +00:00
|
|
|
description = "Multi-profile Nix-flake deploy tool";
|
2022-08-12 12:06:08 +00:00
|
|
|
homepage = "https://github.com/serokell/deploy-rs";
|
|
|
|
license = licenses.mpl20;
|
2022-12-17 10:02:37 +00:00
|
|
|
maintainers = with maintainers; [ teutat3s ];
|
2023-10-09 19:29:22 +00:00
|
|
|
mainProgram = "deploy";
|
2022-08-12 12:06:08 +00:00
|
|
|
};
|
|
|
|
}
|