From fb7c640fa9643b42521aa6024978e88fefaf3ceb Mon Sep 17 00:00:00 2001 From: Florian Klink Date: Wed, 2 Apr 2025 18:46:31 +0100 Subject: [PATCH] xsd: drop This package is outdated and fails to build currently. It was only used by libdigidocpp, which doesn't need it anymore since https://github.com/open-eid/libdigidocpp/commit/79d700149c349bd0d44a2b35e0181d1ff149230f, and is of the very few remaining packages still using gcc9Stdenv. Drop it entirely. --- pkgs/development/libraries/xsd/default.nix | 45 ------- pkgs/development/libraries/xsd/xsdcxx.patch | 126 -------------------- pkgs/top-level/aliases.nix | 1 + pkgs/top-level/all-packages.nix | 4 - 4 files changed, 1 insertion(+), 175 deletions(-) delete mode 100644 pkgs/development/libraries/xsd/default.nix delete mode 100644 pkgs/development/libraries/xsd/xsdcxx.patch diff --git a/pkgs/development/libraries/xsd/default.nix b/pkgs/development/libraries/xsd/default.nix deleted file mode 100644 index 14600a773bf8..000000000000 --- a/pkgs/development/libraries/xsd/default.nix +++ /dev/null @@ -1,45 +0,0 @@ -{ - lib, - stdenv, - fetchurl, - xercesc, -}: - -let -in -stdenv.mkDerivation rec { - pname = "xsd"; - version = "4.0.0"; - - src = fetchurl { - url = "https://codesynthesis.com/download/xsd/4.0/xsd-4.0.0+dep.tar.bz2"; - sha256 = "05wqhmd5cd4pdky8i8qysnh96d2h16ly8r73whmbxkajiyf2m9gc"; - }; - - patches = [ ./xsdcxx.patch ]; - - postPatch = '' - patchShebangs . - ''; - - enableParallelBuilding = true; - - buildFlags = [ - "LDFLAGS=-L${xercesc}/lib" - "CPPFLAGS=-I${xercesc}/include" - ]; - installFlags = buildFlags ++ [ - "install_prefix=${placeholder "out"}" - ]; - - buildInputs = [ xercesc ]; - - meta = { - homepage = "http://www.codesynthesis.com/products/xsd"; - description = "Open-source, cross-platform W3C XML Schema to C++ data binding compiler"; - mainProgram = "xsd"; - license = lib.licenses.gpl2; - platforms = lib.platforms.linux; - maintainers = [ lib.maintainers.jagajaga ]; - }; -} diff --git a/pkgs/development/libraries/xsd/xsdcxx.patch b/pkgs/development/libraries/xsd/xsdcxx.patch deleted file mode 100644 index 88a893c6e602..000000000000 --- a/pkgs/development/libraries/xsd/xsdcxx.patch +++ /dev/null @@ -1,126 +0,0 @@ ---- xsd-4.0.0+dep/xsd/doc/xsd.1~ 2014-09-14 12:25:36.862267587 +0000 -+++ xsd-4.0.0+dep/xsd/doc/xsd.1 2014-09-14 12:28:25.728229892 +0000 -@@ -1,16 +1,16 @@ - .\" Process this file with --.\" groff -man -Tascii xsd.1 -+.\" groff -man -Tascii xsdcxx.1 - .\" - .TH XSD 1 "July 2014" "XSD 4.0.0" - .SH NAME --xsd \- W3C XML Schema to C++ Compiler -+xsdcxx \- W3C XML Schema to C++ Compiler - .\" - .\" - .\" - .\"-------------------------------------------------------------------- - .SH SYNOPSIS - .\"-------------------------------------------------------------------- --.B xsd -+.B xsdcxx - .I command - .B [ - .I options -@@ -20,19 +20,19 @@ - .I file - .B ...] - .in --.B xsd help -+.B xsdcxx help - .B [ - .I command - .B ] - .in --.B xsd version -+.B xsdcxx version - .\" - .\" - .\" - .\"-------------------------------------------------------------------- - .SH DESCRIPTION - .\"-------------------------------------------------------------------- --.B xsd -+.B xsdcxx - generates vocabulary-specific, statically-typed C++ mapping from W3C XML - Schema definitions. Particular mapping to produce is selected by a - .IR command . -@@ -96,7 +96,7 @@ - .PP - .RS - .RS 3 --.B xsd help -+.B xsdcxx help - .I command - .RE - .PP -@@ -206,7 +206,7 @@ - \fIfilename\fP \fInamespace\fP - - For example, if you have file \fBhello\.xsd\fP with namespace --\fBhttp://example\.com/hello\fP and you run \fBxsd\fP on this file, then the -+\fBhttp://example\.com/hello\fP and you run \fBxsdcxx\fP on this file, then the - string in question will be: - - \fBhello\.xsd\. http://example\.com/hello\fP -@@ -1632,7 +1632,7 @@ - .\" - .SH DIAGNOSTICS - If the input file is not a valid W3C XML Schema definition, --.B xsd -+.B xsdcxx - will issue diagnostic messages to - .B STDERR - and exit with non-zero exit code. ---- xsd-4.0.0+dep/xsd/doc/xsd.xhtml~ 2014-09-14 12:28:37.731513138 +0000 -+++ xsd-4.0.0+dep/xsd/doc/xsd.xhtml 2014-09-14 12:30:11.277789610 +0000 -@@ -50,19 +50,19 @@ - -

