2018-03-16 12:40:17 +01:00
|
|
|
{ build-idris-package
|
|
|
|
, fetchFromGitHub
|
|
|
|
, effects
|
|
|
|
, lib
|
|
|
|
}:
|
|
|
|
build-idris-package {
|
|
|
|
name = "eternal";
|
|
|
|
version = "2018-01-25";
|
|
|
|
|
2018-07-02 05:18:21 +02:00
|
|
|
idrisDeps = [ effects ];
|
2018-03-16 12:40:17 +01:00
|
|
|
|
|
|
|
src = fetchFromGitHub {
|
|
|
|
owner = "Heather";
|
|
|
|
repo = "Control.Eternal.Idris";
|
|
|
|
rev = "7ead56ce6065b55104460ace945adbce38fb13eb";
|
|
|
|
sha256 = "0b4zys4mhl6r4rbpdxr7n2n20cdc0nkh4lm8n5v4wxkmjzna5cpd";
|
|
|
|
};
|
|
|
|
|
|
|
|
postUnpack = ''
|
|
|
|
printf 'makefile = Makefile\n' >> source/eternal.ipkg
|
|
|
|
printf 'objs = readProcess.o\n' >> source/eternal.ipkg
|
|
|
|
sed -i 's/\/usr\/local\/idris\/readProcess.h/readProcess.h/g' source/Control/Eternal/System/Process.idr
|
|
|
|
sed -i 's/\/usr\/local\/idris\/readProcess.o/readProcess.o/g' source/Control/Eternal/System/Process.idr
|
|
|
|
'';
|
|
|
|
|
|
|
|
meta = {
|
|
|
|
description = "Infix pipe operators and some Nat, Float, String conversions";
|
|
|
|
homepage = https://github.com/Heather/Control.Eternal.Idris;
|
|
|
|
license = lib.licenses.bsd3;
|
|
|
|
maintainers = [ lib.maintainers.brainrape ];
|
|
|
|
};
|
|
|
|
}
|