2021-08-08 11:16:12 +01:00
|
|
|
{ lib, fetchFromGitHub, rustPlatform, makeWrapper, openssh, nix-serve }:
|
2020-04-20 16:33:33 +01:00
|
|
|
|
|
|
|
rustPlatform.buildRustPackage rec {
|
|
|
|
pname = "nix-simple-deploy";
|
2021-08-09 18:51:27 +01:00
|
|
|
version = "0.2.2";
|
2020-04-20 16:33:33 +01:00
|
|
|
|
|
|
|
src = fetchFromGitHub {
|
|
|
|
owner = "misuzu";
|
|
|
|
repo = pname;
|
|
|
|
rev = version;
|
2021-08-09 18:51:27 +01:00
|
|
|
sha256 = "1qq4fbsd2mvxblsggwbnh88mj18f3vrfzv1kgc7a92pfiwxznq8r";
|
2020-04-20 16:33:33 +01:00
|
|
|
};
|
|
|
|
|
2021-08-09 18:51:27 +01:00
|
|
|
cargoSha256 = "1r6dl7qipbyyvjcd3l9ynawjln1g1qzvw5za6nyjcf41dzv48m8x";
|
2021-08-08 11:16:12 +01:00
|
|
|
|
|
|
|
nativeBuildInputs = [ makeWrapper ];
|
|
|
|
|
|
|
|
postInstall = ''
|
|
|
|
wrapProgram "$out/bin/nix-simple-deploy" \
|
|
|
|
--prefix PATH : "${lib.makeBinPath [ openssh nix-serve ]}"
|
|
|
|
'';
|
2020-04-20 16:33:33 +01:00
|
|
|
|
2021-01-11 07:54:33 +00:00
|
|
|
meta = with lib; {
|
2020-04-20 16:33:33 +01:00
|
|
|
description = "Deploy software or an entire NixOS system configuration to another NixOS system";
|
|
|
|
homepage = "https://github.com/misuzu/nix-simple-deploy";
|
2021-08-08 11:16:12 +01:00
|
|
|
platforms = platforms.unix;
|
2020-04-20 16:33:33 +01:00
|
|
|
license = with licenses; [ asl20 /* OR */ mit ];
|
|
|
|
maintainers = with maintainers; [ misuzu ];
|
|
|
|
};
|
|
|
|
}
|