Skip to content

Instantly share code, notes, and snippets.

@goodwillcoding
Created August 25, 2015 00:12
Show Gist options
  • Save goodwillcoding/f4b5fb3f8004a50cf2e1 to your computer and use it in GitHub Desktop.
Save goodwillcoding/f4b5fb3f8004a50cf2e1 to your computer and use it in GitHub Desktop.
nix custom packages passthru
{ 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