diff --git a/doc/languages-frameworks/agda.section.md b/doc/languages-frameworks/agda.section.md index 874a73ed6f2a..9f19229fac05 100644 --- a/doc/languages-frameworks/agda.section.md +++ b/doc/languages-frameworks/agda.section.md @@ -254,7 +254,7 @@ In a pull request updating e.g. the standard library, you should write the follo ``` This will build all reverse dependencies of the standard library, -for example `agdaPackages.agda-categories`, or `agdaPackages.generic`. +for example `agdaPackages.agda-categories`. In some cases it is useful to build _all_ Agda packages. This can be done with the following Github comment: diff --git a/pkgs/development/libraries/agda/generic/default.nix b/pkgs/development/libraries/agda/generic/default.nix deleted file mode 100644 index 79c5288fef0c..000000000000 --- a/pkgs/development/libraries/agda/generic/default.nix +++ /dev/null @@ -1,40 +0,0 @@ -{ - lib, - mkDerivation, - fetchFromGitHub, - standard-library, -}: - -mkDerivation rec { - pname = "generic"; - version = "0.1.0.2"; - - src = fetchFromGitHub { - owner = "effectfully"; - repo = "Generic"; - rev = "v${version}"; - sha256 = "05igsd2gaj6h9bkqwp8llhvn4qvc5gmi03x4fnz096ba8m6x8s3n"; - }; - - buildInputs = [ - standard-library - ]; - - preBuild = '' - echo "module Everything where" > Everything.agda - find src -name '*.agda' | sed -e 's/src\///;s/\//./g;s/\.agda$//;s/^/import /' >> Everything.agda - ''; - - meta = with lib; { - # Remove if a version compatible with agda 2.6.2 is made - broken = true; - description = "Library for doing generic programming in Agda"; - homepage = src.meta.homepage; - license = licenses.mit; - platforms = platforms.unix; - maintainers = with maintainers; [ - alexarice - turion - ]; - }; -} diff --git a/pkgs/top-level/agda-packages.nix b/pkgs/top-level/agda-packages.nix index 8eb08599afa9..b9fab48170a6 100644 --- a/pkgs/top-level/agda-packages.nix +++ b/pkgs/top-level/agda-packages.nix @@ -1,5 +1,6 @@ { pkgs, + config, lib, newScope, Agda, @@ -44,13 +45,14 @@ let functional-linear-algebra = callPackage ../development/libraries/agda/functional-linear-algebra { }; - generic = callPackage ../development/libraries/agda/generic { }; - agdarsec = callPackage ../development/libraries/agda/agdarsec { }; _1lab = callPackage ../development/libraries/agda/1lab { }; generics = callPackage ../development/libraries/agda/generics { }; + } + // lib.optionalAttrs config.allowAliases { + generic = throw "agdaPackages.generic has been removed because it is unmaintained upstream and has been marked as broken since 2021. Consider using agdaPackages.generics instead."; # Added 2025-10-11 }; in mkAgdaPackages Agda