jiebi/CodeConvo huggingface dataset:
<ins> { stdenv , lib , fetchurl , asciidoc , docbook-xsl-nons , docbook_xml_dtd_45 , gettext , itstool , libxslt , gexiv2 , tracker , meson , mesonEmulatorHook , ninja , pkg-config , vala , wrapGAppsNoGuiHook , bzip2 , dbus , exempi , giflib , glib , gnome , gst_all_1 , icu , json-glib , libcue , libexif , libgsf , libgxps , libiptcdata , libjpeg , libosinfo , libpng , libseccomp , libtiff , libuuid , libxml2 , networkmanager , poppler , systemd , taglib , upower , totem-pl-parser , e2fsprogs }: stdenv.mkDerivation (finalAttrs: { pname = "tracker-miners"; version = "3.7.3"; src = fetchurl { url = "mirror://gnome/sources/tracker-miners/${lib.versions.majorMinor finalAttrs.version}/tracker-miners-${finalAttrs.version}.tar.xz"; hash = "sha256-50OIFUtcGXtLfuQvDc6MX7vd1NNhCT74jU+zA+M9pf4="; }; nativeBuildInputs = [ asciidoc docbook-xsl-nons docbook_xml_dtd_45 gettext glib itstool libxslt meson ninja pkg-config vala wrapGAppsNoGuiHook ] ++ lib.optionals (!stdenv.buildPlatform.canExecute stdenv.hostPlatform) [ mesonEmulatorHook ]; # TODO: add libenca, libosinfo buildInputs = [ bzip2 dbus exempi giflib gexiv2 totem-pl-parser tracker gst_all_1.gst-plugins-base gst_all_1.gst-plugins-good gst_all_1.gst-plugins-bad gst_all_1.gst-plugins-ugly gst_all_1.gstreamer gst_all_1.gst-libav icu json-glib libcue libexif libgsf libgxps libiptcdata libjpeg libosinfo libpng libtiff libuuid libxml2 poppler taglib ] ++ lib.optionals stdenv.isLinux [ libseccomp networkmanager systemd upower ] ++ lib.optionals stdenv.isDarwin [ e2fsprogs ]; mesonFlags = [ # TODO: tests do not like our sandbox "-Dfunctional_tests=false" # libgrss is unmaintained and has no new releases since 2015, and an open # security issue since then. Despite a patch now being availab, we're opting # to be safe due to the general state of the project "-Dminer_rss=false" ] ++ lib.optionals (!stdenv.isLinux) [ "-Dbattery_detection=none" "-Dnetwork_manager=disabled" "-Dsystemd_user_services=false" ]; postInstall = '' glib-compile-schemas "$out/share/glib-2.0/schemas" ''; passthru = { updateScript = gnome.updateScript { packageName = "tracker-miners"; }; }; meta = { homepage = "https://gitlab.gnome.org/GNOME/tracker-miners"; description = "Desktop-neutral user information store, search tool and indexer"; maintainers = lib.teams.gnome.members; license = lib.licenses.gpl2Plus; platforms = lib.platforms.unix; }; }) </ins>
<del> { stdenv , lib , fetchurl , asciidoc , docbook-xsl-nons , docbook_xml_dtd_45 , gettext , itstool , libxslt , gexiv2 , tracker , meson , mesonEmulatorHook , ninja , pkg-config , vala , wrapGAppsNoGuiHook , bzip2 , dbus , exempi , giflib , glib , gnome , gst_all_1 , icu , json-glib , libcue , libexif , libgsf , libgxps , libiptcdata , libjpeg , libosinfo , libpng , libseccomp , libtiff , libuuid , libxml2 , networkmanager , poppler , systemd , taglib , upower , totem-pl-parser , e2fsprogs }: stdenv.mkDerivation rec { pname = "tracker-miners"; version = "3.7.2"; src = fetchurl { url = "mirror://gnome/sources/${pname}/${lib.versions.majorMinor version}/${pname}-${version}.tar.xz"; hash = "sha256-608rKIoMvp5hSHHLAEgnRGHP4cuEZ6yBexAtOHPby6U="; }; nativeBuildInputs = [ asciidoc docbook-xsl-nons docbook_xml_dtd_45 gettext glib itstool libxslt meson ninja pkg-config vala wrapGAppsNoGuiHook ] ++ lib.optionals (!stdenv.buildPlatform.canExecute stdenv.hostPlatform) [ mesonEmulatorHook ]; # TODO: add libenca, libosinfo buildInputs = [ bzip2 dbus exempi giflib gexiv2 totem-pl-parser tracker gst_all_1.gst-plugins-base gst_all_1.gst-plugins-good gst_all_1.gst-plugins-bad gst_all_1.gst-plugins-ugly gst_all_1.gstreamer gst_all_1.gst-libav icu json-glib libcue libexif libgsf libgxps libiptcdata libjpeg libosinfo libpng libtiff libuuid libxml2 poppler taglib ] ++ lib.optionals stdenv.isLinux [ libseccomp networkmanager systemd upower ] ++ lib.optionals stdenv.isDarwin [ e2fsprogs ]; mesonFlags = [ # TODO: tests do not like our sandbox "-Dfunctional_tests=false" # libgrss is unmaintained and has no new releases since 2015, and an open # security issue since then. Despite a patch now being availab, we're opting # to be safe due to the general state of the project "-Dminer_rss=false" ] ++ lib.optionals (!stdenv.isLinux) [ "-Dbattery_detection=none" "-Dnetwork_manager=disabled" "-Dsystemd_user_services=false" ]; postInstall = '' glib-compile-schemas "$out/share/glib-2.0/schemas" ''; passthru = { updateScript = gnome.updateScript { packageName = pname; }; }; meta = with lib; { homepage = "https://gitlab.gnome.org/GNOME/tracker-miners"; description = "Desktop-neutral user information store, search tool and indexer"; maintainers = teams.gnome.members; license = licenses.gpl2Plus; platforms = platforms.unix; }; } </del>
<del> { lib , stdenvNoCC , fetchFromGitHub , rename </del> <ins> { lib, stdenvNoCC, fetchFromGitHub, rename, unstableGitUpdater, </ins> }: stdenvNoCC.mkDerivation { pname = "material-symbols"; <del> version = "unstable-2023-11-17"; </del> <ins> version = "4.0.0-unstable-2024-05-17"; </ins> src = fetchFromGitHub { owner = "google"; repo = "material-design-icons"; <del> rev = "a90037f80d7db37279a7c1d863559e247ed81b05"; hash = "sha256-96nEvc9eBuAncPUun3JBeg+KW2GqT3mQNgdOCVdhEM0="; </del> <ins> rev = "ace1af08508a6562ef05055a606cf44ea583ce3b"; hash = "sha256-d5lojgYCXCcvcSfLWfcSKFsBGKB6Si/XreRqpkEKsa0="; </ins> sparseCheckout = [ "variablefont" ]; };
runHook postInstall ''; <del> meta = with lib; { </del> <ins> passthru.updateScript = unstableGitUpdater { }; meta = { </ins> description = "Material Symbols icons by Google"; homepage = "https://fonts.google.com/icons"; downloadPage = "https://github.com/google/material-design-icons"; license = lib.licenses.asl20; <del> maintainers = with maintainers; [ fufexan ]; platforms = platforms.all; </del> <ins> maintainers = with lib.maintainers; [ fufexan luftmensch-luftmensch ]; platforms = lib.platforms.all; </ins> }; }
src = fetchFromGitHub { owner = "geoffreybennett"; <del> repo = pname; </del> <ins> repo = "alsa-scarlett-gui"; </ins> rev = version; <del> sha256 = "sha256-+74JRQn2xwgPHZSrp5b+uny0+aLnsFvx/cOKIdj4J40="; </del> <ins> hash = "sha256-+74JRQn2xwgPHZSrp5b+uny0+aLnsFvx/cOKIdj4J40="; </ins> }; NIX_CFLAGS_COMPILE = [ "-Wno-error=deprecated-declarations" ]; makeFlags = [ "DESTDIR=${out}" "PREFIX=''" ]; sourceRoot = "${src.name}/src"; <ins> postPatch = '' substituteInPlace file.c  --replace-fail "/usr/sbin/alsactl" "${alsa-utils}/bin/alsactl" ''; </ins> nativeBuildInputs = [ pkg-config wrapGAppsHook4 makeWrapper ]; buildInputs = [ gtk4 alsa-lib openssl ]; postInstall = '' wrapProgram $out/bin/alsa-scarlett-gui --prefix PATH : ${lib.makeBinPath [ alsa-utils ]} substituteInPlace $out/share/applications/vu.b4.alsa-scarlett-gui.desktop  <del> --replace "Exec=/bin/alsa-scarlett-gui" "Exec=$out/bin/alsa-scarlett-gui" </del> <ins> --replace-fail "Exec=/bin/alsa-scarlett-gui" "Exec=$out/bin/alsa-scarlett-gui" </ins> ''; # causes redefinition of _FORTIFY_SOURCE
free = false; }; <ins> cc-by-nd-40 = { spdxId = "CC-BY-ND-4.0"; fullName = "Creative Commons Attribution-No Derivative Works v4.0"; free = false; }; </ins> cc-by-sa-10 = { spdxId = "CC-BY-SA-1.0"; fullName = "Creative Commons Attribution Share Alike 1.0";
propagatedUserEnvPkgs = [ gnome3.gnome_themes_standard ]; <del> nativeBuildInputs = [ pkgconfig ]; buildInputs = [ gtk3 glib intltool itstool libxml2 python gnome3.gsettings_desktop_schemas makeWrapper docbook_xsl gdk_pixbuf gnome3.defaultIconTheme librsvg libxslt ]; </del> <ins> nativeBuildInputs = [ pkgconfig intltool itstool makeWrapper docbook_xsl libxslt # reconfiguration autoreconfHook gnome3.gnome_common gnome3.yelp_tools ]; buildInputs = [ gtk3 glib libxml2 python gnome3.gsettings_desktop_schemas gdk_pixbuf gnome3.defaultIconTheme librsvg ]; </ins> enableParallelBuilding = true; <ins> patches = [ # https://bugzilla.gnome.org/show_bug.cgi?id=782161 (fetchurl { url = https://bugzilla.gnome.org/attachment.cgi?id=351054; sha256 = "093wjjj40027pkqqnm14jb2dp2i2m8p1bayqx1lw18pq66c8fahn"; }) ]; </ins> preFixup = '' wrapProgram "$out/bin/glade"  --set GDK_PIXBUF_MODULE_FILE "$GDK_PIXBUF_MODULE_FILE"
<ins> { lib, buildGoModule, fetchFromGitHub, }: buildGoModule rec { pname = "zoraxy"; version = "3.0.5"; src = fetchFromGitHub { owner = "tobychui"; repo = "zoraxy"; rev = "refs/tags/${version}"; sha256 = "sha256-bTd6IwzVYxs1xvoy7AdB7WTGfgtHJI+qM3335OWkOEo="; }; sourceRoot = "${src.name}/src"; vendorHash = "sha256-YI6LSccPDnVhGyPIEFIF41ex0WJlHtb3nP+8+1G/LA0="; checkFlags = let # Skip tests that require network access skippedTests = [ "TestExtractIssuerNameFromPEM" "TestReplaceLocationHost" "TestReplaceLocationHostRelative" "TestHandleTraceRoute" "TestHandlePing" ]; in [ "-skip=^${builtins.concatStringsSep "$|^" skippedTests}$" ]; meta = { description = "A general purpose HTTP reverse proxy and forwarding tool written in Go"; homepage = "https://zoraxy.arozos.com/"; changelog = "https://github.com/tobychui/zoraxy/blob/v${version}/CHANGELOG.md"; license = lib.licenses.agpl3Only; maintainers = [ lib.maintainers.luftmensch-luftmensch ]; mainProgram = "zoraxy"; }; } </ins>
## Backward Incompatibilities {#sec-release-24.11-incompatibilities} <del> - Create the first release note entry in this section! </del> <ins> - `nvimpager` was updated to version 0.13.0, which changes the order of user and nvimpager settings: user commands in `-c` and `--cmd` now override the respective default settings because they are executed later. </ins> ## Other Notable Changes {#sec-release-24.11-notable-changes}
stdenv.mkDerivation rec { pname = "nvimpager"; <del> version = "0.12.0"; </del> <ins> version = "0.13.0"; </ins> src = fetchFromGitHub { owner = "lucc"; repo = pname; rev = "v${version}"; <del> sha256 = "sha256-RmpPWS9gnBnR+Atw6uzBmeDSgoTOFSdKzHoJ84O+gyA="; </del> <ins> sha256 = "sha256-Au9rRZMZfU4qHi/ng6JO8FnMpySKDbKzr75SBPY3QiA="; </ins> }; buildInputs = [
buildFlags = [ "nvimpager.configured" "nvimpager.1" ]; preBuild = '' patchShebangs nvimpager <del> substituteInPlace nvimpager --replace ':-nvim' ':-${neovim}/bin/nvim' </del> <ins> substituteInPlace nvimpager --replace-fail ':-nvim' ':-${lib.getExe neovim}' </ins> ''; doCheck = true; nativeCheckInputs = [ lua51Packages.busted util-linux neovim ]; <del> # filter out one test that fails in the sandbox of nix checkPhase = let exclude-tags = if stdenv.isDarwin then "nix,mac" else "nix"; in '' runHook preCheck make test BUSTED='busted --output TAP --exclude-tags=${exclude-tags}' runHook postCheck </del> <ins> # filter out one test that fails in the sandbox of nix or with neovim v0.10 # or on macOS preCheck = '' checkFlagsArray+=('BUSTED=busted --output TAP --exclude-tags=${"nix,v10" + lib.optionalString stdenv.isDarwin ",mac"}') </ins> ''; meta = with lib; {
x86_64-darwin-version = "4.38.121"; x86_64-darwin-sha256 = "1w0s6j8z8961sv4y00jxpy5gjlj0dswyxs15c7isb26ii11nn1i2"; <del> x86_64-linux-version = "4.38.121"; x86_64-linux-sha256 = "0qp7wxmdg2lpvbx7gshgbqxf7jjvgnwx20cfjwgw6wwzanb0gi96"; </del> <ins> x86_64-linux-version = "4.38.125"; x86_64-linux-sha256 = "sha256-BJeFXZ8STbMCmGvYRoFsfsyIpGukQkuwv0m2NzE+89c="; </ins> aarch64-darwin-version = "4.38.121"; aarch64-darwin-sha256 = "161z947p7a2d7584hybl77chab8y027cqpph2hd2s4b5k6bchkj5";
# for finding the extra packages we need to add python ${./python}/find_package_implications.py "${closureYaml}" '${lib.generators.toJSON {} packageImplications}' extra_package_names.txt <del> # git config --global --add safe.directory '/nix' </del> <ins> # Work around new git security features added in git 2.44.1 # See https://github.com/NixOS/nixpkgs/issues/315890 git config --global --add safe.directory '*' </ins> export JULIA_PKG_USE_CLI_GIT="true" # At time of writing, this appears to be the only way to turn precompiling's
{ description = "Set up the state directory for FreshRSS before use"; wantedBy = [ "multi-user.target" ]; <del> serviceConfig = defaultServiceConfig //{ Type = "oneshot"; User = "freshrss"; Group = "freshrss"; StateDirectory = "freshrss"; WorkingDirectory = cfg.package; </del> <ins> serviceConfig = defaultServiceConfig // { RemainAfterExit = true; </ins> }; <ins> restartIfChanged = true; </ins> environment = { DATA_PATH = cfg.dataDir; };
, pantheon }: <del> stdenv.mkDerivation rec { </del> <ins> stdenv.mkDerivation (finalAttrs: { </ins> pname = "epiphany"; <del> version = "46.0"; </del> <ins> version = "46.1"; </ins> src = fetchurl { <del> url = "mirror://gnome/sources/${pname}/${lib.versions.major version}/${pname}-${version}.tar.xz"; hash = "sha256-9DSPLPUcB8DBBtEwFy1NI/LNQGh3Hh3gB7dYyireVmA="; </del> <ins> url = "mirror://gnome/sources/epiphany/${lib.versions.major finalAttrs.version}/epiphany-${finalAttrs.version}.tar.xz"; hash = "sha256-Jg+BRp7WR0bCsRQ/Lzi+3NloR3hlZ7CX2fcv072dsUI="; </ins> }; nativeBuildInputs = [
stdenv.mkDerivation (finalAttrs: { pname = "gdm"; <del> version = "46.0"; </del> <ins> version = "46.2"; </ins> outputs = [ "out" "dev" ]; src = fetchurl { url = "mirror://gnome/sources/gdm/${lib.versions.major finalAttrs.version}/${finalAttrs.pname}-${finalAttrs.version}.tar.xz"; <del> hash = "sha256-jWy1IXbspItrvxz+L9rgjZZ3taDyvKYA3uRgTeDdHvw="; </del> <ins> hash = "sha256-TuNFQioWU3FQzYQkUM2lKyyoaYS8Ue4gzcAl3PS9Jos="; </ins> }; mesonFlags = [
stdenv.mkDerivation (finalAttrs: { pname = "gnome-control-center"; <del> version = "46.1"; </del> <ins> version = "46.2"; </ins> src = fetchurl { url = "mirror://gnome/sources/gnome-control-center/${lib.versions.major finalAttrs.version}/gnome-control-center-${finalAttrs.version}.tar.xz"; <del> hash = "sha256-gXkkIwGd7aHSoHTB7Pan5u8xcsCcvm9NeZWktd6igxI="; </del> <ins> hash = "sha256-YzXGy4Fk5XTbUh//Yc+j36pV8dtmrjvKAnUKGT4cTz0="; </ins> }; patches = [
stdenv.mkDerivation (finalAttrs: { pname = "gtksourceview"; <del> version = "5.12.0"; </del> <ins> version = "5.12.1"; </ins> outputs = [ "out" "dev" "devdoc" ]; <del> src = let inherit (finalAttrs) pname version; in fetchurl { url = "mirror://gnome/sources/${pname}/${lib.versions.majorMinor version}/${pname}-${version}.tar.xz"; hash = "sha256-2vMv9dMVDWOFkX01A6hbngR7oViysDB5MUycAIE/oB8="; </del> <ins> src = fetchurl { url = "mirror://gnome/sources/gtksourceview/${lib.versions.majorMinor finalAttrs.version}/gtksourceview-${finalAttrs.version}.tar.xz"; hash = "sha256-hMgqrZhcWq2ufOp4BJBKdjQeyCsmjUZZTBpHjzm0LB8="; </ins> }; patches = [
, gnome }: <del> stdenv.mkDerivation rec { </del> <ins> stdenv.mkDerivation (finalAttrs: { </ins> pname = "libdex"; <del> version = "0.6.0"; </del> <ins> version = "0.6.1"; </ins> outputs = [ "out" "dev" "devdoc" ]; src = fetchurl { <del> url = "mirror://gnome/sources/${pname}/${lib.versions.majorMinor version}/${pname}-${version}.tar.xz"; hash = "sha256-HojSsAYo5Ya3I7f7pRXM6XUvrxISLN5aPA1biDmYUio="; </del> <ins> url = "mirror://gnome/sources/libdex/${lib.versions.majorMinor finalAttrs.version}/libdex-${finalAttrs.version}.tar.xz"; hash = "sha256-0XbeZXhXHjKowLYDtqWhP6X4f7a1RCV1s47FrxaxepI="; </ins> }; nativeBuildInputs = [
description = "Library supporting deferred execution for GNOME and GTK"; homepage = "https://gitlab.gnome.org/GNOME/libdex"; maintainers = teams.gnome.members; <del> platforms = platforms.linux; </del> <ins> platforms = platforms.linux ++ platforms.darwin; </ins> license = licenses.lgpl21Plus; }; <del> } </del> <ins> }) </ins>
sourceVersion = { major = "3"; minor = "12"; <del> patch = "3"; </del> <ins> patch = "4"; </ins> suffix = ""; }; <del> hash = "sha256-Vr/vH9/BIhzmcg5DpmHj60F4XdkUzplpjYx4lq9L2qE="; </del> <ins> hash = "sha256-9tQZpth0OrJnAIAbSQjSbZfouYbhT5XeMbMt4rDnlVQ="; </ins> inherit (darwin) configd; inherit passthruFun; };
<del> { lib , stdenv , fetchFromGitLab , writeText , bluez , cjson , cmake , dbus , doxygen , eigen , elfutils , ffmpeg , glslang , gst-plugins-base , gstreamer , hidapi , libbsd , libdrm , libffi , libGL , libjpeg , librealsense , libsurvive , libunwind , libusb1 , libuv , libuvc , libv4l , libXau , libxcb , libXdmcp , libXext , libXrandr , onnxruntime , opencv4 , openhmd , openvr , orc , pcre2 , pkg-config , python3 , SDL2 , shaderc , tracy , udev , vulkan-headers , vulkan-loader , wayland , wayland-protocols , wayland-scanner , zlib , zstd , nixosTests # Set as 'false' to build monado without service support, i.e. allow VR # applications linking against libopenxr_monado.so to use OpenXR standalone # instead of via the monado-service program. For more information see: # https://gitlab.freedesktop.org/monado/monado/-/blob/master/doc/targets.md#xrt_feature_service-disabled , serviceSupport ? true }: stdenv.mkDerivation { pname = "monado"; version = "unstable-2024-01-02"; src = fetchFromGitLab { domain = "gitlab.freedesktop.org"; owner = "monado"; repo = "monado"; rev = "bfa1c16ff9fc759327ca251a5d086b958b1a3b8a"; hash = "sha256-wXRwOs9MkDre/VeW686DzmvKjX0qCSS13MILbYQD6OY="; }; nativeBuildInputs = [ cmake doxygen glslang pkg-config python3 ]; cmakeFlags = [ (lib.cmakeBool "XRT_FEATURE_SERVICE" serviceSupport) (lib.cmakeBool "XRT_OPENXR_INSTALL_ABSOLUTE_RUNTIME_PATH" true) (lib.cmakeBool "XRT_HAVE_TRACY" true) (lib.cmakeBool "XRT_FEATURE_TRACING" true) (lib.cmakeBool "XRT_HAVE_STEAM" true) ]; buildInputs = [ bluez cjson dbus eigen elfutils ffmpeg gst-plugins-base gstreamer hidapi libbsd libdrm libffi libGL libjpeg librealsense libsurvive libunwind libusb1 libuv libuvc libv4l libXau libxcb libXdmcp libXext libXrandr onnxruntime opencv4 openhmd openvr orc pcre2 SDL2 shaderc tracy udev vulkan-headers vulkan-loader wayland wayland-protocols wayland-scanner zlib zstd ]; # known disabled drivers/features: #  - DRIVER_DEPTHAI - Needs depthai-core https://github.com/luxonis/depthai-core (See https://github.com/NixOS/nixpkgs/issues/292618) #  - DRIVER_ILLIXR - needs ILLIXR headers https://github.com/ILLIXR/ILLIXR (See https://github.com/NixOS/nixpkgs/issues/292661) #  - DRIVER_ULV2 - Needs proprietary Leapmotion SDK https://api.leapmotion.com/documentation/v2/unity/devguide/Leap_SDK_Overview.html (See https://github.com/NixOS/nixpkgs/issues/292624) #  - DRIVER_ULV5 - Needs proprietary Leapmotion SDK https://api.leapmotion.com/documentation/v2/unity/devguide/Leap_SDK_Overview.html (See https://github.com/NixOS/nixpkgs/issues/292624) # Help openxr-loader find this runtime setupHook = writeText "setup-hook" '' export XDG_CONFIG_DIRS=@out@/etc/xdg''${XDG_CONFIG_DIRS:+:''${XDG_CONFIG_DIRS}} ''; passthru.tests = { basic-service = nixosTests.monado; }; meta = with lib; { description = "Open source XR runtime"; homepage = "https://monado.freedesktop.org/"; license = licenses.boost; maintainers = with maintainers; [ Scrumplex expipiplus1 prusnak ]; platforms = platforms.linux; mainProgram = "monado-cli"; }; } </del>
<ins> { lib , stdenv , fetchFromGitLab , writeText , bluez , cjson , cmake , dbus , doxygen , eigen , elfutils , glslang , gst-plugins-base , gstreamer , hidapi , libbsd , libdrm , libffi , libGL , libjpeg , librealsense , libsurvive , libunwind , libusb1 , libuv , libuvc , libv4l , libXau , libxcb , libXdmcp , libXext , libXrandr , nix-update-script , onnxruntime , opencv4 , openhmd , openvr , orc , pcre2 , pkg-config , python3 , SDL2 , shaderc , tracy , udev , vulkan-headers , vulkan-loader , wayland , wayland-protocols , wayland-scanner , zlib , zstd , nixosTests # Set as 'false' to build monado without service support, i.e. allow VR # applications linking against libopenxr_monado.so to use OpenXR standalone # instead of via the monado-service program. For more information see: # https://gitlab.freedesktop.org/monado/monado/-/blob/master/doc/targets.md#xrt_feature_service-disabled , serviceSupport ? true }: stdenv.mkDerivation (finalAttrs: { pname = "monado"; version = "24.0.0"; src = fetchFromGitLab { domain = "gitlab.freedesktop.org"; owner = "monado"; repo = "monado"; rev = "refs/tags/v${finalAttrs.version}"; hash = "sha256-lFy0VvaLD4Oyu2TZJnaIWjuaJUZjGGDJS0VsRfIUpcc="; }; nativeBuildInputs = [ cmake doxygen glslang pkg-config python3 ]; cmakeFlags = [ (lib.cmakeBool "XRT_FEATURE_SERVICE" serviceSupport) (lib.cmakeBool "XRT_OPENXR_INSTALL_ABSOLUTE_RUNTIME_PATH" true) (lib.cmakeBool "XRT_HAVE_TRACY" true) (lib.cmakeBool "XRT_FEATURE_TRACING" true) (lib.cmakeBool "XRT_HAVE_STEAM" true) ]; buildInputs = [ bluez cjson dbus eigen elfutils gst-plugins-base gstreamer hidapi libbsd libdrm libffi libGL libjpeg librealsense libsurvive libunwind libusb1 libuv libuvc libv4l libXau libxcb libXdmcp libXext libXrandr onnxruntime opencv4 openhmd openvr orc pcre2 SDL2 shaderc tracy udev vulkan-headers vulkan-loader wayland wayland-protocols wayland-scanner zlib zstd ]; # known disabled drivers/features: #  - DRIVER_DEPTHAI - Needs depthai-core https://github.com/luxonis/depthai-core (See https://github.com/NixOS/nixpkgs/issues/292618) #  - DRIVER_ILLIXR - needs ILLIXR headers https://github.com/ILLIXR/ILLIXR (See https://github.com/NixOS/nixpkgs/issues/292661) #  - DRIVER_ULV2 - Needs proprietary Leapmotion SDK https://api.leapmotion.com/documentation/v2/unity/devguide/Leap_SDK_Overview.html (See https://github.com/NixOS/nixpkgs/issues/292624) #  - DRIVER_ULV5 - Needs proprietary Leapmotion SDK https://api.leapmotion.com/documentation/v2/unity/devguide/Leap_SDK_Overview.html (See https://github.com/NixOS/nixpkgs/issues/292624) # Help openxr-loader find this runtime setupHook = writeText "setup-hook" '' export XDG_CONFIG_DIRS=@out@/etc/xdg''${XDG_CONFIG_DIRS:+:''${XDG_CONFIG_DIRS}} ''; passthru = { updateScript = nix-update-script { }; tests.basic-service = nixosTests.monado; }; meta = with lib; { description = "Open source XR runtime"; homepage = "https://monado.freedesktop.org/"; license = licenses.boost; maintainers = with maintainers; [ Scrumplex expipiplus1 prusnak ]; platforms = platforms.linux; mainProgram = "monado-cli"; }; }) </ins>
"/etc/os-release".source = config.boot.initrd.osRelease; "/etc/initrd-release".source = config.boot.initrd.osRelease; <ins> # For systemd-journald's _HOSTNAME field; needs to be set early, cannot be backfilled. "/etc/hostname".text = config.networking.hostName; </ins> } // optionalAttrs (config.environment.etc ? "modprobe.d/nixos.conf") { "/etc/modprobe.d/nixos.conf".source = config.environment.etc."modprobe.d/nixos.conf".source; };
inherit hostPath containerPath; options = mountOptions; }; <del> jqAddMountExpression = ".containerEdits.mounts[.containerEdits.mounts | length] |= . +"; allJqMounts = lib.concatMap (mount: ["${lib.getExe jq} '${jqAddMountExpression} ${builtins.toJSON (mkMount mount)}'"]) mounts; </del> <ins> mountToCommand = mount: "additionalMount "${mount.hostPath}" "${mount.containerPath}" '${builtins.toJSON mount.mountOptions}'"; mountsToCommands = mounts: if (builtins.length mounts) == 0 then "cat" else (lib.strings.concatMapStringsSep " | n" mountToCommand mounts); </ins> in writeScriptBin "nvidia-cdi-generator" ''
--nvidia-ctk-path ${lib.getExe' nvidia-container-toolkit "nvidia-ctk"} } <del> cdiGenerate |  ${lib.concatStringsSep " | " allJqMounts} > $RUNTIME_DIRECTORY/nvidia-container-toolkit.json </del> <ins> function additionalMount { local hostPath="$1" local containerPath="$2" local mountOptions="$3" if [ -e "$hostPath" ]; then ${lib.getExe jq} ".containerEdits.mounts[.containerEdits.mounts | length] = { "hostPath": "$hostPath", "containerPath": "$containerPath", "options": $mountOptions }" else echo "Mount $hostPath ignored: could not find path in the host machine" >&2 cat fi } cdiGenerate | ${mountsToCommands mounts} > $RUNTIME_DIRECTORY/nvidia-container-toolkit.json </ins> ''
ntfy-sh = handleTest ./ntfy-sh.nix {}; ntfy-sh-migration = handleTest ./ntfy-sh-migration.nix {}; ntpd-rs = handleTest ./ntpd-rs.nix {}; <ins> nvidia-container-toolkit = runTest ./nvidia-container-toolkit.nix; </ins> nvmetcfg = handleTest ./nvmetcfg.nix {}; nzbget = handleTest ./nzbget.nix {}; nzbhydra2 = handleTest ./nzbhydra2.nix {};