···289 port = cfg.port;
290 };
291292- services.postgresql.package =
00293 # Note: when changing the default, make it conditional on
294 # ‘system.stateVersion’ to maintain compatibility with existing
295 # systems!
296 mkDefault (if versionAtLeast config.system.stateVersion "21.11" then pkgs.postgresql_13
297 else if versionAtLeast config.system.stateVersion "20.03" then pkgs.postgresql_11
298- else if versionAtLeast config.system.stateVersion "17.09" then pkgs.postgresql_9_6
299- else throw "postgresql_9_5 was removed, please upgrade your postgresql version.");
300301 services.postgresql.dataDir = mkDefault "/var/lib/postgresql/${cfg.package.psqlSchema}";
302
···289 port = cfg.port;
290 };
291292+ services.postgresql.package = let
293+ mkThrow = ver: throw "postgresql_${ver} was removed, please upgrade your postgresql version.";
294+ in
295 # Note: when changing the default, make it conditional on
296 # ‘system.stateVersion’ to maintain compatibility with existing
297 # systems!
298 mkDefault (if versionAtLeast config.system.stateVersion "21.11" then pkgs.postgresql_13
299 else if versionAtLeast config.system.stateVersion "20.03" then pkgs.postgresql_11
300+ else if versionAtLeast config.system.stateVersion "17.09" then mkThrow "9_6"
301+ else mkThrow "9_5");
302303 services.postgresql.dataDir = mkDefault "/var/lib/postgresql/${cfg.package.psqlSchema}";
304
···1-{ lib, type_conv, buildOcamlJane }:
2-3-buildOcamlJane {
4- pname = "fieldslib";
5- version = "113.33.03";
6-7- minimumSupportedOcamlVersion = "4.02";
8-9- hash = "0mkbix32f8sq32q81hb10z2q31bw5f431jxv0jafbdrif0vr6xqd";
10-11- propagatedBuildInputs = [ type_conv ];
12-13- meta = with lib; {
14- homepage = "https://ocaml.janestreet.com/";
15- 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";
16- license = licenses.asl20;
17- maintainers = [ maintainers.maurer maintainers.vbgl ];
18- };
19-}
···1-{lib, buildOcamlJane,
2- ppx_core, ppx_tools}:
3-4-buildOcamlJane {
5- pname = "ppx_optcomp";
6- hash = "09m2x2a5ics4bz1j29n5slhh1rlyhcwdfmf44v1jfxcby3f0riwd";
7- propagatedBuildInputs =
8- [ ppx_core ppx_tools ];
9-10- meta = with lib; {
11- 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.";
12- maintainers = [ maintainers.maurer ];
13- license = licenses.asl20;
14- };
15-}
···201202in self: {
203204- postgresql_9_6 = self.callPackage generic {
205- version = "9.6.24";
206- psqlSchema = "9.6";
207- sha256 = "sha256-rrehlr4+vtGnR271ZfOXIhh8EI3UfadIm+nE/K6YKs4=";
208- this = self.postgresql_9_6;
209- thisAttr = "postgresql_9_6";
210- inherit self;
211- };
212-213 postgresql_10 = self.callPackage generic {
214 version = "10.19";
215 psqlSchema = "10.0"; # should be 10, but changing it is invasive
···201202in self: {
203000000000204 postgresql_10 = self.callPackage generic {
205 version = "10.19";
206 psqlSchema = "10.0"; # should be 10, but changing it is invasive
···1+{ fetchFromGitHub, lib, stdenv, libiconv, texlive, xercesc }:
2+3+stdenv.mkDerivation {
4+ pname = "blahtexml";
5+ version = "0.9+date=2020-05-16";
6+7+ src = fetchFromGitHub {
8+ owner = "gvanas";
9+ repo = "blahtexml";
10+ rev = "92f2c5ff1f2b00a541b2222facc51ec72e5f6559";
11+ hash = "sha256-ts+2gWsp7+rQu1US2/qEdbttB2Ps12efTSrcioZYsmE=";
12+ };
13+14+ outputs = [ "out" "doc" ];
15+16+ nativeBuildInputs = [ texlive.combined.scheme-full ];
17+ buildInputs = [ xercesc ] ++ lib.optionals stdenv.isDarwin [ libiconv ];
18+19+ buildFlags =
20+ [ "doc" ] ++
21+ (if stdenv.isDarwin
22+ then [ "blahtex-mac" "blahtexml-mac" ]
23+ else [ "blahtex-linux" "blahtexml-linux" ]);
24+25+ installPhase = ''
26+ install -D -t "$out/bin" blahtex blahtexml
27+ install -m644 -D -t "$doc/share/doc/blahtexml" Documentation/manual.pdf
28+ '';
29+30+ meta = with lib; {
31+ homepage = "http://gva.noekeon.org/blahtexml/";
32+ description = "A TeX to MathML converter";
33+ longDescription = ''
34+ Blahtex is a program written in C++, which converts an equation given in
35+ a syntax close to TeX into MathML. It is designed by David Harvey and is
36+ aimed at supporting equations in MediaWiki.
37+38+ Blahtexml is a simple extension of blahtex, written by Gilles Van Assche.
39+ In addition to the functionality of blahtex, blahtexml has XML processing
40+ in mind and is able to process a whole XML document into another XML
41+ document. Instead of converting only one formula at a time, blahtexml can
42+ convert all the formulas of the given XML file into MathML.
43+ '';
44+ license = licenses.bsd3;
45+ maintainers = [ maintainers.xworld21 ];
46+ platforms = platforms.all;
47+ };
48+}