build-idris-package: ipkgName
This commit is contained in:
parent
14d646edec
commit
7e0f7a0b54
@ -8,6 +8,7 @@ build-idris-package {
|
|||||||
name = "bi";
|
name = "bi";
|
||||||
version = "2018-06-25";
|
version = "2018-06-25";
|
||||||
|
|
||||||
|
ipkgName = "Bi";
|
||||||
idrisDeps = [ contrib pruviloj ];
|
idrisDeps = [ contrib pruviloj ];
|
||||||
|
|
||||||
src = fetchFromGitHub {
|
src = fetchFromGitHub {
|
||||||
|
@ -13,10 +13,6 @@ build-idris-package {
|
|||||||
sha256 = "0cfp58lhm2g0g1vrpb0mh71qb44n2yvg5sil9ndyf2sqd5ria6yq";
|
sha256 = "0cfp58lhm2g0g1vrpb0mh71qb44n2yvg5sil9ndyf2sqd5ria6yq";
|
||||||
};
|
};
|
||||||
|
|
||||||
postUnpack = ''
|
|
||||||
rm source/test.ipkg
|
|
||||||
'';
|
|
||||||
|
|
||||||
meta = {
|
meta = {
|
||||||
description = "A small bifunctor library for idris";
|
description = "A small bifunctor library for idris";
|
||||||
homepage = https://github.com/japesinator/Idris-Bifunctors;
|
homepage = https://github.com/japesinator/Idris-Bifunctors;
|
||||||
|
@ -5,6 +5,7 @@
|
|||||||
, noBase ? false
|
, noBase ? false
|
||||||
, name
|
, name
|
||||||
, version
|
, version
|
||||||
|
, ipkgName ? name
|
||||||
, extraBuildInputs ? []
|
, extraBuildInputs ? []
|
||||||
, ...
|
, ...
|
||||||
}@attrs:
|
}@attrs:
|
||||||
@ -13,7 +14,10 @@ let
|
|||||||
++ lib.optional (!noPrelude) idrisPackages.prelude
|
++ lib.optional (!noPrelude) idrisPackages.prelude
|
||||||
++ lib.optional (!noBase) idrisPackages.base;
|
++ lib.optional (!noBase) idrisPackages.base;
|
||||||
idris-with-packages = idrisPackages.with-packages allIdrisDeps;
|
idris-with-packages = idrisPackages.with-packages allIdrisDeps;
|
||||||
newAttrs = builtins.removeAttrs attrs [ "idrisDeps" "extraBuildInputs" "name" "version" ] // {
|
newAttrs = builtins.removeAttrs attrs [
|
||||||
|
"idrisDeps" "noPrelude" "noBase"
|
||||||
|
"name" "version" "ipkgName" "extraBuildInputs"
|
||||||
|
] // {
|
||||||
meta = attrs.meta // {
|
meta = attrs.meta // {
|
||||||
platforms = attrs.meta.platforms or idrisPackages.idris.meta.platforms;
|
platforms = attrs.meta.platforms or idrisPackages.idris.meta.platforms;
|
||||||
};
|
};
|
||||||
@ -29,22 +33,29 @@ stdenv.mkDerivation ({
|
|||||||
# opts = -i ../../path/to/package
|
# opts = -i ../../path/to/package
|
||||||
# rather than the declarative pkgs attribute so we have to rewrite the path.
|
# rather than the declarative pkgs attribute so we have to rewrite the path.
|
||||||
postPatch = ''
|
postPatch = ''
|
||||||
sed -i *.ipkg -e "/^opts/ s|-i \\.\\./|-i ${idris-with-packages}/libs/|g"
|
runHook prePatch
|
||||||
|
sed -i ${ipkgName}.ipkg -e "/^opts/ s|-i \\.\\./|-i ${idris-with-packages}/libs/|g"
|
||||||
'';
|
'';
|
||||||
|
|
||||||
buildPhase = ''
|
buildPhase = ''
|
||||||
idris --build *.ipkg
|
runHook preBuild
|
||||||
|
idris --build ${ipkgName}.ipkg
|
||||||
|
runHook postBuild
|
||||||
'';
|
'';
|
||||||
|
|
||||||
checkPhase = ''
|
checkPhase = ''
|
||||||
if grep -q test *.ipkg; then
|
runHook preCheck
|
||||||
idris --testpkg *.ipkg
|
if grep -q tests ${ipkgName}.ipkg; then
|
||||||
|
idris --testpkg ${ipkgName}.ipkg
|
||||||
fi
|
fi
|
||||||
|
runHook postCheck
|
||||||
'';
|
'';
|
||||||
|
|
||||||
installPhase = ''
|
installPhase = ''
|
||||||
idris --install *.ipkg --ibcsubdir $out/libs
|
runHook preInstall
|
||||||
IDRIS_DOC_PATH=$out/doc idris --installdoc *.ipkg || true
|
idris --install ${ipkgName}.ipkg --ibcsubdir $out/libs
|
||||||
|
IDRIS_DOC_PATH=$out/doc idris --installdoc ${ipkgName}.ipkg || true
|
||||||
|
runHook postInstall
|
||||||
'';
|
'';
|
||||||
|
|
||||||
} // newAttrs)
|
} // newAttrs)
|
||||||
|
@ -6,6 +6,8 @@ build-idris-package {
|
|||||||
name = "canvas";
|
name = "canvas";
|
||||||
version = "2017-11-09";
|
version = "2017-11-09";
|
||||||
|
|
||||||
|
ipkgName = "idriscanvas";
|
||||||
|
|
||||||
src = fetchFromGitHub {
|
src = fetchFromGitHub {
|
||||||
owner = "JinWuZhao";
|
owner = "JinWuZhao";
|
||||||
repo = "idriscanvas";
|
repo = "idriscanvas";
|
||||||
|
@ -6,6 +6,8 @@ build-idris-package {
|
|||||||
name = "coda";
|
name = "coda";
|
||||||
version = "2018-01-25";
|
version = "2018-01-25";
|
||||||
|
|
||||||
|
ipkgName = "Coda";
|
||||||
|
|
||||||
src = fetchFromGitHub {
|
src = fetchFromGitHub {
|
||||||
owner = "ostera";
|
owner = "ostera";
|
||||||
repo = "idris-coda";
|
repo = "idris-coda";
|
||||||
|
@ -17,10 +17,6 @@ build-idris-package {
|
|||||||
sha256 = "0vyjadd9sb8qcbzvzhnqwc8wa7ma770c10xhn96jsqsnzr81k52d";
|
sha256 = "0vyjadd9sb8qcbzvzhnqwc8wa7ma770c10xhn96jsqsnzr81k52d";
|
||||||
};
|
};
|
||||||
|
|
||||||
postUnpack = ''
|
|
||||||
rm source/containers-travis.ipkg
|
|
||||||
'';
|
|
||||||
|
|
||||||
meta = {
|
meta = {
|
||||||
description = "Various data structures for use in the Idris Language.";
|
description = "Various data structures for use in the Idris Language.";
|
||||||
homepage = https://github.com/jfdm/idris-containers;
|
homepage = https://github.com/jfdm/idris-containers;
|
||||||
|
@ -18,11 +18,6 @@ build-idris-package {
|
|||||||
sha256 = "1rpa7yjvfpzl06h0qbk54jd2n52nmgpf7nq5aamcinqh7h5gbiwn";
|
sha256 = "1rpa7yjvfpzl06h0qbk54jd2n52nmgpf7nq5aamcinqh7h5gbiwn";
|
||||||
};
|
};
|
||||||
|
|
||||||
postUnpack = ''
|
|
||||||
rm source/example_main.ipkg
|
|
||||||
rm source/example_view.ipkg
|
|
||||||
'';
|
|
||||||
|
|
||||||
meta = {
|
meta = {
|
||||||
description = "Electron bindings for Idris";
|
description = "Electron bindings for Idris";
|
||||||
homepage = https://github.com/jheiling/idris-electron;
|
homepage = https://github.com/jheiling/idris-electron;
|
||||||
|
@ -6,6 +6,8 @@ build-idris-package {
|
|||||||
name = "free";
|
name = "free";
|
||||||
version = "2017-07-03";
|
version = "2017-07-03";
|
||||||
|
|
||||||
|
ipkgName = "idris-free";
|
||||||
|
|
||||||
src = fetchFromGitHub {
|
src = fetchFromGitHub {
|
||||||
owner = "idris-hackers";
|
owner = "idris-hackers";
|
||||||
repo = "idris-free";
|
repo = "idris-free";
|
||||||
|
@ -5,7 +5,7 @@
|
|||||||
, lib
|
, lib
|
||||||
}:
|
}:
|
||||||
build-idris-package {
|
build-idris-package {
|
||||||
name = "idris-hamt";
|
name = "hamt";
|
||||||
version = "2016-11-15";
|
version = "2016-11-15";
|
||||||
|
|
||||||
idrisDeps = [ contrib effects ];
|
idrisDeps = [ contrib effects ];
|
||||||
|
@ -7,6 +7,7 @@ build-idris-package {
|
|||||||
name = "hrtime";
|
name = "hrtime";
|
||||||
version = "2017-04-16";
|
version = "2017-04-16";
|
||||||
|
|
||||||
|
ipkgName = "hrTime";
|
||||||
idrisDeps = [ idrisscript ];
|
idrisDeps = [ idrisscript ];
|
||||||
|
|
||||||
src = fetchFromGitHub {
|
src = fetchFromGitHub {
|
||||||
|
@ -8,6 +8,7 @@ build-idris-package {
|
|||||||
name = "idrishighlighter";
|
name = "idrishighlighter";
|
||||||
version = "2018-02-22";
|
version = "2018-02-22";
|
||||||
|
|
||||||
|
ipkgName = "idris-code-highlighter";
|
||||||
idrisDeps = [ effects lightyear ];
|
idrisDeps = [ effects lightyear ];
|
||||||
|
|
||||||
src = fetchFromGitHub {
|
src = fetchFromGitHub {
|
||||||
|
@ -8,6 +8,7 @@ build-idris-package {
|
|||||||
name = "jheiling-js";
|
name = "jheiling-js";
|
||||||
version = "2016-03-09";
|
version = "2016-03-09";
|
||||||
|
|
||||||
|
ipkgName = "js";
|
||||||
idrisDeps = [ contrib jheiling-extras ];
|
idrisDeps = [ contrib jheiling-extras ];
|
||||||
|
|
||||||
src = fetchFromGitHub {
|
src = fetchFromGitHub {
|
||||||
|
@ -9,6 +9,7 @@ build-idris-package {
|
|||||||
name = "mhd";
|
name = "mhd";
|
||||||
version = "2016-04-22";
|
version = "2016-04-22";
|
||||||
|
|
||||||
|
ipkgName = "MHD";
|
||||||
idrisDeps = [ contrib effects ];
|
idrisDeps = [ contrib effects ];
|
||||||
|
|
||||||
extraBuildInputs = [ libmicrohttpd ];
|
extraBuildInputs = [ libmicrohttpd ];
|
||||||
|
@ -16,10 +16,6 @@ build-idris-package {
|
|||||||
sha256 = "093q3qjmr93wv8pqwk0zfm3hzf14c235k9c9ip53rhg6yzcm0yqz";
|
sha256 = "093q3qjmr93wv8pqwk0zfm3hzf14c235k9c9ip53rhg6yzcm0yqz";
|
||||||
};
|
};
|
||||||
|
|
||||||
postUnpack = ''
|
|
||||||
rm source/patricia-nix.ipkg
|
|
||||||
'';
|
|
||||||
|
|
||||||
meta = {
|
meta = {
|
||||||
description = "Immutable map from integer keys to values based on patricia tree. Basically persistent array.";
|
description = "Immutable map from integer keys to values based on patricia tree. Basically persistent array.";
|
||||||
homepage = https://github.com/ChShersh/idris-patricia;
|
homepage = https://github.com/ChShersh/idris-patricia;
|
||||||
|
@ -13,10 +13,6 @@ build-idris-package {
|
|||||||
sha256 = "1dirzqy40fczbw7gp2jr51lzqsnq5vcx9z5l6194lcrq2vxgzv1s";
|
sha256 = "1dirzqy40fczbw7gp2jr51lzqsnq5vcx9z5l6194lcrq2vxgzv1s";
|
||||||
};
|
};
|
||||||
|
|
||||||
postUnpack = ''
|
|
||||||
rm source/test.ipkg
|
|
||||||
'';
|
|
||||||
|
|
||||||
meta = {
|
meta = {
|
||||||
description = "Type-safe way of working with permutations in Idris";
|
description = "Type-safe way of working with permutations in Idris";
|
||||||
homepage = https://github.com/vmchale/permutations;
|
homepage = https://github.com/vmchale/permutations;
|
||||||
|
@ -20,10 +20,6 @@ build-idris-package {
|
|||||||
sha256 = "0rbx0yqa0fb7h7qfsvqvirc5q85z51rcwbivn6351jgn3a0inmhf";
|
sha256 = "0rbx0yqa0fb7h7qfsvqvirc5q85z51rcwbivn6351jgn3a0inmhf";
|
||||||
};
|
};
|
||||||
|
|
||||||
postUnpack = ''
|
|
||||||
rm source/test.ipkg
|
|
||||||
'';
|
|
||||||
|
|
||||||
meta = {
|
meta = {
|
||||||
description = "Recursion schemes for Idris";
|
description = "Recursion schemes for Idris";
|
||||||
homepage = https://github.com/vmchale/recursion_schemes;
|
homepage = https://github.com/vmchale/recursion_schemes;
|
||||||
|
@ -6,6 +6,8 @@ build-idris-package {
|
|||||||
name = "refined";
|
name = "refined";
|
||||||
version = "2017-12-28";
|
version = "2017-12-28";
|
||||||
|
|
||||||
|
ipkgName = "idris-refined";
|
||||||
|
|
||||||
src = fetchFromGitHub {
|
src = fetchFromGitHub {
|
||||||
owner = "janschultecom";
|
owner = "janschultecom";
|
||||||
repo = "idris-refined";
|
repo = "idris-refined";
|
||||||
@ -13,10 +15,6 @@ build-idris-package {
|
|||||||
sha256 = "1am7kfc51p2zlml954v8cl9xvx0g0f1caq7ni3z36xvsd7fh47yh";
|
sha256 = "1am7kfc51p2zlml954v8cl9xvx0g0f1caq7ni3z36xvsd7fh47yh";
|
||||||
};
|
};
|
||||||
|
|
||||||
postUnpack = ''
|
|
||||||
rm source/idris-refined-test.ipkg
|
|
||||||
'';
|
|
||||||
|
|
||||||
meta = {
|
meta = {
|
||||||
description = "Port of Scala/Haskell Refined library to Idris";
|
description = "Port of Scala/Haskell Refined library to Idris";
|
||||||
homepage = https://github.com/janschultecom/idris-refined;
|
homepage = https://github.com/janschultecom/idris-refined;
|
||||||
|
@ -7,6 +7,7 @@ build-idris-package {
|
|||||||
name = "snippets";
|
name = "snippets";
|
||||||
version = "2018-03-17";
|
version = "2018-03-17";
|
||||||
|
|
||||||
|
ipkgName = "idris-snippets";
|
||||||
idrisDeps = [ contrib ];
|
idrisDeps = [ contrib ];
|
||||||
|
|
||||||
src = fetchFromGitHub {
|
src = fetchFromGitHub {
|
||||||
|
@ -7,6 +7,7 @@ build-idris-package {
|
|||||||
name = "tap";
|
name = "tap";
|
||||||
version = "2017-04-08";
|
version = "2017-04-08";
|
||||||
|
|
||||||
|
ipkgName = "TAP";
|
||||||
idrisDeps = [ contrib ];
|
idrisDeps = [ contrib ];
|
||||||
|
|
||||||
src = fetchFromGitHub {
|
src = fetchFromGitHub {
|
||||||
@ -16,10 +17,6 @@ build-idris-package {
|
|||||||
sha256 = "0fhlmmivq9xv89r7plrnhmvay1j7bapz3wh7y8lygwvcrllh9zxs";
|
sha256 = "0fhlmmivq9xv89r7plrnhmvay1j7bapz3wh7y8lygwvcrllh9zxs";
|
||||||
};
|
};
|
||||||
|
|
||||||
postUnpack = ''
|
|
||||||
rm source/Draft.ipkg
|
|
||||||
'';
|
|
||||||
|
|
||||||
meta = {
|
meta = {
|
||||||
description = "A simple TAP producer and consumer/reporter for Idris";
|
description = "A simple TAP producer and consumer/reporter for Idris";
|
||||||
homepage = https://github.com/ostera/tap-idris;
|
homepage = https://github.com/ostera/tap-idris;
|
||||||
|
@ -6,6 +6,8 @@ build-idris-package {
|
|||||||
name = "tparsec";
|
name = "tparsec";
|
||||||
version = "2018-06-26";
|
version = "2018-06-26";
|
||||||
|
|
||||||
|
ipkgName = "TParsec";
|
||||||
|
|
||||||
src = fetchFromGitHub {
|
src = fetchFromGitHub {
|
||||||
owner = "gallais";
|
owner = "gallais";
|
||||||
repo = "idris-tparsec";
|
repo = "idris-tparsec";
|
||||||
|
@ -6,6 +6,8 @@ build-idris-package {
|
|||||||
name = "vdom";
|
name = "vdom";
|
||||||
version = "0.6.0";
|
version = "0.6.0";
|
||||||
|
|
||||||
|
ipkgName = "idris-vdom";
|
||||||
|
|
||||||
src = fetchFromGitHub {
|
src = fetchFromGitHub {
|
||||||
owner = "brandondyck";
|
owner = "brandondyck";
|
||||||
repo = "idris-vdom";
|
repo = "idris-vdom";
|
||||||
|
@ -8,6 +8,7 @@ build-idris-package {
|
|||||||
name = "yaml";
|
name = "yaml";
|
||||||
version = "2018-01-25";
|
version = "2018-01-25";
|
||||||
|
|
||||||
|
ipkgName = "Yaml";
|
||||||
idrisDeps = [ contrib lightyear ];
|
idrisDeps = [ contrib lightyear ];
|
||||||
|
|
||||||
src = fetchFromGitHub {
|
src = fetchFromGitHub {
|
||||||
|
@ -7,6 +7,7 @@ build-idris-package {
|
|||||||
name = "yampa";
|
name = "yampa";
|
||||||
version = "2016-07-05";
|
version = "2016-07-05";
|
||||||
|
|
||||||
|
ipkgName = "idris-yampa";
|
||||||
idrisDeps = [ bifunctors ];
|
idrisDeps = [ bifunctors ];
|
||||||
|
|
||||||
src = fetchFromGitHub {
|
src = fetchFromGitHub {
|
||||||
|
Loading…
x
Reference in New Issue
Block a user