1 { buildGoModule, fetchFromGitHub, lib, makeWrapper, openssh }:
7 src = fetchFromGitHub {
11 sha256 = "sha256-0CHmjqPxBgALGZYjfJFLoLBnoI0U7oZ8WyCtu1bkzZg=";
14 vendorSha256 = "08zzp0h4c4i5hk4whz06a3da7qjms6lr36596vxz0d8q0n7rspr9";
16 nativeBuildInputs = [ makeWrapper ];
19 "-X main.version=${version}"
20 "-X main.assetRoot=${placeholder "lib"}"
25 cp -v ./data/*.nix $lib
26 wrapProgram $out/bin/morph --prefix PATH : ${lib.makeBinPath [ openssh ]};
29 outputs = [ "out" "lib" ];
32 description = "A NixOS host manager written in Golang";
33 license = licenses.mit;
34 homepage = "https://github.com/dbcdk/morph";
35 maintainers = with maintainers; [adamt johanot];
36 platforms = platforms.unix;