Last active
November 17, 2015 13:56
-
-
Save Profpatsch/a9ade8e229953d31cdfd to your computer and use it in GitHub Desktop.
mkDerivation test
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
# put it in the nixpkgs root folder | |
let | |
l = import ./lib; | |
# build a simple (imperfect) stdenv | |
stdenv = ((import ./pkgs/stdenv) | |
{ system = "x86_64-linux"; platform = null; config = {}; lib = l; }).stdenv; | |
in rec { | |
# two packages, one broken and one not. It should be possible to access metadata in the broken one. | |
unbroken = stdenv.mkDerivation { name = "foo"; }; | |
broken = stdenv.mkDerivation { meta.broken = true; name = "foobar";}; | |
} |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment