feat: add flake support

This commit is contained in:
Louis Dalibard 2024-07-10 14:34:12 +02:00
parent de73c66c26
commit 10e03355a7

View File

@ -13,20 +13,17 @@
utils, utils,
... ...
}: }:
utils.lib.eachSystem
[
"x86_64-linux"
"aarch64-linux"
"x86_64-darwin"
"aarch64-darwin"
]
(
system:
let let
pkgs = nixpkgs.legacyPackages.${system};
in pkgs = import nixpkgs {
{ system = "x86_64-linux";
packages.kon = overlays = [ self.overlay ];
};
in {
overlay = final: prev: {
kon =
with pkgs; with pkgs;
(buildGoModule rec { (buildGoModule rec {
pname = "kon"; pname = "kon";
@ -67,7 +64,7 @@
--prefix LD_LIBRARY_PATH : ${lib.makeLibraryPath libs} --prefix LD_LIBRARY_PATH : ${lib.makeLibraryPath libs}
''; '';
}); });
packages.adam-gui = pkgs.symlinkJoin { adam-gui = pkgs.symlinkJoin {
name = "adam-gui"; name = "adam-gui";
version = "0.0.1"; version = "0.0.1";
paths = with pkgs; [ paths = with pkgs; [
@ -128,7 +125,7 @@
}) })
]; ];
}; };
} };
); };
} }