NAME

- --

xsd - W3C XML Schema to C++ Compiler

-+

xsdcxx - W3C XML Schema to C++ Compiler

- -

SYNOPSIS

- -
--
xsd command [options] file [file ...]
--
xsd help [command]
--
xsd version
-+
xsdcxx command [options] file [file ...]
-+
xsdcxx help [command]
-+
xsdcxx version
-
- -

DESCRIPTION

- --

xsd generates vocabulary-specific, statically-typed -+

xsdcxx generates vocabulary-specific, statically-typed - C++ mapping from W3C XML Schema definitions. Particular mapping to - produce is selected by a command. Each mapping has - a number of mapping-specific options that should -@@ -104,7 +104,7 @@ - -

help
-
Print usage information and exit. Use --

xsd help command

-+

xsdcxx help command

- for command-specific help. -
- -@@ -219,7 +219,7 @@ - -

For example, if you have file hello.xsd with - namespace http://example.com/hello and you run -- xsd on this file, then the string in question will -+ xsdcxx on this file, then the string in question will - be:

- -

hello.xsd. http://example.com/hello

-@@ -1530,7 +1530,7 @@ -

DIAGNOSTICS

- -

If the input file is not a valid W3C XML Schema definition, -- xsd will issue diagnostic messages to STDERR -+ xsdcxx will issue diagnostic messages to STDERR - and exit with non-zero exit code.

- -

BUGS

diff --git a/pkgs/top-level/aliases.nix b/pkgs/top-level/aliases.nix index 7808fc468fef..c13b7a6312a3 100644 --- a/pkgs/top-level/aliases.nix +++ b/pkgs/top-level/aliases.nix @@ -1858,6 +1858,7 @@ mapAliases { xonsh-unwrapped = python3Packages.xonsh; # Added 2024-06-18 xplayer = throw "xplayer has been removed as the upstream project was archived"; # Added 2024-12-27 xprite-editor = throw "'xprite-editor' has been removed due to lack of maintenance upstream. Consider using 'pablodraw' or 'aseprite' instead"; # Added 2024-09-14 + xsd = throw "'xsd' has been removed."; # Added 2025-04-02 xsv = throw "'xsv' has been removed due to lack of upstream maintenance. Please see 'xan' for a maintained alternative"; xtrlock-pam = throw "xtrlock-pam has been removed because it is unmaintained for 10 years and doesn't support Python 3.10 or newer"; # Added 2025-01-25 xulrunner = firefox-unwrapped; # Added 2023-11-03 diff --git a/pkgs/top-level/all-packages.nix b/pkgs/top-level/all-packages.nix index 01cee5c744ab..8f41010c009a 100644 --- a/pkgs/top-level/all-packages.nix +++ b/pkgs/top-level/all-packages.nix @@ -16940,10 +16940,6 @@ with pkgs; }; libfakeXinerama = callPackage ../tools/X11/xpra/libfakeXinerama.nix { }; - xsd = callPackage ../development/libraries/xsd { - stdenv = gcc9Stdenv; - }; - xmp = callPackage ../applications/audio/xmp { inherit (darwin.apple_sdk.frameworks) AudioUnit CoreAudio; };