nixpkgs/pkgs/tools/package-management/nix-simple-deploy/default.nix

31 lines
898 B
Nix
Raw Normal View History

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