Skip to content

Commit

Permalink
Merge pull request #233 from johanot/one-package
Browse files Browse the repository at this point in the history
flake: use the package spec in default.nix
  • Loading branch information
cafkafk authored Dec 13, 2024
2 parents f4b7ecc + 41e3ddd commit 4e83869
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 29 deletions.
1 change: 1 addition & 0 deletions default.nix
Original file line number Diff line number Diff line change
Expand Up @@ -30,5 +30,6 @@ pkgs.buildGoModule rec {
meta = {
homepage = "https://github.com/DBCDK/morph";
description = "Morph is a NixOS host manager written in Golang.";
mainProgram = "morph";
};
}
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 4e83869

Please sign in to comment.