Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
nix expressions: update to work with no CFILES target
- Loading branch information
Showing
5 changed files
with
43 additions
and
24 deletions.
There are no files selected for viewing
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
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
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,7 +1,12 @@ | ||
# author: Shea Levy (sheaATshealevyDOTcom) | ||
let | ||
pkgs = import <nixpkgs> {}; | ||
version = builtins.readFile ./VERSION; | ||
|
||
version = builtins.head (builtins.match "([^\n]*)\n?" ( | ||
builtins.readFile ../VERSION | ||
)); | ||
in rec { | ||
tarball = pkgs.callPackage ./nix/tarball.nix { inherit version; }; | ||
build = pkgs.callPackage ./nix/build.nix { inherit tarball version; }; | ||
tarball = pkgs.callPackage ./tarball.nix { inherit version; }; | ||
|
||
build = pkgs.callPackage ./build.nix { inherit tarball version; }; | ||
} |
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
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,2 @@ | ||
# author: Shea Levy (sheaATshealevyDOTcom) | ||
(import ./default.nix).tarball |
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
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,35 +1,44 @@ | ||
{ | ||
stdenv, ats, autoconf, automake, version | ||
# author: Shea Levy (sheaATshealevyDOTcom) | ||
{ stdenv | ||
, ats | ||
, gmp | ||
, autoconf | ||
, automake | ||
, version | ||
}: | ||
|
||
stdenv.mkDerivation | ||
rec { | ||
stdenv.mkDerivation rec { | ||
name = "ATS2-Postiats-${version}.tgz"; | ||
|
||
buildInputs = [ autoconf automake ]; | ||
buildInputs = [ autoconf automake gmp ]; | ||
|
||
src = builtins.filterSource (path: type: (toString path) != (toString ./.git)) ./.; | ||
src = builtins.filterSource (path: type: | ||
(toString path) != (toString ../.git) | ||
) ../.; | ||
|
||
ATSHOME = "${ats}/lib/ats-anairiats-${ats.version}"; | ||
|
||
ATSHOMERELOC = "ATS-${ats.version}"; | ||
|
||
configurePhase = '' | ||
patchShebangs doc/DISTRIB/ATS-Postiats/autogen.sh | ||
export PATSHOME=$PWD | ||
make -f codegen/Makefile_atslib | ||
patchShebangs doc/DISTRIB/ATS-Postiats/autogen.sh | ||
export PATSHOME=$PWD | ||
make -f codegen/Makefile_atslib | ||
''; | ||
|
||
buildPhase = '' | ||
make -C src all | ||
make -C src CBOOT | ||
make -C src/CBOOT/prelude | ||
make -C src/CBOOT/libc | ||
make -C src/CBOOT/libats | ||
make -C doc/DISTRIB atspackaging | ||
make -C doc/DISTRIB atspacktarzvcf | ||
make -C src all | ||
make -C src CBOOT | ||
make -C src/CBOOT/prelude | ||
make -C src/CBOOT/libc | ||
make -C src/CBOOT/libats | ||
make -C doc/DISTRIB atspackaging | ||
make -C doc/DISTRIB atspacktarzvcf | ||
''; | ||
|
||
installPhase = '' | ||
mv doc/DISTRIB/${name} $out | ||
mv doc/DISTRIB/${name} $out | ||
''; | ||
|
||
shellHook = "export PATSHOME=$PWD"; | ||
} |
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
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1 @@ | ||
nix/shell.nix |