Skip to content

Commit

Permalink
flake: use the package spec in default.nix
Browse files Browse the repository at this point in the history
  • Loading branch information
johanot committed Dec 13, 2024
1 parent f4b7ecc commit 037e759
Showing 1 changed file with 1 addition and 29 deletions.
30 changes: 1 addition & 29 deletions flake.nix
Original file line number Diff line number Diff line change
Expand Up @@ -78,35 +78,7 @@

packages = rec {
default = morph;
morph = pkgs.buildGoModule rec {
name = "morph-unstable-${version}";
inherit version;

src = pkgs.nix-gitignore.gitignoreSource [ ] ./.;

ldflags = [
"-X main.version=${version}"
"-X main.assetRoot=${placeholder "lib"}"
];

vendorHash = "sha256-Mi0SdvmYao6rLt8+bFcUv2AjHkJTLP85zGka1/cCPzQ=";

postInstall = ''
mkdir -p $lib
cp -v ./data/*.nix $lib
'';

outputs = [
"out"
"lib"
];

meta = {
homepage = "https://github.com/DBCDK/morph";
description = "Morph is a NixOS host manager written in Golang.";
mainProgram = "morph";
};
};
morph = pkgs.callPackage ./default.nix { inherit version; };
};
}
);
Expand Down

0 comments on commit 037e759

Please sign in to comment.