Created
September 21, 2024 13:30
-
-
Save zopsicle/78fd67109177e2307559823fa84d0c3c to your computer and use it in GitHub Desktop.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
derivation { | |
name = "shell"; | |
builder = "${nixpkgs.coreutils}/bin/false"; # Only for use with nix-shell. | |
system = nixpkgs.system; | |
stdenv = nixpkgs.writeTextDir "setup" '' | |
export PATH=${ | |
nixpkgs.lib.concatStringsSep ":" [ | |
"${nixpkgs.cmake}/bin" | |
"${nixpkgs.coreutils}/bin" | |
"${nixpkgs.gcc}/bin" # Does not get unwanted flags! | |
"${nixpkgs.pkg-config}/bin" | |
] | |
} | |
export PKG_CONFIG_PATH=${ | |
nixpkgs.lib.concatStringsSep ":" [ | |
"${nixpkgs.SDL2.dev}/lib/pkgconfig" | |
"${nixpkgs.freetype.dev}/lib/pkgconfig" | |
] | |
} | |
''; | |
} |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment