···11-# Build one of the packages that come with idris
11+# Build one of the packages that comes with idris
22# name: The name of the package
33# deps: The dependencies of the package
44{ idris, build-idris-package, lib }: name: deps:
···66 inherit (builtins.parseDrvName idris.name) version;
77in
88build-idris-package {
99- name = "${name}-${version}";
1091111- propagatedBuildInputs = deps;
1212-1010+ inherit name version;
1311 inherit (idris) src;
14121313+ idrisDeps = deps;
1414+1515 postUnpack = ''
1616 sourceRoot=$sourceRoot/libs/${name}
1717- '';
1818-1919- postPatch = ''
2020- sed -i ${name}.ipkg -e "/^opts/ s|-i \\.\\./|-i $IDRIS_LIBRARY_PATH/|g"
2117 '';
22182319 meta = idris.meta // {