Created
December 28, 2017 12:39
-
-
Save infinisil/d667461b5475c6cb2389f241b999d9a8 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
let | |
nixpkgsRev = "15.09"; | |
nixpkgs = builtins.fetchTarball "github.com/NixOS/nixpkgs/archive/${nixpkgsRev}.tar.gz"; | |
nixpkgs' = (import <nixpkgs> {}).fetchFromGitHub { | |
owner = "NixOS"; | |
repo = "nixpkgs"; | |
rev = nixpkgsRev; | |
sha256 = "0pn142js99ncn7f53bw7hcp99ldjzb2m7xhjrax00xp72zswzv2n"; | |
}; | |
pkgs = import nixpkgs' {}; | |
in | |
pkgs.runCommand "foo" {} '' | |
echo ${pkgs.nix.name} > $out | |
'' |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment