feat: add flake support

This commit is contained in:
Louis Dalibard 2024-07-10 14:48:56 +02:00
parent 6cc2e90a86
commit cf23eb92bf

View File

@ -14,6 +14,9 @@
let
adam-gui-libs = with pkgs; [
libGL pkg-config xorg.libX11.dev xorg.libXcursor xorg.libXi xorg.libXinerama xorg.libXrandr xorg.libXxf86vm
];
kon-libs = with pkgs; [
pkg-config
];
pkgs = import nixpkgs {
system = "x86_64-linux";
@ -66,7 +69,7 @@
postInstall = ''
wrapProgram "$out/bin/kon" \
--prefix LD_LIBRARY_PATH : ${lib.makeLibraryPath libs}
--prefix LD_LIBRARY_PATH : ${lib.makeLibraryPath kon-libs}
'';
});
adam-gui = pkgs.symlinkJoin {
@ -80,7 +83,7 @@
buildInputs = [
gcc
go
] ++ libs;
] ++ kon-libs;
nativeBuildInputs = with pkgs; [
pkg-config
@ -110,7 +113,7 @@
postInstall = ''
wrapProgram "$out/bin/adam-gui" \
--prefix LD_LIBRARY_PATH : ${lib.makeLibraryPath libs}
--prefix LD_LIBRARY_PATH : ${lib.makeLibraryPath adam-gui-libs}
'';
postFixup = ''