Created
November 26, 2018 16:30
-
-
Save grahamc/1cd2ec903dceed8f86815086c8e0c6d1 to your computer and use it in GitHub Desktop.
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
let | |
pkgs = import <nixpkgs> {}; | |
expr = pkgs.writeText "example.nix" '' | |
let pkgs = import ${pkgs.path} {}; in pkgs.ncurses | |
''; | |
in | |
pkgs.stdenv.mkDerivation { | |
name = "foo"; | |
buildPhase = '' | |
nix-build ${expr} | |
cp ./result/*$out | |
''; | |
} |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment