diff options
Diffstat (limited to 'flake.nix')
| -rw-r--r-- | flake.nix | 14 |
1 files changed, 7 insertions, 7 deletions
@@ -22,7 +22,7 @@ # Nixpkgs instantiated for supported system types. nixpkgsFor = forAllSystems (system: import nixpkgs { inherit system; }); - deps = pkgs: with pkgs; [ libGL xorg.libXi xorg.libXcursor xorg.libXrandr xorg.libXinerama wayland libxkbcommon ]; + deps = pkgs: with pkgs; [ SDL2_mixer ]; in { @@ -40,13 +40,13 @@ # in the Nix store. src = ./.; - vendorHash = "sha256-ZWMZkwDMSUuuWCInVJ1YTd0W5GJedGrxYugKv1jhx2U="; + vendorHash = "sha256-0GaAPAg940MKg4XOw+WqZBT8jT2gXJIAWsltcHMgzfw="; + nativeBuildInputs = [ pkgs.pkg-config ]; buildInputs = deps pkgs; - proxyVendor = true; - postFixup = '' - patchelf $out/bin/pongo --add-rpath ${pkgs.lib.makeLibraryPath [ pkgs.alsa-lib ]} + preBuild = '' + export CGO_CFLAGS=$(pkg-config --cflags --libs SDL2_mixer) ''; }; }); @@ -58,9 +58,9 @@ in { default = pkgs.mkShell { - nativeBuildInputs = with pkgs; [ go gopls gotools go-tools ] ++ deps pkgs; + nativeBuildInputs = with pkgs; [ go gopls gotools go-tools pkg-config ] ++ deps pkgs; shellHook = '' - export LD_LIBRARY_PATH=${pkgs.lib.makeLibraryPath [ pkgs.alsa-lib ]} + export CGO_CFLAGS=$(pkg-config --cflags --libs SDL2_mixer) ''; }; }); |
