Skip to content

Instantly share code, notes, and snippets.

@infinisil
Created July 25, 2017 16:40
with import <nixpkgs> {};
{ extraPackages ? (pkgs: []) }:
stdenv.mkDerivation {
name = "test";
buildInputs = [
hello
] ++ extraPackages pkgs;
}
nix-shell --arg extraPackages 'p: [ p.fortune ]' --pure
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment