Merge pull request #132421 from SuperSandro2000/cleanup

This commit is contained in:
Sandro 2021-08-03 11:38:16 +00:00 committed by GitHub
commit 7067d12bb5
No known key found for this signature in database
GPG key ID: 4AEE18F83AFDEB23
5 changed files with 58 additions and 47 deletions

View file

@ -1,39 +1,28 @@
{ lib, stdenv, fetchurl, perlPackages, gettext, makeWrapper, ImageMagick, which, highlight { lib, stdenv, fetchurl, perlPackages, gettext, makeWrapper, ImageMagick, which, highlight
, gitSupport ? false, git ? null , gitSupport ? false, git
, docutilsSupport ? false, python ? null, docutils ? null , docutilsSupport ? false, python, docutils
, monotoneSupport ? false, monotone ? null , monotoneSupport ? false, monotone
, bazaarSupport ? false, breezy ? null , bazaarSupport ? false, breezy
, cvsSupport ? false, cvs ? null, cvsps ? null , cvsSupport ? false, cvs, cvsps
, subversionSupport ? false, subversion ? null , subversionSupport ? false, subversion
, mercurialSupport ? false, mercurial ? null , mercurialSupport ? false, mercurial
, extraUtils ? [] , extraUtils ? []
}: }:
assert docutilsSupport -> (python != null && docutils != null); stdenv.mkDerivation rec {
assert gitSupport -> (git != null); pname = "ikiwiki";
assert monotoneSupport -> (monotone != null);
assert bazaarSupport -> (breezy != null);
assert cvsSupport -> (cvs != null && cvsps != null && perlPackages.Filechdir != null);
assert subversionSupport -> (subversion != null);
assert mercurialSupport -> (mercurial != null);
let
name = "ikiwiki";
version = "3.20200202.3"; version = "3.20200202.3";
in
stdenv.mkDerivation {
name = "${name}-${version}";
src = fetchurl { src = fetchurl {
url = "mirror://debian/pool/main/i/ikiwiki/${name}_${version}.orig.tar.xz"; url = "mirror://debian/pool/main/i/ikiwiki/ikiwiki_${version}.orig.tar.xz";
sha256 = "0skrc8r4wh4mjfgw1c94awr5sacfb9nfsbm4frikanc9xsy16ksr"; sha256 = "0skrc8r4wh4mjfgw1c94awr5sacfb9nfsbm4frikanc9xsy16ksr";
}; };
buildInputs = [ which highlight ] buildInputs = [ which highlight ]
++ (with perlPackages; [ perl TextMarkdown URI HTMLParser HTMLScrubber HTMLTemplate ++ (with perlPackages; [ perl TextMarkdown URI HTMLParser HTMLScrubber HTMLTemplate
TimeDate gettext makeWrapper DBFile CGISession CGIFormBuilder LocaleGettext TimeDate gettext makeWrapper DBFile CGISession CGIFormBuilder LocaleGettext
RpcXML XMLSimple ImageMagick YAML YAMLLibYAML HTMLTree AuthenPassphrase RpcXML XMLSimple ImageMagick YAML YAMLLibYAML HTMLTree AuthenPassphrase
NetOpenIDConsumer LWPxParanoidAgent CryptSSLeay ]) NetOpenIDConsumer LWPxParanoidAgent CryptSSLeay ])
++ lib.optionals docutilsSupport [python docutils] ++ lib.optionals docutilsSupport [python docutils]
++ lib.optionals gitSupport [git] ++ lib.optionals gitSupport [git]
++ lib.optionals monotoneSupport [monotone] ++ lib.optionals monotoneSupport [monotone]
@ -80,11 +69,11 @@ stdenv.mkDerivation {
checkTarget = "test"; checkTarget = "test";
doCheck = true; doCheck = true;
meta = { meta = with lib; {
description = "Wiki compiler, storing pages and history in a RCS"; description = "Wiki compiler, storing pages and history in a RCS";
homepage = "http://ikiwiki.info/"; homepage = "http://ikiwiki.info/";
license = lib.licenses.gpl2Plus; license = licenses.gpl2Plus;
platforms = lib.platforms.linux; platforms = platforms.linux;
maintainers = [ lib.maintainers.peti ]; maintainers = [ maintainers.peti ];
}; };
} }

View file

@ -22,7 +22,7 @@ buildPythonPackage rec {
meta = with lib; { meta = with lib; {
description = "Provides a Sphinx domain for embedding UML diagram with PlantUML"; description = "Provides a Sphinx domain for embedding UML diagram with PlantUML";
homepage = "https://github.com/sphinx-contrib/plantuml/"; homepage = "https://github.com/sphinx-contrib/plantuml/";
maintainers = with maintainers; [ ];
license = with licenses; [ bsd2 ]; license = with licenses; [ bsd2 ];
}; };
} }

View file

@ -1,13 +1,32 @@
{ lib, stdenv, fetchurl, erlang, elixir, python, libxml2, libxslt, xmlto { lib
, docbook_xml_dtd_45, docbook_xsl, zip, unzip, rsync, getconf, socat , stdenv
, procps, coreutils, gnused, systemd, glibcLocales , fetchurl
, AppKit, Carbon, Cocoa , erlang
, elixir
, python
, libxml2
, libxslt
, xmlto
, docbook_xml_dtd_45
, docbook_xsl
, zip
, unzip
, rsync
, getconf
, socat
, procps
, coreutils
, gnused
, systemd
, glibcLocales
, AppKit
, Carbon
, Cocoa
, nixosTests , nixosTests
}: }:
stdenv.mkDerivation rec { stdenv.mkDerivation rec {
pname = "rabbitmq-server"; pname = "rabbitmq-server";
version = "3.9.1"; version = "3.9.1";
# when updating, consider bumping elixir version in all-packages.nix # when updating, consider bumping elixir version in all-packages.nix
@ -17,8 +36,7 @@ stdenv.mkDerivation rec {
}; };
nativeBuildInputs = [ unzip xmlto docbook_xml_dtd_45 docbook_xsl zip rsync ]; nativeBuildInputs = [ unzip xmlto docbook_xml_dtd_45 docbook_xsl zip rsync ];
buildInputs = buildInputs = [ erlang elixir python libxml2 libxslt glibcLocales ]
[ erlang elixir python libxml2 libxslt glibcLocales ]
++ lib.optionals stdenv.isDarwin [ AppKit Carbon Cocoa ]; ++ lib.optionals stdenv.isDarwin [ AppKit Carbon Cocoa ];
outputs = [ "out" "man" "doc" ]; outputs = [ "out" "man" "doc" ];
@ -33,9 +51,12 @@ stdenv.mkDerivation rec {
runtimePath = lib.makeBinPath ([ runtimePath = lib.makeBinPath ([
erlang erlang
getconf # for getting memory limits getconf # for getting memory limits
socat procps socat
gnused coreutils # used by helper scripts procps
gnused
coreutils # used by helper scripts
] ++ lib.optionals stdenv.isLinux [ systemd ]); # for systemd unit activation check ] ++ lib.optionals stdenv.isLinux [ systemd ]); # for systemd unit activation check
postInstall = '' postInstall = ''
# rabbitmq-env calls to sed/coreutils, so provide everything early # rabbitmq-env calls to sed/coreutils, so provide everything early
sed -i $out/sbin/rabbitmq-env -e '2s|^|PATH=${runtimePath}\''${PATH:+:}\$PATH/\n|' sed -i $out/sbin/rabbitmq-env -e '2s|^|PATH=${runtimePath}\''${PATH:+:}\$PATH/\n|'
@ -53,15 +74,15 @@ stdenv.mkDerivation rec {
rm $out/INSTALL rm $out/INSTALL
''; '';
meta = {
homepage = "https://www.rabbitmq.com/";
description = "An implementation of the AMQP messaging protocol";
license = lib.licenses.mpl20;
platforms = lib.platforms.unix;
maintainers = with lib.maintainers; [ Profpatsch ];
};
passthru.tests = { passthru.tests = {
vm-test = nixosTests.rabbitmq; vm-test = nixosTests.rabbitmq;
}; };
meta = with lib; {
homepage = "https://www.rabbitmq.com/";
description = "An implementation of the AMQP messaging protocol";
license = licenses.mpl20;
platforms = platforms.unix;
maintainers = with maintainers; [ Profpatsch ];
};
} }

View file

@ -73,6 +73,7 @@ mapAliases ({
setuptools_scm = setuptools-scm; # added 2021-06-03 setuptools_scm = setuptools-scm; # added 2021-06-03
smart_open = smart-open; # added 2021-03-14 smart_open = smart-open; # added 2021-03-14
smmap2 = throw "smmap2 has been deprecated, use smmap instead."; # added 2020-03-14 smmap2 = throw "smmap2 has been deprecated, use smmap instead."; # added 2020-03-14
sphinxcontrib_plantuml = sphinxcontrib-plantuml;
topydo = throw "python3Packages.topydo was moved to topydo"; # 2017-09-22 topydo = throw "python3Packages.topydo was moved to topydo"; # 2017-09-22
tvnamer = throw "python3Packages.tvnamer was moved to tvnamer"; # 2021-07-05 tvnamer = throw "python3Packages.tvnamer was moved to tvnamer"; # 2021-07-05
websocket_client = websocket-client; websocket_client = websocket-client;

View file

@ -8256,7 +8256,7 @@ in {
sphinxcontrib-openapi = callPackage ../development/python-modules/sphinxcontrib-openapi { }; sphinxcontrib-openapi = callPackage ../development/python-modules/sphinxcontrib-openapi { };
sphinxcontrib_plantuml = callPackage ../development/python-modules/sphinxcontrib_plantuml { sphinxcontrib-plantuml = callPackage ../development/python-modules/sphinxcontrib-plantuml {
inherit (pkgs) plantuml; inherit (pkgs) plantuml;
}; };