-
Notifications
You must be signed in to change notification settings - Fork 381
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Separate support derivation (and small related tweaks to the Makefile) (
- Loading branch information
1 parent
0e831ed
commit ac266b7
Showing
8 changed files
with
105 additions
and
29 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
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,24 @@ | ||
{ stdenv, lib, gmp, idris2-version }: | ||
stdenv.mkDerivation rec { | ||
pname = "libidris2_support"; | ||
version = idris2-version; | ||
|
||
src = ../.; | ||
|
||
strictDeps = true; | ||
buildInputs = [ gmp ]; | ||
|
||
makeFlags = [ | ||
"PREFIX=$(out)" | ||
] ++ lib.optional stdenv.isDarwin "OS="; | ||
|
||
buildFlags = [ "support" ]; | ||
|
||
installTargets = "install-support"; | ||
|
||
postInstall = '' | ||
mv $out/idris2-${version}/lib $out/lib | ||
mv $out/idris2-${version}/support $out/share | ||
rmdir $out/idris2-${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
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