jiebi/CodeConvo huggingface dataset:
Change:
Steps to reproduce the behavior: homepage-dashboard Apparently this is a hash mismatch... <!-- 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. I'm running nixos-unstable-small in a flake... also, from this commit: Add a :+1: [reaction] to [issues you find important]. [reaction]: [issues you find important]:
That's weird. Seems like either someone has attacked r-ryantm or upstream has amended to the same release tag.
Hmm, I think the upstream have messed with the original tag. I'll get a PR together.
Thanks for the quick response guys! at least homepage isn't as critical as xz was, and is nice to see that nix can provide a way to catch this issues...

Discussion:
owner = "gethomepage"; repo = "homepage"; rev = "v${version}"; <del> hash = "sha256-EgZhk3NtuIjvFab0y9UdGYDR+Iw/0vg/uFxnzqKuloo="; </del> <ins> hash = "sha256-K1brnHA4e8lHIXwpajdY6f+3/pgP8My4QznoYLmZNWw="; </ins> }; npmDepsHash = "sha256-jYZUVwrOxoAbfHHSBkN5IlYhC6yZVVwRoZErkbYrjUs=";
Change:
Project description <!-- Describe the project a little: --Python logging handler for Loki Metadata homepage URL: source URL: license: mit platforms: linux, darwin Add a :+1: [reaction] to [issues you find important]. [reaction]: [issues you find important]:
please test
Thanks for waiting I've tested the module by checking the examples provided by the author. As far as those, the module works. Should I provide any type of evidence of some sorts?
no, thanks. Just wait for a committer to merge it then.

Discussion:
<ins> { lib, buildPythonPackage, fetchFromGitHub, setuptools, pytestCheckHook, rfc3339, requests, freezegun, }: buildPythonPackage rec { pname = "python-logging-loki"; version = "0.3.1"; pyproject = true; src = fetchFromGitHub { owner = "GreyZmeem"; repo = "python-logging-loki"; rev = "refs/tags/v${version}"; hash = "sha256-1qHuv+xzATo11au+QAhD1lHcLJtnVKZDdQDGohHUhiI="; }; build-system = [ setuptools ]; dependencies = [ rfc3339 requests ]; nativeCheckInputs = [ pytestCheckHook freezegun ]; # ValueError # Considering that the package has not been updated since 2019, it is likely that this test is broken disabledTests = [ "test_can_build_tags_from_converting_dict" ]; pythonImportsCheck = [ "logging_loki" ]; meta = { description = "Python logging handler for Loki"; homepage = "https://github.com/GreyZmeem/python-logging-loki"; changelog = "https://github.com/GreyZmeem/python-logging-loki/releases/tag/v${version}"; license = lib.licenses.mit; maintainers = with lib.maintainers; [ moraxyc ]; }; } </ins>

python-linux-procfs = callPackage ../development/python-modules/python-linux-procfs { }; <ins> python-logging-loki = callPackage ../development/python-modules/python-logging-loki { }; </ins> python-logstash = callPackage ../development/python-modules/python-logstash { }; python-louvain = callPackage ../development/python-modules/python-louvain { };
Change:
Steps to reproduce the behavior: virt-manager-qt on 24.05 (or, I assume, unstable) Full log: Bisecting the build yields from as the first bad commit. It updates from to . <!-- 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]:
Relevant upstream commit:

