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