Skip to content

Instantly share code, notes, and snippets.

@LnL7
Created March 12, 2019 18:41
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save LnL7/1a08124fbdd2873dec3c7e4d5bccb903 to your computer and use it in GitHub Desktop.
Save LnL7/1a08124fbdd2873dec3c7e4d5bccb903 to your computer and use it in GitHub Desktop.
{ pkgs ? import <nixpkgs> {} }:
let
f =
{ stdenv, coreutils, gcc, gnumake }:
stdenv.mkDerivation {
name = "example";
builder = ""; # ...
};
in
pkgs.callPackage f {}
{ pkgs ? import <nixpkgs> {} }:
let
f =
{ stdenv, coreutils, gcc, gnumake }:
stdenv.mkDerivation {
name = "example";
builder = ""; # ...
};
in
f {
stdenv = pkgs.stdenv;
coreutils = pkgs.stdenv;
gcc = pkgs.gcc;
gnumake = pkgs.gnumake;
}
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment