depot/third_party/nixpkgs/pkgs/tools/package-management/nix-simple-deploy/default.nix
Default email e18f6fb5f9 Project import generated by Copybara.
GitOrigin-RevId: 9df2cb074d72ea80ac9fd225b29060c8cf13dd39
2021-08-11 16:56:57 +02:00

30 lines
898 B
Nix

{ lib, fetchFromGitHub, rustPlatform, makeWrapper, openssh, nix-serve }:
rustPlatform.buildRustPackage rec {
pname = "nix-simple-deploy";
version = "0.2.2";
src = fetchFromGitHub {
owner = "misuzu";
repo = pname;
rev = version;
sha256 = "1qq4fbsd2mvxblsggwbnh88mj18f3vrfzv1kgc7a92pfiwxznq8r";
};
cargoSha256 = "1r6dl7qipbyyvjcd3l9ynawjln1g1qzvw5za6nyjcf41dzv48m8x";
nativeBuildInputs = [ makeWrapper ];
postInstall = ''
wrapProgram "$out/bin/nix-simple-deploy" \
--prefix PATH : "${lib.makeBinPath [ openssh nix-serve ]}"
'';
meta = with lib; {
description = "Deploy software or an entire NixOS system configuration to another NixOS system";
homepage = "https://github.com/misuzu/nix-simple-deploy";
platforms = platforms.unix;
license = with licenses; [ asl20 /* OR */ mit ];
maintainers = with maintainers; [ misuzu ];
};
}