Last active
February 12, 2018 23:57
-
-
Save hakujin/a5c61cb69fe6c8aa187f6c527aad9417 to your computer and use it in GitHub Desktop.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
$ nix-env -i nix-prefetch-git | |
$ nix-prefetch-git https://github.com/NixOS/nixpkgs.git > nixpkgs.json |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
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