nix-build pcc.nix
nix-env -f pcc.nix -i pcc
Created
January 10, 2020 12:15
-
-
Save aarroyoc/141966e989c1c7018fbd29ba873251db to your computer and use it in GitHub Desktop.
Nix package for PCC
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
source $stdenv/setup | |
unzip $src | |
cd pcc-* | |
make | |
mkdir -p $out/bin | |
cp pcc $out/bin/ |
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 = "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