-
-
Save Twey/61db90e1286212aad2afe1fe58fd6800 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
with import <nixpkgs> { }; | |
stdenv.mkDerivation { | |
name = "static-test"; | |
src = writeTextFile { | |
name = "test.cc"; | |
text = "int main() { }"; | |
}; | |
phases = [ "buildPhase" "installPhase" ]; | |
buildPhase = "g++ $src -o test"; | |
installPhase = "mkdir -p $out/bin; cp test $out/bin"; | |
# buildInputs = [ glibc.static ]; | |
} |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment