Skip to content

Instantly share code, notes, and snippets.

@Profpatsch
Last active November 17, 2015 13:56
Show Gist options
  • Save Profpatsch/a9ade8e229953d31cdfd to your computer and use it in GitHub Desktop.
Save Profpatsch/a9ade8e229953d31cdfd to your computer and use it in GitHub Desktop.
mkDerivation test
# 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