Skip to content

Instantly share code, notes, and snippets.

@zopsicle
Created September 21, 2024 13:30
Show Gist options
  • Save zopsicle/78fd67109177e2307559823fa84d0c3c to your computer and use it in GitHub Desktop.
Save zopsicle/78fd67109177e2307559823fa84d0c3c to your computer and use it in GitHub Desktop.
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