Created
August 25, 2015 00:12
-
-
Save goodwillcoding/f4b5fb3f8004a50cf2e1 to your computer and use it in GitHub Desktop.
nix custom packages passthru
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
{ system ? builtins.currentSystem, foo ? "hello" }: | |
let | |
pkgs = import <nixpkgs> { inherit system; }; | |
callPackage = pkgs.lib.callPackageWith (pkgs // self // { foo = foo;} ); | |
self = rec { | |
myPackage = callPackage ./pkgs/my_package { | |
some_argument = foo; | |
}; | |
}; | |
in | |
self |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment