-
Notifications
You must be signed in to change notification settings - Fork 375
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
- Loading branch information
1 parent
0e83d6c
commit 5db7fdd
Showing
6 changed files
with
56 additions
and
44 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
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,11 @@ | ||
{ buildIdris, idris2Version }: | ||
buildIdris { | ||
src = ./..; | ||
ipkgName = "idris2api"; | ||
version = idris2Version; | ||
idrisLibraries = [ ]; | ||
preBuild = '' | ||
export IDRIS2_PREFIX=$out/lib | ||
make src/IdrisPaths.idr | ||
''; | ||
} |
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,26 @@ | ||
{ idris2Version, shortRev ? null }: | ||
final: prev: | ||
let | ||
chezSupportsSystem = (prev.system == "x86_64-linux") | ||
|| (prev.lib.versionAtLeast prev.chez.version "10.0.0"); | ||
chez = if chezSupportsSystem then prev.chez else prev.chez-racket; | ||
idris2Bootstrap = prev.callPackage ./package.nix { | ||
inherit chez idris2Version; | ||
inherit (final.idris2Packages) support; | ||
idris2Bootstrap = null; | ||
srcRev = if shortRev == null then "dirty" else shortRev; | ||
}; | ||
in | ||
{ | ||
idris2Packages = prev.idris2Packages // { | ||
support = prev.callPackage ./support.nix { inherit idris2Version; }; | ||
idris2 = prev.callPackage ./package.nix { | ||
inherit chez idris2Bootstrap idris2Version; | ||
inherit (final.idris2Packages) support; | ||
srcRev = if shortRev == null then "dirty" else shortRev; | ||
}; | ||
buildIdris = final.callPackage ./buildIdris.nix { inherit idris2Version; }; | ||
idris2Api = final.callPackage ./idris2Api.nix { inherit idris2Version; }; | ||
}; | ||
idris2 = final.idris2Packages.idris2; | ||
} |
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