feat: add flake support
This commit is contained in:
parent
6cc2e90a86
commit
cf23eb92bf
@ -15,6 +15,9 @@
|
||||
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";
|
||||
overlays = [ self.overlays.default ];
|
||||
@ -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 = ''
|
||||
|
Loading…
Reference in New Issue
Block a user