Last active
May 25, 2017 14:26
-
-
Save LnL7/a603c1212238c6d77c697c3315b6c957 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
{ pkgs ? import nixpkgs {}, nixpkgs ? <nixpkgs> }: | |
with pkgs; | |
stdenv.mkDerivation { | |
name = "as-table-0.1"; | |
src = ./as-table.c; | |
unpackPhase = ":"; # disable, it's just a file | |
buildPhase = '' | |
gcc -static -O3 -fomit-frame-pointer -o as-table $src | |
''; | |
installPhase = '' | |
mkdir -p $out/bin | |
install -m 755 as-table $out/bin | |
''; | |
} |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment