10 pname = "agda-categories";
12 src = fetchFromGitHub {
14 repo = "agda-categories";
16 sha256 = "sha256-GQuQxzYSQxAIVSJ1vf0blRC0juoxAqD1AHW66H/6NSk=";
20 # Remove this once agda-categories incorporates this fix or once Agda's
21 # versioning system gets an overhaul in general. Right now there is no middle
22 # ground between "no version constraint" and "exact match down to patch". We
23 # do not want to need to change this postPatch directive on each minor
24 # version update of the stdlib, so we get rid of the version constraint
26 sed -Ei 's/standard-library-[0-9.]+/standard-library/' agda-categories.agda-lib
28 # The Makefile of agda-categories uses git(1) instead of find(1) to
29 # determine the list of source files. We cannot use git, as $PWD will not
30 # be a valid Git working directory.
31 find src -name '*.agda' | sed -e 's|^src/[/]*|import |' -e 's|/|.|g' -e 's/.agda//' -e '/import Everything/d' | LC_COLLATE='C' sort > Everything.agda
34 buildInputs = [ standard-library ];
37 inherit (src.meta) homepage;
38 description = "New Categories library";
39 license = licenses.bsd3;
40 platforms = platforms.unix;
41 maintainers = with maintainers; [