Discussion:
<del> { mkDerivation, lib, fetchFromGitHub, fetchpatch, cmake, pkg-config </del> <ins> { mkDerivation, lib, fetchFromGitHub, cmake, pkg-config </ins> , qtbase, qtmultimedia, qtsvg, qttools, krdc , libvncserver, libvirt, pcre, pixman, qtermwidget, spice-gtk, spice-protocol , libselinux, libsepol, util-linux

mkDerivation rec { pname = "virt-manager-qt"; <del> version = "0.72.97"; </del> <ins> version = "0.72.99"; </ins> src = fetchFromGitHub { owner  = "F1ash"; repo   = "qt-virt-manager"; rev    = version; <del> sha256 = "0b2bx7ah35glcsiv186sc9cqdrkhg1vs9jz036k9byk61np0cb1i"; </del> <ins> hash   = "sha256-1aXlGlK+YPOe2X51xycWvSu8YC9uCywyL6ItiScFA04="; </ins> }; cmakeFlags = [

"-DQTERMWIDGET_INCLUDE_DIRS=${qtermwidget}/include/qtermwidget5" ]; <del> patches = [ (fetchpatch { # drop with next update url = "https://github.com/F1ash/qt-virt-manager/commit/0d338b037ef58c376d468c1cd4521a34ea181edd.patch"; sha256 = "1wjqyc5wsnxfwwjzgqjr9hcqhd867amwhjd712qyvpvz8x7p2s24"; }) ]; </del> buildInputs = [ qtbase qtmultimedia qtsvg krdc libvirt libvncserver pcre pixman qtermwidget spice-gtk spice-protocol

libfm-qt = libfm-qt_1_4; inherit (pkgs.libsForQt5) qtbase qtsvg qttools libdbusmenu; }; <ins> qtermwidget_1_4 = callPackage ./qtermwidget { version = "1.4.0"; lxqt-build-tools = lxqt-build-tools_0_13; inherit (pkgs.libsForQt5) qtbase qttools; }; </ins> preRequisitePackages = [ kdePackages.kwindowsystem # provides some QT plugins needed by lxqt-panel

, lxqt-build-tools , wrapQtAppsHook , gitUpdater <ins> , version ? "2.0.0" </ins> }: stdenv.mkDerivation rec { pname = "qtermwidget"; <del> version = "2.0.0"; </del> <ins> inherit version; </ins> src = fetchFromGitHub { owner = "lxqt"; repo = pname; rev = version; <del> hash = "sha256-kZS6D/wSJFRt/+Afq0zCCmNnJPpFT+1hd4zVPc+rJsE="; </del> <ins> hash = { "1.4.0" = "sha256-wYUOqAiBjnupX1ITbFMw7sAk42V37yDz9SrjVhE4FgU="; "2.0.0" = "sha256-kZS6D/wSJFRt/+Afq0zCCmNnJPpFT+1hd4zVPc+rJsE="; }."${version}"; </ins> }; nativeBuildInputs = [

}; virt-manager-qt = libsForQt5.callPackage ../applications/virtualization/virt-manager/qt.nix { <del> qtermwidget = lxqt.qtermwidget; </del> <ins> qtermwidget = lxqt.qtermwidget_1_4; </ins> }; virtscreen = callPackage ../tools/admin/virtscreen { };
Change:
Project description Native Linux desktop client for accessing your Proton Pass vault. Metadata homepage URL: source URL: license: n/a platforms: Linux Add a :+1: [reaction] to [issues you find important]. [reaction]: [issues you find important]:
I see repos for iOS, Android and Web builds, but not for the Windows/macOS/Linux ones. Are you sure these are actually open-source? Building from the provided .deb is an option but is discouraged if building from source is viable
the source code for the Proton Pass linux client is here:
Actually the have a global lockfile for the entire monorepo
Unfortunately, building from source doesn't seem like a viable option right now — the Yarn infrastructure in Nixpkgs currently is very shoddy and frankly, nobody knows Yarn well enough to make it work reliably. Upstream uses both a monorepo structure and v2 lockfiles, neither of which are really natively supported in Nixpkgs right now (see ). Unpacking the upstream .deb file seems like the only way forward EDIT: Unpacking the .deb was just... so much easier. Making a PR now

Discussion:
<ins> { lib, stdenvNoCC, fetchurl, dpkg, makeWrapper, electron, }: stdenvNoCC.mkDerivation (finalAttrs: { pname = "proton-pass"; version = "1.17.5"; src = fetchurl { url = "https://proton.me/download/PassDesktop/linux/x64/ProtonPass_${finalAttrs.version}.deb"; hash = "sha256-2dnR/4LpLiQlJebv74/F7L/a5lYPh+AMPqQVIBHvxcg="; }; dontConfigure = true; dontBuild = true; nativeBuildInputs = [ dpkg makeWrapper ]; installPhase = '' runHook preInstall mkdir -p $out cp -r usr/share/ $out/ cp -r usr/lib/proton-pass/resources/app.asar $out/share/ runHook postInstall ''; preFixup = '' makeWrapper ${lib.getExe electron} $out/bin/proton-pass  --add-flags $out/share/app.asar  --add-flags "''${NIXOS_OZONE_WL:+''${WAYLAND_DISPLAY:+--ozone-platform-hint=auto --enable-features=WaylandWindowDecorations}}"  --set-default ELECTRON_FORCE_IS_PACKAGED 1  --set-default ELECTRON_IS_DEV 0  --inherit-argv0 ''; meta = { description = "Desktop application for Proton Pass"; homepage = "https://proton.me/pass"; license = lib.licenses.gpl3Plus; maintainers = with lib.maintainers; [ massimogengarelli sebtm ]; platforms = [ "x86_64-linux" ]; sourceProvenance = with lib.sourceTypes; [ binaryNativeCode ]; mainProgram = "proton-pass"; }; }) </ins>
Change:
Project description Journalist is an RSS aggregator that can sync subscriptions and read/unread items across multiple clients without requiring a special client-side integration. Clients can use Journalist by simply subscribing to its personalized RSS feed. Metadata homepage URL: source URL: license: gpl3 platforms: linux, darwin Add a :+1: [reaction] to [issues you find important]. [reaction]: [issues you find important]:
please test

Discussion:
<ins> { lib, buildGoModule, fetchpatch, fetchFromGitHub, }: buildGoModule rec { pname = "journalist"; version = "1.0.0-unstable-2024-06-15"; src = fetchFromGitHub { owner = "mrusme"; repo = "journalist"; rev = "93781b1278e271995769f576b74fee794a19de14"; hash = "sha256-RRo9AEaHJPzN9+oW5kIBUNCPVdFkY2USOIZeUts8P/M="; }; overrideModAttrs = _oldAttrs: { patches = [ # fix go.sum by adding missing module # see https://github.com/mrusme/journalist/pull/18 (fetchpatch { name = "fix-go-sum.patch"; url = "https://github.com/mrusme/journalist/commit/546585222993586057a12ab4e9b38000c537f6cf.patch"; hash = "sha256-+QZhP/Har5UVi1pvqB6wWY0+xKqP0B8QukCcNlGkqxQ="; }) ]; }; vendorHash = "sha256-fEHVc9kRbeeXICWhJshLp9JK/ICBR/RB5SVChJzSXpI="; ldflags = [ "-s" "-w" "-X github.com/mrusme/journalist/journalistd.VERSION=${version}" ]; meta = { description = "RSS aggregator"; homepage = "https://github.com/mrusme/journalist"; license = lib.licenses.gpl3Only; maintainers = with lib.maintainers; [ moraxyc ]; mainProgram = "journalist"; }; } </ins>
Change:
Project description Canard. A command line TUI client for the journalist RSS aggregator. Metadata homepage URL: source URL: license: gpl3 platforms: linux, darwin Add a :+1: [reaction] to [issues you find important]. [reaction]: [issues you find important]:
please test

Discussion:
<ins> { lib, buildGoModule, fetchFromGitHub, }: buildGoModule rec { pname = "canard"; version = "0.0.2-unstable-2024-04-22"; src = fetchFromGitHub { owner = "mrusme"; repo = "canard"; rev = "d3c37d11078574ca16b75475b3d08ffe351bc3c2"; hash = "sha256-ICrTEaTYFAViORWvdj4uW2gLgxtWxRlhgu5sifgqGX0="; }; vendorHash = "sha256-qcfPW7rz0v63QmQQceQltkCFNBUeQTxVerxDymv7SZo="; ldflags = [ "-s" "-w" "-X github.com/mrusme/canard/main.VERSION=${version}" ]; meta = { description = "Command line TUI client for the journalist RSS aggregator"; homepage = "https://github.com/mrusme/canard"; license = lib.licenses.gpl3Only; maintainers = with lib.maintainers; [ moraxyc ]; mainProgram = "canard"; }; } </ins>
Change:
screenfetch is a bash script designed to run as-is on most FHS compliant linux distro and on MacOS. The derivation does not evaluate on Mac because of dependency, but even when that dependency is removed the script is still wrapped and cannot access system binaries to gather MacOS info. Tested both on Sierra and High Sierra nix-env -iA nixpkgs.screenfetch
Thank you for being so quick! This is also helpful to me to learn how to package cross platform, thank you again

Discussion:
<del> { stdenv, fetchFromGitHub, makeWrapper, coreutils, gawk, procps, gnused </del> <ins> { stdenv, lib, fetchFromGitHub, makeWrapper, coreutils, gawk, procps, gnused </ins> , bc, findutils, xdpyinfo, xprop, gnugrep, ncurses <ins> , darwin </ins> }: stdenv.mkDerivation {

# Fix all of the depedencies of screenfetch patchShebangs $out/bin/screenfetch wrapProgram "$out/bin/screenfetch"  <del> --set PATH ${stdenv.lib.makeBinPath [ coreutils gawk procps gnused findutils xdpyinfo xprop gnugrep ncurses bc ]} </del> <ins> --set PATH ${lib.makeBinPath ([ coreutils gawk gnused findutils gnugrep ncurses bc ] ++ lib.optionals stdenv.isLinux [ procps xdpyinfo xprop ] ++ lib.optionals stdenv.isDarwin (with darwin; [ adv_cmds DarwinTools system_cmds "/usr" # some commands like defaults is not available to us ]))} </ins> ''; <del> meta = { </del> <ins> meta = with lib; { </ins> description = "Fetches system/theme information in terminal for Linux desktop screenshots"; longDescription = '' screenFetch is a "Bash Screenshot Information Tool". This handy Bash

screenshot upon displaying info, and even customizing the screenshot command! This script is very easy to add to and can easily be extended. ''; <del> license = stdenv.lib.licenses.gpl3; </del> <ins> license = licenses.gpl3; </ins> homepage = http://git.silverirc.com/cgit.cgi/screenfetch-dev.git/; <del> maintainers = with stdenv.lib.maintainers; [relrod]; platforms = stdenv.lib.platforms.all; </del> <ins> maintainers = with maintainers; [relrod]; platforms = platforms.all; </ins> }; }
Change:
Steps to reproduce the behavior: w/ channel check hydra: Add any other context about the problem here. <!-- Please @ people who are in the list of the offending package or module. If in doubt, check for whoever last touched something. -- ping :) Please run and paste the result.
Do you need this package? The original reason I it was to support building . Recently, that project has deprecated and instead uses their own tooling ( , "Replace the tool that convert the images (lvimgconv) by a custom re-implementation in Python"), so my use-case for this package has disappeared. I don't know what is causing this issue, I tried rebuilding the package with the most recent changes from its repo, but no success. I propose to mark this package as broken or remove it.
fascinating, you're right. I was using it to build infinitime too and have that working now by adding to my devShell's python environemnt. might just want to mark it as broken and move along then. cheers

Discussion:
<del> { lib , stdenv , buildNpmPackage , fetchFromGitHub , pkg-config , python3 , pixman , libpng , libjpeg , librsvg , giflib , cairo , pango , nodePackages , makeWrapper , CoreText , nix-update-script }: buildNpmPackage rec { pname = "lv_img_conv"; version = "0.4.0"; src = fetchFromGitHub { owner = "lvgl"; repo = pname; rev = "refs/tags/v${version}"; hash = "sha256-LB7NZKwrpvps1cKzRoARHL4S48gBHadvxwA6JMmm/ME="; }; npmDepsHash = "sha256-uDF22wlL3BlMQ/+Wmtgyjp4CVN6sDnjqjEPB4SeQuPk="; nativeBuildInputs = [ pkg-config python3 makeWrapper ]; buildInputs = [ pixman libpng libjpeg librsvg giflib cairo pango ] ++ lib.optionals stdenv.isDarwin [ CoreText ]; postInstall = '' makeWrapper ${nodePackages.ts-node}/bin/ts-node $out/bin/lv_img_conv --add-flags $out/lib/node_modules/lv_img_conv/lib/cli.ts ''; passthru.updateScript = nix-update-script { }; meta = with lib; { changelog = "https://github.com/lvgl/lv_img_conv/releases/tag/v${version}"; description = "Image converter for LVGL"; homepage = "https://github.com/lvgl/lv_img_conv"; license = licenses.mit; maintainers = with maintainers; [ stargate01 ]; }; } </del>

lobster-two = google-fonts; # Added 2021-07-22 luxcorerender = throw "'luxcorerender' has been removed as it's unmaintained and broken in nixpkgs since a while ago"; # Added 2023-06-07 <ins> lv_img_conv = throw "'lv_img_conv' has been removed from nixpkgs as it is broken"; # Added 2024-06-18 </ins> lxd = lib.warn "lxd has been renamed to lxd-lts" lxd-lts; # Added 2024-04-01 lxd-unwrapped = lib.warn "lxd-unwrapped has been renamed to lxd-unwrapped-lts" lxd-unwrapped-lts; # Added 2024-04-01 lzma = xz; # moved from top-level 2021-03-14

lv = callPackage ../tools/text/lv { }; <del> lv_img_conv = callPackage ../development/tools/lv_img_conv  { inherit (darwin.apple_sdk.frameworks) CoreText; }; </del> lwc = callPackage ../tools/misc/lwc { }; lxd-image-server = callPackage ../tools/virtualization/lxd-image-server { };
Change:
Project description A markdown-like text editor designed for writing novels and larger projects of many smaller plain text documents. Metadata homepage URL: source URL: license: gpl3 platforms: linux, win, darwin Add a :+1: [reaction] to [issues you find important]. [reaction]: [issues you find important]:

Discussion:
<ins> { lib, stdenv, python3, fetchFromGitHub, qt5, nix-update-script, }: let version = "2.4.3"; in python3.pkgs.buildPythonApplication { pname = "novelwriter"; inherit version; pyproject = true; src = fetchFromGitHub { owner = "vkbo"; repo = "novelWriter"; rev = "v${version}"; hash = "sha256-PuoI/2JnbOFuSDTY3uDrySqPl/MGYna+QvSI7WQ8QMk="; }; nativeBuildInputs = [ qt5.wrapQtAppsHook ]; build-system = with python3.pkgs; [ setuptools ]; dependencies = with python3.pkgs; [ pyqt5 pyenchant qt5.qtbase qt5.qtwayland ]; preBuild = '' export QT_QPA_PLATFORM_PLUGIN_PATH=${qt5.qtbase.bin}/lib/qt-${qt5.qtbase.version}/plugins/platforms ''; postInstall = lib.optionalString stdenv.isLinux '' mkdir -p $out/share/{icons,applications,pixmaps,mime/packages} cp -r setup/data/hicolor $out/share/icons cp setup/data/novelwriter.desktop $out/share/applications cp setup/data/novelwriter.png $out/share/pixmaps cp setup/data/x-novelwriter-project.xml $out/share/mime/packages ''; dontWrapQtApps = true; postFixup = '' wrapQtApp $out/bin/novelwriter ''; passthru.updateScript = nix-update-script { # Stable releases only extraArgs = [ "--version-regex" "^v([0-9.]+)$" ]; }; meta = { description = "Open source plain text editor designed for writing novels"; homepage = "https://novelwriter.io"; changelog = "https://github.com/vkbo/novelWriter/blob/main/CHANGELOG.md"; license = with lib.licenses; [ gpl3 ]; maintainers = with lib.maintainers; [ pluiedev ]; mainProgram = "novelwriter"; platforms = with lib.platforms; unix ++ windows; broken = stdenv.isDarwin; # TODO awaiting build instructions for Darwin }; } </ins>
Change:
can not use export to pdf function Steps to reproduce the behavior: a doc/docx file to pdf successfully export to pdf ! There might be a explain: <!-- 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]:
Reproducible on my side. Will try to investigate and push a pr if feasible
pretty sure we already handle the dependency: as mentioned in the thread, can you try running followed by (or applicable command) to confirm thi actual cause?
I have tried to run with , here is the log: Seems like there is nothing to do about , maybe something else is broken in otherwise.
Never mind. When I tried to create link to on somewhere and running with , PDF export working like a charm. Maybe the workaround is not working as expected.
Can you try this pr and see whether this pr fix the issue for you?
crash
Fixed in latest push Feel free to drop a message if further issues appear.
ok, it works fine for me

Discussion:
, curl , coreutils , cacert <ins> , libjpeg </ins> , useChineseVersion ? false }: let

alsa-lib at-spi2-core libtool <ins> libjpeg </ins> libxkbcommon nspr mesa

preFixup = '' # The following libraries need libtiff.so.5, but nixpkgs provides libtiff.so.6 patchelf --replace-needed libtiff.so.5 libtiff.so $out/opt/kingsoft/wps-office/office6/{libpdfmain.so,libqpdfpaint.so,qt/plugins/imageformats/libqtiff.so,addons/pdfbatchcompression/libpdfbatchcompressionapp.so} <ins> patchelf --add-needed libtiff.so $out/opt/kingsoft/wps-office/office6/libwpsmain.so # Fix: Wrong JPEG library version: library is 62, caller expects 80 patchelf --add-needed libjpeg.so $out/opt/kingsoft/wps-office/office6/libwpsmain.so </ins> # dlopen dependency patchelf --add-needed libudev.so.1 $out/opt/kingsoft/wps-office/office6/addons/cef/libcef.so '';
Change:
When trying to setup connection between Prowlarr and Sonarr test request fails with following error message and corresponding stacktrace in Sonarr log Steps to reproduce the behavior: to Prowlarr Settings -Apps to add Sonarr application (or select existing one) application setup dialog enter correct parameter and press Test button Test request completes successfully Add a :+1: [reaction] to [issues you find important]. [reaction]: [issues you find important]:

Discussion:
<del> { lib, stdenv, fetchurl, dotnet-runtime, icu, ffmpeg, openssl, sqlite, curl, makeWrapper, nixosTests }: </del> <ins> { lib, stdenv, fetchurl, dotnet-runtime, icu, ffmpeg, openssl, sqlite, curl, makeWrapper, nixosTests, zlib }: </ins> let os = if stdenv.isDarwin then "osx" else "linux";

makeWrapper "${dotnet-runtime}/bin/dotnet" $out/bin/NzbDrone  --add-flags "$out/share/sonarr-${version}/Sonarr.dll"  --prefix PATH : ${lib.makeBinPath [ ffmpeg ]}  <del> --prefix LD_LIBRARY_PATH : ${lib.makeLibraryPath [ curl sqlite openssl icu ]} </del> <ins> --prefix LD_LIBRARY_PATH : ${lib.makeLibraryPath [ curl sqlite openssl icu zlib ]} </ins> runHook postInstall '';
Change:
Colorgrind: a Perl wrapper for Valgrind with ANSI escape code colored output Metadata homepage URL: source URL: license: mit platforms: unix Add a :+1: [reaction] to [issues you find important]. [reaction]: [issues you find important]:
I have some reservations about packaging an 8-year-old, unmaintained Perl script, but I guess that's common enough in the Perl world that I've already seen something like this twice... Oh well, why not

Discussion:
<ins> { lib, stdenvNoCC, fetchFromGitHub, perl }: stdenvNoCC.mkDerivation { pname = "colorgrind"; version = "0-unstable-2016-07-05"; src = fetchFromGitHub { owner = "renatocf"; repo = "colorgrind"; rev = "6b68367c9713075a40c6719cb24217e9437ffa74"; hash = "sha256-KVR2IeoAkaTXDjEndPvrKUzOf4Zkha20vcH4TTJqXfM="; }; buildInputs = [ perl ]; installPhase = '' runHook preInstall install -Dm755 -t $out/bin colorgrind runHook postInstall ''; meta = { description = "Perl wrapper for Valgrind with ANSI escape code colored output"; homepage = "http://renatocf.github.io/colorgrind/"; license = with lib.licenses; [ mit ]; maintainers = with lib.maintainers; [ pluiedev ]; mainProgram = "colorgrind"; }; } </ins>
Change:
Project description xunit-viewer is an node package that formats JUnit/xunit test results into HTML reports. Metadata homepage URL: source URL: license: mit platforms: - no native dependencies

Discussion:
<ins> { lib, buildNpmPackage, fetchFromGitHub, nix-update-script, callPackage, testers, xunit-viewer, }: let version = "10.6.1"; in buildNpmPackage { pname = "xunit-viewer"; inherit version; src = fetchFromGitHub { owner = "lukejpreston"; repo = "xunit-viewer"; rev = "v${version}"; hash = "sha256-n9k1Z/wofExG6k/BxtkU8M+Lo3XdCgCh8VFj9jcwL1Q="; }; npmDepsHash = "sha256-6PV0+G1gzUWUjOfwRtVeALVFFiwkCAB33yB9W0PCGfc="; passthru.updateScript = nix-update-script { }; passthru.tests = { version = testers.testVersion { package = xunit-viewer; version = "unknown"; # broken, but at least it runs }; example = callPackage ./test/example.nix { }; }; meta = { description = "View your xunit results using JavaScript"; homepage = "https://lukejpreston.github.io/xunit-viewer"; license = with lib.licenses; [ mit ]; maintainers = with lib.maintainers; [ pluiedev ]; platforms = lib.platforms.all; }; } </ins>

<ins> <?xml version="1.0" encoding="UTF-8"?> <!-- taken from the nix test suite and then stripped down --> <testsuites tests="280" failures="0" disabled="2" errors="0" time="0.2" timestamp="2024-06-16T13:50:02.511" name="AllTests"> <testsuite name="parseShebangContent" tests="14" failures="0" disabled="0" skipped="0" errors="0" time="0.001" timestamp="2024-06-16T13:50:02.511"> <testcase name="basic" file="tests/unit/libutil/args.cc" line="10" status="run" result="completed" time="0." timestamp="2024-06-16T13:50:02.511" classname="parseShebangContent" /> <testcase name="empty" file="tests/unit/libutil/args.cc" line="18" status="run" result="completed" time="0." timestamp="2024-06-16T13:50:02.511" classname="parseShebangContent" /> </testsuite> </testsuites> </ins>

<ins> { xunit-viewer, runCommand, ... }: runCommand "test-xunit-viewer" { nativeBuildInputs = [ xunit-viewer ]; } '' mkdir $out xunit-viewer -r ${./example.junit.xml} -o $out/index.html ( set -x grep '<body' $out/index.html # Can't easily grep for parts of the original data, because it ends up # embedded as base64 encoded data (and slightly modified?). # We'd have to really dissect it or render it with a browser. # Fortunately, we've already caught the most severe packaging problems # with just this. ) '' </ins>