mirror of
https://github.com/NixOS/nixpkgs.git
synced 2026-08-25 17:55:21 +00:00
mozart-binary: Remove
Superseded by `mozart2`, which installs the same `oz`, `ozc`, `ozemulator`, `ozengine` and `ozwish`, but builds 2.0.1 from source and is maintained. This package was a binary snapshot of `2.0.0-alpha.0` from 2018, with no maintainers and `hydraPlatforms = [ ]`, and nothing in the tree depended on it. It was also the last consumer of Tcl/Tk 8.5 that could not be moved: as a prebuilt binary, `bin/ozwish` has `DT_NEEDED` on `libtcl8.5.so` and `libtk8.5.so`, so it could not be pointed at a newer Tcl. Assisted-by: Claude Code (Claude Opus 5)
This commit is contained in:
@@ -1,92 +0,0 @@
|
||||
{
|
||||
lib,
|
||||
stdenv,
|
||||
fetchurl,
|
||||
makeWrapper,
|
||||
boost,
|
||||
gmp,
|
||||
tcl-8_5,
|
||||
tk-8_5,
|
||||
emacs,
|
||||
}:
|
||||
|
||||
stdenv.mkDerivation (
|
||||
finalAttrs:
|
||||
let
|
||||
binaries = {
|
||||
x86_64-linux = fetchurl {
|
||||
url = "mirror://sourceforge/project/mozart-oz/v${finalAttrs.version}-alpha.0/mozart2-${finalAttrs.version}-alpha.0+build.4105.5c06ced-x86_64-linux.tar.gz";
|
||||
hash = "sha256-v0D/TlNe9tajFAWsicvjUY0/aPOV/n/z5Qt3WaPMTmc=";
|
||||
};
|
||||
};
|
||||
in
|
||||
{
|
||||
pname = "mozart-binary";
|
||||
version = "2.0.0";
|
||||
|
||||
preferLocalBuild = true;
|
||||
|
||||
src =
|
||||
binaries.${stdenv.hostPlatform.system}
|
||||
or (throw "unsupported system: ${stdenv.hostPlatform.system}");
|
||||
|
||||
strictDeps = true;
|
||||
__structuredAttrs = true;
|
||||
|
||||
libPath = lib.makeLibraryPath [
|
||||
stdenv.cc.cc
|
||||
boost
|
||||
gmp
|
||||
tcl-8_5
|
||||
tk-8_5
|
||||
];
|
||||
|
||||
env.TK_LIBRARY = "${tk-8_5}/lib/tk8.5";
|
||||
|
||||
nativeBuildInputs = [ makeWrapper ];
|
||||
|
||||
buildCommand = ''
|
||||
mkdir $out
|
||||
tar xvf $src -C $out --strip-components=1
|
||||
|
||||
for exe in $out/bin/{ozemulator,ozwish} ; do
|
||||
patchelf --set-interpreter $(< $NIX_CC/nix-support/dynamic-linker) \
|
||||
--set-rpath $libPath \
|
||||
$exe
|
||||
done
|
||||
|
||||
wrapProgram $out/bin/ozwish \
|
||||
--set OZHOME $out \
|
||||
--set TK_LIBRARY $TK_LIBRARY
|
||||
|
||||
wrapProgram $out/bin/ozemulator --set OZHOME $out
|
||||
|
||||
${lib.optionalString (emacs != null) ''
|
||||
wrapProgram $out/bin/oz --suffix PATH ":" ${lib.makeBinPath [ emacs ]}
|
||||
''}
|
||||
|
||||
sed -i $out/share/applications/oz.desktop \
|
||||
-e "s,Exec=oz %u,Exec=$out/bin/oz %u,"
|
||||
|
||||
gzip -9n $out/share/mozart/elisp"/"*.elc
|
||||
|
||||
patchShebangs $out
|
||||
'';
|
||||
|
||||
meta = {
|
||||
homepage = "https://www.mozart-oz.org/";
|
||||
description = "Multiplatform implementation of the Oz programming language";
|
||||
longDescription = ''
|
||||
The Mozart Programming System combines ongoing research in
|
||||
programming language design and implementation, constraint logic
|
||||
programming, distributed computing, and human-computer
|
||||
interfaces. Mozart implements the Oz language and provides both
|
||||
expressive power and advanced functionality.
|
||||
'';
|
||||
sourceProvenance = with lib.sourceTypes; [ binaryBytecode ];
|
||||
license = lib.licenses.mit;
|
||||
platforms = lib.attrNames binaries;
|
||||
hydraPlatforms = [ ];
|
||||
};
|
||||
}
|
||||
)
|
||||
@@ -1693,6 +1693,7 @@ mapAliases {
|
||||
mouse-actions-gui = throw "'mouse-actions-gui' has been removed as it depended on webkitgtk 4.0 and libsoup 2.4"; # Added 2026-06-07
|
||||
move-mount-beneath = throw "move-mount-beneath has been removed, it is now superseded by util-linux's mount"; # Added 2026-05-19
|
||||
moz-phab = throw "'moz-phab' has been renamed to/replaced by 'mozphab'"; # Converted to throw 2025-10-27
|
||||
mozart-binary = throw "'mozart-binary' has been removed, as it was an unmaintained 2018 alpha snapshot superseded by 'mozart2'"; # Added 2026-08-22
|
||||
mp3splt = throw "'mp3splt' has been removed due to lack of maintenance upstream."; # Added 2025-05-17
|
||||
mpage = throw "'mpage' has been removed due to being unmaintained and broken"; # Added 2026-05-05
|
||||
mpc-cli = throw "'mpc-cli' has been renamed to/replaced by 'mpc'"; # Converted to throw 2025-10-27
|
||||
|
||||
Reference in New Issue
Block a user