Skip to content

Instantly share code, notes, and snippets.

@0atman
Last active June 8, 2024 11:53
Show Gist options
  • Save 0atman/d25f895e45ed44d42e1340ddaf443d99 to your computer and use it in GitHub Desktop.
Save 0atman/d25f895e45ed44d42e1340ddaf443d99 to your computer and use it in GitHub Desktop.
For people who just don't care about reproducibility, and just want a quiet life. Like me!
programs = {
steam.enable = true;
nix-ld = {
enable = true;
libraries = with pkgs; [
zlib
openssl
curl
# etc
];
};
};
environment = {
sessionVariables = {
LIBCLANG_PATH = "${pkgs.llvmPackages_16.libclang.lib}/lib";
};
variables = {
PKG_CONFIG_PATH = "${pkgs.openssl.dev}/lib/pkgconfig";
};
systemPackages = with pkgs; [
clang
rustup
];
};
@0atman
Copy link
Author

0atman commented May 21, 2024

Why? Because I want to just cargo install <whatever> and not get cc errors. Yes I know about shell.nix and flake.nix and devshell AND THE HUNDRED OTHER WAYS, but like the description says, I just want a quiet life.
This and the rustup nixos package get me there!

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment