Skip to content

Instantly share code, notes, and snippets.

@aarroyoc
Created January 10, 2020 12:15
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 aarroyoc/141966e989c1c7018fbd29ba873251db to your computer and use it in GitHub Desktop.
Save aarroyoc/141966e989c1c7018fbd29ba873251db to your computer and use it in GitHub Desktop.
Nix package for PCC

Building

nix-build pcc.nix
nix-env -f pcc.nix -i pcc
source $stdenv/setup
unzip $src
cd pcc-*
make
mkdir -p $out/bin
cp pcc $out/bin/
with import <nixpkgs> {};
stdenv.mkDerivation {
name = "pcc-1.0.0";
builder = ./builder.sh;
src = fetchurl {
url = https://github.com/aarroyoc/pcc/archive/3f90d424494f4d1971ea34e66883fdee8a587b1f.zip;
sha256 = "ec80f0c8af5dc9d6f0fbb691a4132ac8d44e42dd05865e23c80c2e0f0219d56f";
};
buildInputs = [ unzip bison flex ];
}
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment