Skip to content

Instantly share code, notes, and snippets.

@hakujin
Last active February 12, 2018 23:57
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 hakujin/a5c61cb69fe6c8aa187f6c527aad9417 to your computer and use it in GitHub Desktop.
Save hakujin/a5c61cb69fe6c8aa187f6c527aad9417 to your computer and use it in GitHub Desktop.
$ nix-env -i nix-prefetch-git
$ nix-prefetch-git https://github.com/NixOS/nixpkgs.git > nixpkgs.json
let
bootstrap = import <nixpkgs> {};
nixpkgs = builtins.fromJSON (builtins.readFile ./nixpkgs.json);
nixpkgs_src = bootstrap.fetchFromGitHub {
owner = "NixOS";
repo = "nixpkgs";
inherit (nixpkgs) rev sha256;
};
nixpkgs_unstable = import nixpkgs_src {};
in {
services.hydra = {
package = nixpkgs_unstable.hydra;
# (other config goes here)
};
}
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment