Skip to content

Instantly share code, notes, and snippets.

@colemickens
Created July 24, 2019 20:10
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 colemickens/60ba8319ba3266d7fd7cba326acf8629 to your computer and use it in GitHub Desktop.
Save colemickens/60ba8319ba3266d7fd7cba326acf8629 to your computer and use it in GitHub Desktop.
#!/usr/bin/env bash
ref="cmpkgs"
tree="https://github.com/colemickens/nixpkgs/commits/${ref}"
nixpkgs="https://github.com/colemickens/nixpkgs/archive/${ref}.tar.gz"
echo "you should check ${tree} for safety/sanity"
echo "you should also check that you trust the binary caches used in this script"
echo
echo -n "3..."; sleep 1
echo -n "2..."; sleep 1
echo -n "1..."; sleep 1
echo
nix-env \
--option "extra-binary-caches" "https://cache.nixos.org https://colemickens.cachix.org https://nixpkgs-wayland.cachix.org" \
--option "trusted-public-keys" "cache.nixos.org-1:6NCHdD59X431o0gWypbMrAURkbJ16ZPMQFGspcDShjY= colemickens.cachix.org-1:oIGbn9aolUT2qKqC78scPcDL6nz7Npgotu644V4aGl4= nixpkgs-wayland.cachix.org-1:3lwxaILxMRkVhehr5StQprHdEo4IrE8sRho9R9HOLYA=" \
--option "build-cores" "0" \
--option "narinfo-cache-negative-ttl" "0" \
-f "${nixpkgs}" \
-iA chromiumOzone
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment