Created
January 22, 2018 14:59
-
-
Save infinisil/d556f339f96a0076e191f46fba7368d5 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