Skip to content

Instantly share code, notes, and snippets.

Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save adrianparvino/e1160005c5413aa92e9142aabf218b8e to your computer and use it in GitHub Desktop.
Save adrianparvino/e1160005c5413aa92e9142aabf218b8e to your computer and use it in GitHub Desktop.
{ pkgs, ... }:
{
imports = [ { nix.binaryCachePublicKeys = [ "uwu" ]; } ];
boot.loader.grub.enable = false;
fileSystems."/".device = "x";
nixpkgs.config.overlays = self: super: {
bootstrapFiles = {};
stdenv = super.stdenv // {
# bootstrapTools = abort "blargh";
blargh = super.stdenv.bootstrapTools.overrideAttrs (superAttrs: {
url = http://nixos-arm.dezgeg.me/bootstrap-2016-07-20-33a1d8/armv7l/bootstrap-tools.tar.xz;
sha256 = "0h75xbpkyzhvmjzhj9i598p0cq60py7v0b8lryrvcqw7qjlbgrsd";
});
};
busybox = super.busybox.overrideAttrs (superAttrs: {
url = http://nixos-arm.dezgeg.me/bootstrap-2016-07-20-33a1d8/armv7l/busybox;
sha256 = "0kb439p37rzlascp6ldm4kwf5kwd6p3lv17c41zwj20wbv8sdilq";
});
glibc = super.glibc.overrideAttrs (superAttrs: {
name = "glibc-2.23";
src = super.fetchurl {
url = "mirror://gnu/glibc/glibc-glibc-2.23.tar.xz";
sha256 = "1s8krs3y2n6pzav7ic59dz41alqalphv7vww4138ag30wh0fpvwl";
};
patches = [
(pkgs.path + "/development/libraries/glibc/cve-2009-5064.patch")
/* Have rpcgen(1) look for cpp(1) in $PATH. */
(pkgs.path + "/development/libraries/glibc/rpcgen-path.patch")
/* Allow NixOS and Nix to handle the locale-archive. */
(pkgs.path + "/development/libraries/glibc/nix-locale-archive.patch")
/* Don't use /etc/ld.so.cache, for non-NixOS systems. */
(pkgs.path + "/development/libraries/glibc/dont-use-system-ld-so-cache.patch")
/* Don't use /etc/ld.so.preload, but /etc/ld-nix.so.preload. */
(pkgs.path + "/development/libraries/glibc/dont-use-system-ld-so-preload.patch")
/* The command "getconf CS_PATH" returns the default search path
"/bin:/usr/bin", which is inappropriate on NixOS machines. This
patch extends the search path by "/run/current-system/sw/bin". */
(pkgs.path + "/development/libraries/glibc/fix_path_attribute_in_getconf.patch")
];
});
};
}
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment