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 let
[
"x86_64-linux" pkgs = import nixpkgs {
"aarch64-linux" system = "x86_64-linux";
"x86_64-darwin" overlays = [ self.overlay ];
"aarch64-darwin" };
]
( in {
system:
let overlay = final: prev: {
pkgs = nixpkgs.legacyPackages.${system}; kon =
in
{
packages.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 @@
}) })
]; ];
}; };
} };
); };
} }