jiebi/CodeConvo huggingface dataset:
Change:
When we try to install twtxt package on environment.systempackages = with pkgs;[ twtxt ]; the twtxt application does not work with the output on the title. Steps to reproduce the behavior: this based on twtxt nixpkgs reference to run the equivalent to The result from command above should be But the output will be something like The steuptools needs to be referenced on propagatedBuildInputs, maybe another python applications have the same bug. Please run and paste the result. Add a :+1: [reaction] to [issues you find important]. [reaction]: [issues you find important]:
Could you please take a look at ? Feedback would be much appreciated as I'm not a user.

Discussion:
<del> { lib, fetchFromGitHub, buildPythonApplication, aiohttp, python-dateutil, humanize, click, pytestCheckHook, tox }: </del> <ins> { lib, fetchFromGitHub, python3, }: </ins> <del> buildPythonApplication rec { </del> <ins> python3.pkgs.buildPythonApplication rec { </ins> pname = "twtxt"; version = "1.3.1"; <ins> pyproject = true; </ins> src = fetchFromGitHub { owner = "buckket"; <del> repo = pname; </del> <ins> repo = "twtxt"; </ins> rev = "refs/tags/v${version}"; sha256 = "sha256-CbFh1o2Ijinfb8X+h1GP3Tp+8D0D3/Czt/Uatd1B4cw="; }; <del> # Relax some dependencies postPatch = '' substituteInPlace setup.py  --replace 'aiohttp>=2.2.5,<3' 'aiohttp'  --replace 'click>=6.7,<7' 'click'  --replace 'humanize>=0.5.1,<1' 'humanize' ''; </del> <ins> build-system = with python3.pkgs; [ setuptools ]; </ins> <del> propagatedBuildInputs = [ aiohttp python-dateutil humanize click ]; </del> <ins> dependencies = with python3.pkgs; [ aiohttp click humanize python-dateutil setuptools ]; nativeCheckInputs = with python3.pkgs; [ pytestCheckHook ]; </ins> <del> nativeCheckInputs = [ pytestCheckHook tox ]; </del> <ins> pythonImportsCheck = [ "twtxt" ]; </ins> disabledTests = [ <del> # Disable test using relative date and time "test_tweet_relative_datetime" </del> <ins> # Disable test using relative date and time "test_tweet_relative_datetime" </ins> ]; meta = with lib; { description = "Decentralised, minimalist microblogging service for hackers"; homepage = "https://github.com/buckket/twtxt"; <ins> changelog = "https://github.com/buckket/twtxt/releases/tag/v${version}"; </ins> license = licenses.mit; maintainers = with maintainers; [ siraben ]; mainProgram = "twtxt";
Change:
Project description Metadata homepage URL: source URL: Proprietary license: Proprietary platforms: Windows, Linux I don't know how to package a nix package but here's what i found getting it to run from the .zip download: causes it to launch and works, but crashes with SIGSEGV. works so presumably it's a library issue of some sort but i don't know which. Add a :+1: [reaction] to [issues you find important]. [reaction]: [issues you find important]:

Discussion:
<ins> { autoPatchelfHook, copyDesktopItems, fetchzip, lib, libGL, libGLU, libxcrypt-legacy, makeDesktopItem, makeWrapper, stdenv, testers, vulkan-loader, }: let description = "OpenGL and Vulkan Benchmark and Stress Test"; versions = { "x86_64-linux" = "2.3.0.0"; "aarch64-linux" = "2.3.0.0"; "i686-linux" = "2.0.16"; }; sources = { "x86_64-linux" = { url = "https://gpumagick.com/downloads/files/2024/furmark2/FurMark_${versions.x86_64-linux}_linux64.zip"; hash = "sha256-9xwnOo8gh6XlX2uTwvEorXsx9FafaeCyCPPPJLJGeuE="; }; "aarch64-linux" = { url = "https://gpumagick.com/downloads/files/2024/furmark2/FurMark_${versions.x86_64-linux}_rpi64.zip"; hash = "sha256-az4prQbg9I+6rt2y1OTy3t21/VHyZS++57r4Ahe3fcQ="; }; "i686-linux" = { url = "https://gpumagick.com/downloads/files/2024/furmark2/FurMark_${versions.i686-linux}_linux32.zip"; hash = "sha256-yXd90FgL3WbTga5x0mXT40BonA2NQtqLzRVzn4s4lLc="; }; }; in stdenv.mkDerivation (finalAttrs: { pname = "furmark"; version = versions.${stdenv.hostPlatform.system}; src = fetchzip sources.${stdenv.hostPlatform.system}; nativeBuildInputs = [ autoPatchelfHook copyDesktopItems makeWrapper ]; buildInputs = [ libGL libGLU ] ++ lib.optionals stdenv.isAarch64 [ libxcrypt-legacy ]; installPhase = '' runHook preInstall mkdir -p $out/share/furmark cp -rp * $out/share/furmark mkdir -p $out/bin for i in $(find $out/share/furmark -maxdepth 1 -type f -executable); do ln -s "$i" "$out/bin/$(basename "$i")" done runHook postInstall ''; appendRunpaths = [ (lib.makeLibraryPath [ vulkan-loader ]) ]; desktopItems = [ (makeDesktopItem rec { name = "FurMark"; exec = "FurMark_GUI"; comment = description; desktopName = name; genericName = name; categories = [ "System" "Monitor" ]; }) ]; passthru = { tests.version = testers.testVersion { package = finalAttrs.finalPackage; command = "furmark --version"; }; }; meta = { homepage = "https://www.geeks3d.com/furmark/v2/"; license = lib.licenses.unfree; mainProgram = "FurMark_GUI"; maintainers = with lib.maintainers; [ surfaceflinger ]; platforms = [ "aarch64-linux" "i686-linux" "x86_64-linux" ]; sourceProvenance = with lib.sourceTypes; [ binaryNativeCode ]; inherit description; }; }) </ins>
Change:
Steps to reproduce the behavior: With : Directly installing this package from within Emacs (using ) does not cause this error. The execution leading to this build error is: in calls ... which calls on the unpacked directory name () ... which parses this name to get the "package name" and append to get the "package description file name" wrongly thinks the "package name" is "p4" instead of "p4-16-mode", and looks for (instead of ), which does not exist. <!-- Please @ people who are in the list of the offending package or module. If in doubt, check for whoever last touched something. -- Add a :+1: [reaction] to [issues you find important]. [reaction]: [issues you find important]:
Most certainly the parser conflates 16 as a version number.

Discussion:
super = imported; <del> overrides = { }; </del> <ins> overrides = { p4-16-mode = super.p4-16-mode.overrideAttrs { # workaround https://github.com/NixOS/nixpkgs/issues/301795 prePatch = '' mkdir tmp-untar-dir pushd tmp-untar-dir tar --extract --verbose --file=$src content_directory=$(echo p4-16-mode-*) cp --verbose $content_directory/p4-16-mode-pkg.el $content_directory/p4-pkg.el src=$PWD/$content_directory.tar tar --create --verbose --file=$src $content_directory popd ''; }; }; </ins> in super // overrides

super = imported; overrides = { <ins> p4-16-mode = super.p4-16-mode.overrideAttrs { # workaround https://github.com/NixOS/nixpkgs/issues/301795 prePatch = '' mkdir tmp-untar-dir pushd tmp-untar-dir tar --extract --verbose --file=$src content_directory=$(echo p4-16-mode-*) cp --verbose $content_directory/p4-16-mode-pkg.el $content_directory/p4-pkg.el src=$PWD/$content_directory.tar tar --create --verbose --file=$src $content_directory popd ''; }; </ins> }; in super // overrides);
Change:
Project description Metadata homepage URL: source URL: license: BSD-3-Clause license platforms: linux The version compatible with NixOS 23.11 is 1.3.3. Below is the code for this Python package, which might be useful: Add a :+1: [reaction] to [issues you find important]. [reaction]: [issues you find important]:
please test edit: i tried to add a quippy command to test this, but the new nix cli doesn't construct python environments like the old cli did, and the old cli can't trivially use github pull as input...

Discussion:
<ins> { lib , buildPythonPackage , fetchFromGitHub , setuptools , pyglet , pytestCheckHook , mock }: buildPythonPackage rec { pname = "PyWavefront"; version = "1.3.3"; pyproject = true; src = fetchFromGitHub { owner = "pywavefront"; repo = "PyWavefront"; rev = version; hash = "sha256-ci40L2opJ+NYYtaAeX1Y5pzkdK+loFspTriX/xv4KR8="; }; nativeBuildInputs = [ setuptools ]; passthru.optional-dependencies.visualization = [ pyglet ]; nativeCheckInputs = [ pytestCheckHook mock ]; pythonImportsCheck = [ "pywavefront" ]; meta = with lib; { description = "Python library for importing Wavefront .obj files"; homepage = "https://github.com/pywavefront/PyWavefront"; changelog = "https://github.com/pywavefront/PyWavefront/blob/${src.rev}/CHANGELOG.md"; license = licenses.bsd3; maintainers = with maintainers; [ pbsds ]; }; } </ins>

pywaterkotte = callPackage ../development/python-modules/pywaterkotte { }; <ins> pywavefront = callPackage ../development/python-modules/pywavefront { }; </ins> pywavelets = callPackage ../development/python-modules/pywavelets { }; pywayland = callPackage ../development/python-modules/pywayland { };
Change:
Hi, I am using latest verison of nix on Ubuntu 16 64 bit. I had installed atom package. I update my all aps by this commands: nix-channel --update nixpkgs nix-env -u '' But my atom package has changed as atom-beta without any warning or something. Is this normal? Thank you
Nope. That's because the name part of the name is incorrect in the Nix expression. It should reflect that it is a beta. With the current name, can't distinguish between and . cc
Oh, until now I was not even aware there was an atom beta derivation... Edit: I am fixing it
this in .
I am executing these commands: nix-channel --update nixpkgs nix-env -u '' nix-env -i atom but it still installs atom-beta. How can I track when the package will update on production? Thank you
It fixed. Thank you. :)
Glad to hear

Discussion:
{ stdenv, pkgs, fetchurl, lib, makeWrapper, gvfs, atomEnv}: stdenv.mkDerivation rec { <del> name = "atom-${version}"; version = "1.21.0-beta0"; </del> <ins> name = "atom-beta-${version}"; version = "1.22.0-beta0"; </ins> src = fetchurl { url = "https://github.com/atom/atom/releases/download/v${version}/atom-amd64.deb"; <del> sha256 = "1syxlyb62vp9hmjdiazhmvq8w52b90l8mvf502xkdav4vi3yxzfz"; </del> <ins> sha256 = "0xsj0vvaxjw60gg6niaws2lf9lkrh1sz7ypk41g6l4hdgmqyg6fi"; </ins> name = "${name}.deb"; };
Change:
Package name: calibre Latest released version: 7.8.0 <!-- Search your package here: --- Current version on the unstable channel: 7.7.0 Current version on the stable/release channel: 7.0.0 Notify maintainers Changelog: https://calibre- Note for maintainers: Please tag this issue in your PR. Add a :+1: [reaction] to [issues you find important]. [reaction]: [issues you find important]:

Discussion:
stdenv.mkDerivation (finalAttrs: { pname = "calibre"; <del> version = "7.7.0"; </del> <ins> version = "7.8.0"; </ins> src = fetchurl { url = "https://download.calibre-ebook.com/${finalAttrs.version}/calibre-${finalAttrs.version}.tar.xz"; <del> hash = "sha256-+kz3Fz1RDQ+ROgv7y0WNAWvIESKvHKID8UnSeCh8yA4="; </del> <ins> hash = "sha256-FxYuQzzuaWZihSsmeJc6ssG3VBr2YNEi3TkXyyymLUQ="; </ins> }; patches = [
Change:
Project description <!-- Describe the project a little: --Supermodel emulates Sega's Model 3 arcade platform, allowing you to relive state-of-the-art 3D arcade gaming as it existed from 1996 through 1999. Metadata homepage URL: source URL: license: GPL platforms: linux, darwin Add a :+1: [reaction] to [issues you find important]. [reaction]: [issues you find important]:

Discussion:
<ins> { fetchFromGitHub , lib , libGLU , SDL2 , SDL2_net , stdenv , zlib }: stdenv.mkDerivation rec { pname = "supermodel"; version = "0-unstable-2024-04-05"; src = fetchFromGitHub { owner = "trzy"; repo = "supermodel"; rev = "250f84e78eba381adf8cd731ce20b1b9be43c8c8"; hash = "sha256-3sDtNMW5R5Eq9GXJzKs0mQdiLUIWl6+4+rzKg8xpqEY="; }; buildInputs = [ libGLU SDL2 SDL2_net zlib ]; env.NIX_CFLAGS_COMPILE = "-Wno-error=format-security"; makefile = "Makefiles/Makefile.UNIX"; makeFlags = [ "NET_BOARD=1" ]; installPhase = '' runHook preInstall mkdir -p $out/bin mkdir -p $out/share/supermodel cp bin/* $out/bin cp -r Config Assets $out/share/supermodel runHook postInstall ''; meta = { description = "A Sega Model 3 Arcade Emulator"; homepage = "https://github.com/trzy/supermodel"; license = lib.licenses.gpl3; longDescription = '' Supermodel requires specific files to be present in the $HOME directory of the user running the emulator. To ensure these files are present, move the configuration and assets as follows: <code>cp $out/share/supermodel/Config/Supermodel.ini ~/.config/supermodel/Config/Supermodel.ini</code> <code>cp -r $out/share/supermodel/Assets/* ~/.local/share/supermodel/Assets/</code> Then the emulator can be started with: <code>supermodel -game-xml-file=$out/share/supermodel/Config/Games.xml /path/to/romset</code>. ''; mainProgram = "supermodel"; maintainers = with lib.maintainers; [ msanft ]; platforms = lib.platforms.linux; }; } </ins>
Change:
I became marked as a maintainer on the package many years ago, but since then I have changed careers and have slowly stopped using nixos as much. I don't currently have git installed (and I don't really remember how to use it) Please remove me from the maintainer list I am in the maintainer list as follows:

Discussion:
githubId = 687218; name = "averelld"; }; <del> avery = { email = "averyl+nixos@protonmail.com"; github = "AveryLychee"; githubId = 9147625; name = "Avery Lychee"; }; </del> avh4 = { email = "gruen0aermel@gmail.com"; github = "avh4";

''; homepage = "https://strlen.com/treesheets/"; <del> maintainers = with maintainers; [ obadz avery ]; </del> <ins> maintainers = with maintainers; [ obadz ]; </ins> platforms = platforms.unix; license = licenses.zlib; };
Change:
Package name: wine Latest released version: 9.6 <!-- Search your package here: --- Current version on the unstable channel: 9.5 Current version on the stable/release channel: 8.20 <!-- Type the name of your package and try to find an open pull request for the package If you find an open pull request, you can review it! There's a high chance that you'll have the new version right away while helping the community! --- Notify maintainers <!-- If the result shows no maintainers, tag the person that last updated the package. --Note for maintainers: Please tag this issue in your PR. Add a :+1: [reaction] to [issues you find important]. [reaction]: [issues you find important]:

Discussion:
unstable = fetchurl rec { # NOTE: Don't forget to change the hash for staging as well. <del> version = "9.5"; </del> <ins> version = "9.6"; </ins> url = "https://dl.winehq.org/wine/source/9.x/wine-${version}.tar.xz"; <del> hash = "sha256-Es8vtwmBNOI1HEnqO6j02ipnTx+HIr69TDpKbKbS6XU="; </del> <ins> hash = "sha256-Dglg7YK2AX6ILtozOLrRJwoRd7bPBfA6wfqxVavoIEg="; </ins> inherit (stable) patches; ## see http://wiki.winehq.org/Gecko

staging = fetchFromGitLab rec { # https://gitlab.winehq.org/wine/wine-staging inherit (unstable) version; <del> hash = "sha256-Jxhtd/rG5x8wENO1dVUby/DjRLKPpPTYviowPQu2qK4="; </del> <ins> hash = "sha256-6AKN/KpmsTw9qxErhTTzqWuglgFdOAhtaoBlVRcs71Q="; </ins> domain = "gitlab.winehq.org"; owner = "wine"; repo = "wine-staging";
Change:
Gnome is broken after running nixos-rebuild after updating nix flake on nixos-unstable. Fonts seem to be missing, the top panel is missing as well, only gnome shell related components and extensions seem to be broken, all applications work as expected. What can I do to debug this? Steps to reproduce the behavior: to update nixos-unstable source to latest. to rebuild. and log back in. The gnome shell works as expected before the update. ! <!-- Please @ people who are in the list of the offending package or module. If in doubt, check for whoever last touched something. --Please run and paste the result. Add a :+1: [reaction] to [issues you find important]. [reaction]: [issues you find important]:
It turns out the problem was cause by the package that provides the Yaru gnome shell theme, this is what seems to be 'broken', disabling this theme yields the expected Adwaita theme with everything working. My guess is that the following commit: is what broke stuff.
I think Yaru 24.04 might be incompatible with GNOME 45 which we still have on master branch. IMO we should revert this theme to 23.10 until GNOME 46 hits the master branch.

Discussion:
stdenv.mkDerivation rec { pname = "yaru"; <del> version = "24.04.0"; </del> <ins> version = "23.10.0"; </ins> src = fetchFromGitHub { owner = "ubuntu"; repo = "yaru"; rev = version; <del> hash = "sha256-KvpA86YL6toVklRPu4hP3j3w+Q0h/n6mZRZgk3HvMfc="; </del> <ins> hash = "sha256-+Szk77QeoM4PwusxKflTh83h16qz6Es6UwDXpbydJUE="; </ins> }; nativeBuildInputs = [ meson sassc pkg-config glib ninja python3 ];
Change:
Steps to reproduce the behavior: libretro-mame-unstable-2024-04-01 Comment called out incorrect hash in the PR after merged. <!-- Please @ people who are in the list of the offending package or module. If in doubt, check for whoever last touched something. --Please run and paste the result. Add a :+1: [reaction] to [issues you find important]. [reaction]: [issues you find important]:
Question is: where did the bot get this hash from? It doesn’t appear to be in either nixos or nix-community caches, either.
The bot tried to backdoor us. Only logical explanation. :P

Discussion:
"owner": "libretro", "repo": "mame", "rev": "ac9d0347f5d331eb49017cd599a5e63a668b4f22", <del> "hash": "sha256-P5Hunw1o0C29/YsOu7tmR/oY2sbL2qTmY6RoJ56bTzI=" </del> <ins> "hash": "sha256-YlnW5v8Slz/w/AHwWzJ7ZszFic/W0wth2nOZVOD7yxs=" </ins> }, "version": "unstable-2024-04-01" },
Change:
Project description Ncurses UI for QEMU Features: Install/delete/clone/rename VM Show VM status, CPU usage Start/stop/shutdown/reset VM Connect to VM via VNC or SPICE protocol Full VM snapshots (since QEMU-6.0.0) Show/Edit VM settings USB support Network via tap/macvtap interfaces VirtFS support (Plan 9 host files sharing) Import OVA (OVF 1.0/2.0) D-Bus support Remote control API Metadata homepage URL: source URL: license: BSD-2-Clause license platforms: linux, freebsd Add a :+1: [reaction] to [issues you find important]. [reaction]: [issues you find important]:

Discussion:
<ins> { busybox , cmake , coreutils , dbus , fetchFromGitHub , gettext , graphviz , json_c , lib , libarchive , libusb1 , libxml2 , makeWrapper , ncurses , ninja , openssl , picocom , pkg-config , qemu , socat , sqlite , stdenv , systemd , tigervnc }: stdenv.mkDerivation (finalAttrs: { pname = "nemu"; version = "3.3.1"; src = fetchFromGitHub { owner = "nemuTUI"; repo = "nemu"; rev = "v${finalAttrs.version}"; hash = "sha256-6WzqBkspKKs1e8kg1i71ntZHa78s5pJ1u02mXvzpiEc="; }; cmakeFlags = [ "-DNM_WITH_DBUS=ON" "-DNM_WITH_NETWORK_MAP=ON" "-DNM_WITH_REMOTE=ON" "-DNM_WITH_USB=ON" ]; nativeBuildInputs = [ cmake ninja pkg-config makeWrapper ]; buildInputs = [ busybox # for start-stop-daemon coreutils dbus gettext graphviz json_c libarchive libusb1 libxml2 ncurses openssl picocom qemu socat sqlite systemd # for libudev tigervnc ]; runtimeDependencies = [ busybox picocom qemu socat tigervnc ]; postPatch = '' substituteInPlace nemu.cfg.sample  --replace-fail /usr/bin/vncviewer ${tigervnc}/bin/vncviewer  --replace-fail "qemu_bin_path = /usr/bin" "qemu_bin_path = ${qemu}/bin" substituteInPlace sh/ntty  --replace-fail /usr/bin/socat ${socat}/bin/socat  --replace-fail /usr/bin/picocom ${picocom}/bin/picocom  --replace-fail start-stop-daemon ${busybox}/bin/start-stop-daemon substituteInPlace sh/setup_nemu_nonroot.sh  --replace-fail /usr/bin/nemu $out/bin/nemu ''; postInstall = '' wrapProgram $out/share/nemu/scripts/upgrade_db.sh  --prefix PATH : "${sqlite}/bin" ''; meta = { changelog = "https://github.com/nemuTUI/nemu/releases/tag/v${finalAttrs.version}"; description = "Ncurses UI for QEMU"; homepage = "https://github.com/nemuTUI/nemu"; license = lib.licenses.bsd2; mainProgram = "nemu"; maintainers = with lib.maintainers; [ msanft ]; platforms = lib.platforms.unix; }; }) </ins>
Change:
When using the provided tayga service, it's not really possible to setup explicit mappings. This seems like an oversight. N/A Some sort of should exist. N/A It is possible to workaround the issue by sticking them into but... uh yeah anyway. :sweat_smile: <!-- Please @ people who are in the list of the offending package or module. If in doubt, check for whoever last touched something. -- (?) Please run and paste the result. Add a :+1: [reaction] to [issues you find important]. [reaction]: [issues you find important]:

Discussion:
prefix ${strAddr cfg.ipv6.pool} dynamic-pool ${strAddr cfg.ipv4.pool} data-dir ${cfg.dataDir} <ins> ${concatStringsSep "n" (mapAttrsToList (ipv4: ipv6: "map " + ipv4 + " " + ipv6) cfg.mappings)} </ins> ''; addrOpts = v:

dataDir = mkOption { type = types.path; default = "/var/lib/tayga"; <del> description = "Directory for persistent data"; </del> <ins> description = "Directory for persistent data."; </ins> }; tunDevice = mkOption { type = types.str; default = "nat64"; <del> description = "Name of the nat64 tun device"; </del> <ins> description = "Name of the nat64 tun device."; }; mappings = mkOption { type = types.attrsOf types.str; default = {}; description = "Static IPv4 -> IPv6 host mappings."; example = literalExpression '' { "192.168.5.42" = "2001:db8:1:4444::1"; "192.168.5.43" = "2001:db8:1:4444::2"; "192.168.255.2" = "2001:db8:1:569::143"; } ''; </ins> }; }; }; config = mkIf cfg.enable { <ins> assertions = [ { assertion = allUnique (attrValues cfg.mappings); message = "Neither the IPv4 nor the IPv6 addresses must be entered twice in the mappings."; } ]; </ins> networking.interfaces."${cfg.tunDevice}" = { virtual = true; virtualType = "tun";

]; }; }; <ins> programs.mtr.enable = true; </ins> }; # The router is configured with static IPv4 addresses towards the server

prefixLength = 96; }; }; <ins> mappings = { "192.0.2.42" = "2001:db8::2"; }; </ins> }; };

]; }; }; <del> environment.systemPackages = [ pkgs.mtr ]; </del> <ins> programs.mtr.enable = true; </ins> }; };

with subtest("Wait for tayga"): router.wait_for_unit("tayga.service") <del> with subtest("Test ICMP"): </del> <ins> with subtest("Test ICMP server -> client"): server.wait_until_succeeds("ping -c 3 192.0.2.42 >&2") with subtest("Test ICMP and show a traceroute server -> client"): server.wait_until_succeeds("mtr --show-ips --report-wide 192.0.2.42 >&2") with subtest("Test ICMP client -> server"): </ins> client.wait_until_succeeds("ping -c 3 64:ff9b::100.64.0.2 >&2") <del> with subtest("Test ICMP and show a traceroute"): </del> <ins> with subtest("Test ICMP and show a traceroute client -> server"): </ins> client.wait_until_succeeds("mtr --show-ips --report-wide 64:ff9b::100.64.0.2 >&2") router.log(router.execute("systemd-analyze security tayga.service")[1])
Change:
An empty icon is displayed in the dock when I launch dosbox-x built with Nix.
Thanks, all good now

Discussion:
, fluidsynth , freetype , glib <ins> , libicns </ins> , libpcap , libpng , libslirp

, makeWrapper , ncurses , pkg-config <ins> , python3 </ins> , SDL2 , SDL2_net , testers

hash = "sha256-EcAp7KyqXdBACEbPgkM1INoKeGVo7hMDUx97y2RcX+k="; }; <ins> # sips is unavailable in sandbox, replacing with imagemagick breaks build due to wrong Foundation propagation(?) so don't generate resolution variants # iconutil is unavailable, replace with png2icns from libicns # Patch bad hardcoded compiler # Don't mess with codesign, doesn't seem to work? postPatch = '' substituteInPlace Makefile.am  --replace-fail 'sips' '## sips'  --replace-fail 'iconutil -c icns -o contrib/macos/dosbox.icns src/dosbox.iconset' 'png2icns contrib/macos/dosbox.icns contrib/macos/dosbox-x.png'  --replace-fail 'g++' "$CXX"  --replace-fail 'codesign' '## codesign' '' + lib.optionalString stdenv.hostPlatform.isDarwin '' patchShebangs appbundledeps.py ''; </ins> strictDeps = true; nativeBuildInputs = [ autoreconfHook makeWrapper pkg-config <ins> ] ++ lib.optionals stdenv.hostPlatform.isDarwin [ libicns python3 </ins> ]; buildInputs = [

hardeningDisable = [ "format" ]; # https://github.com/joncampbell123/dosbox-x/issues/4436 <ins> # Build optional App Bundle target, which needs at least one arch-suffixed binary postBuild = lib.optionalString stdenv.hostPlatform.isDarwin '' cp src/dosbox-x src/dosbox-x-$(uname -m) make dosbox-x.app ''; </ins> postInstall = lib.optionalString stdenv.hostPlatform.isLinux '' wrapProgram $out/bin/dosbox-x  --prefix PATH : ${lib.makeBinPath [ yad ]} <ins> '' # Install App Bundle, wrap regular binary into bundle's binary to get the icon working + lib.optionalString stdenv.hostPlatform.isDarwin '' mkdir $out/Applications mv dosbox-x.app $out/Applications/ mv $out/bin/dosbox-x $out/Applications/dosbox-x.app/Contents/MacOS/dosbox-x makeWrapper $out/Applications/dosbox-x.app/Contents/MacOS/dosbox-x $out/bin/dosbox-x </ins> ''; passthru.tests.version = testers.testVersion {