···289289 port = cfg.port;
290290 };
291291292292- services.postgresql.package =
292292+ services.postgresql.package = let
293293+ mkThrow = ver: throw "postgresql_${ver} was removed, please upgrade your postgresql version.";
294294+ in
293295 # Note: when changing the default, make it conditional on
294296 # ‘system.stateVersion’ to maintain compatibility with existing
295297 # systems!
296298 mkDefault (if versionAtLeast config.system.stateVersion "21.11" then pkgs.postgresql_13
297299 else if versionAtLeast config.system.stateVersion "20.03" then pkgs.postgresql_11
298298- else if versionAtLeast config.system.stateVersion "17.09" then pkgs.postgresql_9_6
299299- else throw "postgresql_9_5 was removed, please upgrade your postgresql version.");
300300+ else if versionAtLeast config.system.stateVersion "17.09" then mkThrow "9_6"
301301+ else mkThrow "9_5");
300302301303 services.postgresql.dataDir = mkDefault "/var/lib/postgresql/${cfg.package.psqlSchema}";
302304
···11-{ lib, type_conv, buildOcamlJane }:
22-33-buildOcamlJane {
44- pname = "fieldslib";
55- version = "113.33.03";
66-77- minimumSupportedOcamlVersion = "4.02";
88-99- hash = "0mkbix32f8sq32q81hb10z2q31bw5f431jxv0jafbdrif0vr6xqd";
1010-1111- propagatedBuildInputs = [ type_conv ];
1212-1313- meta = with lib; {
1414- homepage = "https://ocaml.janestreet.com/";
1515- description = "OCaml syntax extension to define first class values representing record fields, to get and set record fields, iterate and fold over all fields of a record and create new record values";
1616- license = licenses.asl20;
1717- maintainers = [ maintainers.maurer maintainers.vbgl ];
1818- };
1919-}
···11-{lib, buildOcamlJane,
22- ppx_core, ppx_tools}:
33-44-buildOcamlJane {
55- pname = "ppx_optcomp";
66- hash = "09m2x2a5ics4bz1j29n5slhh1rlyhcwdfmf44v1jfxcby3f0riwd";
77- propagatedBuildInputs =
88- [ ppx_core ppx_tools ];
99-1010- meta = with lib; {
1111- description = "ppx_optcomp stands for Optional Compilation. It is a tool used to handle optional compilations of pieces of code depending of the word size, the version of the compiler, etc.";
1212- maintainers = [ maintainers.maurer ];
1313- license = licenses.asl20;
1414- };
1515-}
···11+{ fetchFromGitHub, lib, stdenv, libiconv, texlive, xercesc }:
22+33+stdenv.mkDerivation {
44+ pname = "blahtexml";
55+ version = "0.9+date=2020-05-16";
66+77+ src = fetchFromGitHub {
88+ owner = "gvanas";
99+ repo = "blahtexml";
1010+ rev = "92f2c5ff1f2b00a541b2222facc51ec72e5f6559";
1111+ hash = "sha256-ts+2gWsp7+rQu1US2/qEdbttB2Ps12efTSrcioZYsmE=";
1212+ };
1313+1414+ outputs = [ "out" "doc" ];
1515+1616+ nativeBuildInputs = [ texlive.combined.scheme-full ];
1717+ buildInputs = [ xercesc ] ++ lib.optionals stdenv.isDarwin [ libiconv ];
1818+1919+ buildFlags =
2020+ [ "doc" ] ++
2121+ (if stdenv.isDarwin
2222+ then [ "blahtex-mac" "blahtexml-mac" ]
2323+ else [ "blahtex-linux" "blahtexml-linux" ]);
2424+2525+ installPhase = ''
2626+ install -D -t "$out/bin" blahtex blahtexml
2727+ install -m644 -D -t "$doc/share/doc/blahtexml" Documentation/manual.pdf
2828+ '';
2929+3030+ meta = with lib; {
3131+ homepage = "http://gva.noekeon.org/blahtexml/";
3232+ description = "A TeX to MathML converter";
3333+ longDescription = ''
3434+ Blahtex is a program written in C++, which converts an equation given in
3535+ a syntax close to TeX into MathML. It is designed by David Harvey and is
3636+ aimed at supporting equations in MediaWiki.
3737+3838+ Blahtexml is a simple extension of blahtex, written by Gilles Van Assche.
3939+ In addition to the functionality of blahtex, blahtexml has XML processing
4040+ in mind and is able to process a whole XML document into another XML
4141+ document. Instead of converting only one formula at a time, blahtexml can
4242+ convert all the formulas of the given XML file into MathML.
4343+ '';
4444+ license = licenses.bsd3;
4545+ maintainers = [ maintainers.xworld21 ];
4646+ platforms = platforms.all;
4747+ };
4848+}
+1
pkgs/top-level/aliases.nix
···721721 polarssl = mbedtls; # added 2018-04-25
722722 poppler_qt5 = libsForQt5.poppler; # added 2015-12-19
723723 postgresql96 = postgresql_9_6;
724724+ postgresql_9_6 = throw "postgresql_9_6 has been removed from nixpkgs, as this version is no longer supported by upstream"; # added 2021-12-03
724725 # postgresql plugins
725726 pgjwt = postgresqlPackages.pgjwt;
726727 pg_repack = postgresqlPackages.pg_repack;