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