17 x86_64-linux = fetchurl {
18 url = "mirror://sourceforge/project/mozart-oz/v${version}-alpha.0/mozart2-${version}-alpha.0+build.4105.5c06ced-x86_64-linux.tar.gz";
19 sha256 = "0rsfrjimjxqbwprpzzlmydl3z3aiwg5qkb052jixdxjyad7gyh5z";
25 pname = "mozart-binary";
28 preferLocalBuild = true;
31 binaries.${stdenv.hostPlatform.system}
32 or (throw "unsupported system: ${stdenv.hostPlatform.system}");
34 libPath = lib.makeLibraryPath [
42 TK_LIBRARY = "${tk-8_5}/lib/tk8.5";
44 nativeBuildInputs = [ makeWrapper ];
48 tar xvf $src -C $out --strip-components=1
50 for exe in $out/bin/{ozemulator,ozwish} ; do
51 patchelf --set-interpreter $(< $NIX_CC/nix-support/dynamic-linker) \
52 --set-rpath $libPath \
56 wrapProgram $out/bin/ozwish \
58 --set TK_LIBRARY $TK_LIBRARY
60 wrapProgram $out/bin/ozemulator --set OZHOME $out
62 ${lib.optionalString (emacs != null) ''
63 wrapProgram $out/bin/oz --suffix PATH ":" ${lib.makeBinPath [ emacs ]}
66 sed -i $out/share/applications/oz.desktop \
67 -e "s,Exec=oz %u,Exec=$out/bin/oz %u,"
69 gzip -9n $out/share/mozart/elisp"/"*.elc
75 homepage = "https://www.mozart-oz.org/";
76 description = "Multiplatform implementation of the Oz programming language";
78 The Mozart Programming System combines ongoing research in
79 programming language design and implementation, constraint logic
80 programming, distributed computing, and human-computer
81 interfaces. Mozart implements the Oz language and provides both
82 expressive power and advanced functionality.
84 sourceProvenance = with sourceTypes; [ binaryBytecode ];
85 license = licenses.mit;
86 platforms = attrNames binaries;