jiebi/CodeConvo huggingface dataset:
Change:
When using ffsend from nixpkgs, after uploading a file, the program segfaults. Using Nix on macOS with an M1 chip, but also tested it in a NixOS VM (arm64). Don't know if it works on x86. Steps to reproduce the behavior: The link to the file should be shown. Using the version from homebrew on macOS works. It even works when compiling it from source using cargo through nixpkgs (on macOS): only changed the version last time and last edit was four years ago Please run and paste the result. macOS: NixOS:
What version of rustc are you using to compile ffsend outside of nix?
I'm not familiar with Rust, I just ran in the ffsend git directory and it "just worked" so whichever version is currently in nixpkgs (at least on macOS). I haven't installed Rust on my machine.
Thanks, I have performed a bisection on nixpkgs and the regression was introduced in , so I just wanted to check that it could work with the latest rustc

Discussion:
<del> { lib, stdenv, fetchFromGitLab, rustPlatform, pkg-config, openssl </del> <ins> { lib, stdenv, fetchFromGitLab, fetchpatch, rustPlatform, pkg-config, openssl </ins> , installShellFiles , Security, AppKit

sha256 = "sha256-L1j1lXPxy9nWMeED9uzQHV5y7XTE6+DB57rDnXa4kMo="; }; <del> cargoSha256 = "sha256-zNLU9QnBGna5qb+iu2imOUvCIw3ZWRFsQlpFo5ECtKo="; </del> <ins> cargoHash = "sha256-r1yIPV2sW/EpHJpdaJyi6pzE+rtNkBIxSUJF+XA8kbA="; cargoPatches = [ # Update dependencies (needed for the below patch to merge cleanly) (fetchpatch { name = "Update-dependencies-1"; url = "https://github.com/timvisee/ffsend/commit/afb004680b9ed672c7e87ff23f16bb2c51fea06e.patch"; hash = "sha256-eDcbyi05aOq+muVWdLmlLzLXUKcrv/9Y0R+0aHgL4+s="; }) # Disable unused features in prettytable-rs crate (needed for the below patch to merge cleanly) (fetchpatch { name = "Disable-unused-features"; url = "https://github.com/timvisee/ffsend/commit/9b8dee12ea839f911ed207ff9602d929cab5d34b.patch"; hash = "sha256-6LK1Fqov+zEbPZ4+B6JCLXtXmgSad9vr9YO2oYodBSM="; }) # Update dependencies (needed for the below patch to merge cleanly) (fetchpatch { name = "Update-dependencies-2"; url = "https://github.com/timvisee/ffsend/commit/fd5b38f9ab9cbc5f962d1024f4809eb36ba8986c.patch"; hash = "sha256-BDZKrVtQHpOewmB2Lb6kUfy02swcNK+CYZ3lj3kwFV4="; }) # Fix seg fault (fetchpatch { name = "Fix-segfault"; url = "https://github.com/timvisee/ffsend/commit/3c1c2dc28ca1d88c45f87496a7a96052f5c37858.patch"; hash = "sha256-2hWlFXDopNy26Df74nJoB1J8qzPEOpf61wEOEtxOVx8="; }) ]; </ins> nativeBuildInputs = [ installShellFiles ] ++ lib.optionals stdenv.isLinux [ pkg-config ];
Change:
The package bookletimposer doesn't work, something with GTK not being in the namespace. Steps to reproduce the behavior: nix-shell -p bookletimposer It should open the GUI. <!-- 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.

Discussion:
./configdir.patch ]; <del> nativeBuildInputs = [ intltool pandoc wrapGAppsHook ]; buildInputs = [ gobject-introspection ]; </del> <ins> nativeBuildInputs = [ intltool pandoc wrapGAppsHook gobject-introspection ]; </ins> propagatedBuildInputs = [ gtk3
Change:
When using systemd-networkd to manage network devices together with stage1 systemd, the networkd daemon doesn't survive switching to stage2 if . Specifically, should be enabled and some other networking devices should be configured. I've included a patch for the test below that formalizes this. Apply this patch to the nixpkgs tests and run : systemd-network lives even if is false. CC
So the daemon isn't actually supposed to survive across switch-root. It just leaves the interfaces intact when it's stopped. Then when it starts up again in stage 2 it picks back up managing things. And your test is missing a few things. doesn't actually enable systemd stage 1. needs to inherit the netdev from . needs to include in . think needs to add , since that's not enabled by default. With those changes, the test passes as expected for me.
(Update from discussion over on matrix) systemd-networkd.service is not correctly stopped before switch-root It's currently unclear why this happens on some systems and not on others Related systemd issue: , temporary workaround: Temporary workaround:
btw I only asked you to add to make sure you were testing another thing I wanted tested :) The solution to this issue appears to be adding those and bits, which I will open a PR for.

Discussion:
systemd.contents."/etc/systemd/networkd.conf" = renderConfig cfg.config; <del> systemd.services.systemd-networkd.wantedBy = [ "initrd.target" ]; </del> <ins> systemd.services.systemd-networkd = { wantedBy = [ "initrd.target" ]; # These before and conflicts lines can be removed when this PR makes it into a release: # https://github.com/systemd/systemd/pull/27791 before = ["initrd-switch-root.target"]; conflicts = ["initrd-switch-root.target"]; }; systemd.sockets.systemd-networkd = { wantedBy = [ "initrd.target" ]; before = ["initrd-switch-root.target"]; conflicts = ["initrd-switch-root.target"]; }; </ins> systemd.services.systemd-network-generator.wantedBy = [ "sysinit.target" ]; systemd.storePaths = [

systemd.services.check-flush = { requiredBy = ["multi-user.target"]; before = ["network-pre.target" "multi-user.target"]; <ins> wants = ["network-pre.target"]; </ins> unitConfig.DefaultDependencies = false; serviceConfig.Type = "oneshot"; path = [ pkgs.iproute2 pkgs.iputils pkgs.gnugrep ];
Change:
Since 23.05 (likely since ), sets to be owned by /, but apache’s group is by default. Steps to reproduce the behavior: mediawiki that has the wrong group, also in I’d expect to be owned by a group that the httpd process is in. I assume that using instead of here might help: Please run and paste the result.

Discussion:
cfg = config.services.mediawiki; fpm = config.services.phpfpm.pools.mediawiki; user = "mediawiki"; <del> group = if cfg.webserver == "apache" then "apache" else "mediawiki"; </del> <ins> group = if cfg.webserver == "apache" then config.services.httpd.group else "mediawiki"; </ins> cacheDir = "/var/cache/mediawiki"; stateDir = "/var/lib/mediawiki";
Change:
Calling doesn't seem to work from the command line: But using the full path of the symlink directly, it works: I think it's because resolves to and it tries to find by doing to . Nixpkgs version:
mutters something about being the devil does it work inside ?
I'm not sure what to try exactly here, this is a nixops deployed machine.
Not sure if this helps you much, but this seems to work with postgresql 9.6.
Since it works for 9.6, can we close this issue?
This is not fixed with 9.6; I have just tested it with on 18.03 and the error exists exactly as before. How did you run your commands to see it working?
Hi Actually, with further investigation I find that this is due to the setting being different on the two systems that I tested. Workaround 1: Workaround 2: add to the nixos configuration.
Hmm interesting. So is there some change to the package that we could make to tell it the equivalent of what does, so that just running works out of the box, as other commands in do?
Made a test for this: After it is now possible to link only PG dir (and not whole ). However I don't quite understand why isn't linked by default. When is installed through , all works because is at correct place. I'll prepare PR
Has this regressed on NixOS 23.05? There is no postgresql directory in /run/current-system/sw/share on my system suddenly.

Discussion:
environment.systemPackages = [ postgresql ]; <ins> environment.pathsToLink = [ "/share/postgresql" ]; </ins> systemd.services.postgresql = { description = "PostgreSQL Server";

<ins> let pkgs = import <nixpkgs> { }; in with import <nixpkgs/nixos/lib/testing.nix> { inherit pkgs; system = builtins.currentSystem; }; with pkgs.lib; makeTest { name = "pg-initdb"; machine = {...}: { documentation.enable = false; services.postgresql.enable = true; services.postgresql.package = pkgs.postgresql_9_6; environment.pathsToLink = [ "/share/postgresql" ]; }; testScript = '' $machine->start; $machine->succeed("sudo -u postgres initdb -D /tmp/testpostgres2"); $machine->shutdown; ''; } </ins>  No newline at end of file
Change:
Steps to reproduce the behavior: (My is rooted at so it cannot use prebuilt binaries.) Relevant excerpt: The URL of CVE-2020- is now dead. See Added by in Please run and paste the result.

Discussion:
# This patch is the merged commit from the above PR. (fetchpatch { name   = "CVE-2018-19876.patch"; <del> url    = "https://gitlab.freedesktop.org/cairo/cairo/commit/6edf572ebb27b00d3c371ba5ae267e39d27d5b6d.patch"; sha256 = "112hgrrsmcwxh1r52brhi5lksq4pvrz4xhkzcf2iqp55jl2pb7n1"; </del> <ins> url    = "https://gitlab.freedesktop.org/cairo/cairo/-/commit/6edf572ebb27b00d3c371ba5ae267e39d27d5b6d.patch"; hash = "sha256-wZ51BZWlXByFY3/CTn7el2A9aYkwL1FygJ2zqnN+UIQ="; </ins> }) # Fix PDF output. # https://gitlab.freedesktop.org/cairo/cairo/issues/342 (fetchpatch { <del> url = "https://gitlab.freedesktop.org/cairo/cairo/commit/5e34c5a9640e49dcc29e6b954c4187cfc838dbd1.patch"; sha256 = "yCwsDUY7efVvOZkA6a0bPS+RrVc8Yk9bfPwWHeOjq5o="; </del> <ins> url = "https://gitlab.freedesktop.org/cairo/cairo/-/commit/5e34c5a9640e49dcc29e6b954c4187cfc838dbd1.patch"; hash = "sha256-yCwsDUY7efVvOZkA6a0bPS+RrVc8Yk9bfPwWHeOjq5o="; </ins> }) # Fixes CVE-2020-35492; see https://github.com/NixOS/nixpkgs/issues/120364.

(fetchpatch { name = "CVE-2020-35492.patch"; includes = [ "src/cairo-image-compositor.c" ]; <del> url = "https://github.com/freedesktop/cairo/commit/78266cc8c0f7a595cfe8f3b694bfb9bcc3700b38.patch"; sha256 = "048nzfz7rkgqb9xs0dfs56qdw7ckkxr87nbj3p0qziqdq4nb6wki"; </del> <ins> url = "https://gitlab.freedesktop.org/cairo/cairo/-/commit/78266cc8c0f7a595cfe8f3b694bfb9bcc3700b38.patch"; hash = "sha256-cXKzLMENx4/BHXLZg3Kfkx3esCnaNaB7WvjNfL77FhE="; </ins> }) # Workaround https://gitlab.freedesktop.org/cairo/cairo/-/issues/121

# Upstream PR: https://gitlab.freedesktop.org/cairo/cairo/-/issues/420 (fetchpatch { url = "https://gitlab.freedesktop.org/cairo/cairo/-/commit/e22d7212acb454daccc088619ee147af03883974.diff"; <del> sha256 = "sha256-8G98nsPz3MLEWPDX9F0jKgXC4hC4NNdFQLSpmW3ay2s="; </del> <ins> hash = "sha256-8G98nsPz3MLEWPDX9F0jKgXC4hC4NNdFQLSpmW3ay2s="; </ins> }) # Fix clang build failures on newer LLVM versions

(fetchpatch { name = "fix-types.patch"; url = "https://gitlab.freedesktop.org/cairo/cairo/-/commit/38e486b34d435130f2fb38c429e6016c3c82cd53.patch"; <del> sha256 = "sha256-vmluOJSuTRiQHmbBBVCxOIkZ0O0ZEo0J4mgrUPn0SIo="; </del> <ins> hash = "sha256-vmluOJSuTRiQHmbBBVCxOIkZ0O0ZEo0J4mgrUPn0SIo="; </ins> }) # Fix unexpected color addition on grayscale images (usually text).

(fetchpatch { name = "fix-grayscale-anialias.patch"; url = "https://gitlab.freedesktop.org/cairo/cairo/-/commit/4f4d89506f58a64b4829b1bb239bab9e46d63727.diff"; <del> sha256 = "sha256-mbTg67e7APfdELsuMAgXdY3xokWbGtHF7VDD5UyYqKM="; </del> <ins> hash = "sha256-mbTg67e7APfdELsuMAgXdY3xokWbGtHF7VDD5UyYqKM="; </ins> }) ];
Change:
Package name: gnome-shell Latest released version: 44.2 <!-- Search your package here: --- Current version on the unstable channel: 44.1 Current version on the stable/release channel: 44.1 <!-- 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.

Discussion:
in stdenv.mkDerivation rec { pname = "gnome-shell"; <del> version = "44.1"; </del> <ins> version = "44.2"; </ins> outputs = [ "out" "devdoc" ]; src = fetchurl { url = "mirror://gnome/sources/gnome-shell/${lib.versions.major version}/${pname}-${version}.tar.xz"; <del> sha256 = "C/vkOU0mdiUVTQjQFGe9vZnoFXUS/I30XVwC3bdVHKY="; </del> <ins> sha256 = "VfJ57GMDt8DIkkbs7YEkfIf8HHOUj0XrISpkchjRtj8="; </ins> }; patches = [

stdenv.mkDerivation (finalAttrs: { pname = "mutter"; <del> version = "44.1"; </del> <ins> version = "44.2"; </ins> outputs = [ "out" "dev" "man" "devdoc" ]; src = fetchurl { url = "mirror://gnome/sources/mutter/${lib.versions.major finalAttrs.version}/mutter-${finalAttrs.version}.tar.xz"; <del> sha256 = "lzrq+rQvBvk0oJlPyEh4lYzbTSdmpMhnpczcVH3VcFY="; </del> <ins> sha256 = "N1ZtflXJPciJTpx/I6e6WHmoswuvZVWCIwCdK0Z0AqE="; </ins> }; mesonFlags = [
Change:
Package name: dbus-broker Latest released version: v33 <!-- Search your package here: --- Current version on the unstable channel: v32 Current version on the stable/release channel: v32 <!-- 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 Thanks :) <!-- If the result shows no maintainers, tag the person that last updated the package. --Note for maintainers: Please tag this issue in your PR.

Discussion:
}: let dep = { pname, version, hash, rev ? "v${version}", buildInputs ? [ ] }: stdenv.mkDerivation { inherit pname version;

c-dvar = dep { pname = "c-dvar"; version = "1.0.0"; hash = "sha256-P7y7gUHXQn2eyS6IcV7m7yGy4VGtQ2orgBkS7Y729ZY="; buildInputs = [ c-stdaux c-utf8 ]; }; c-ini = dep { pname = "c-ini"; version = "1.0.0"; hash = "sha256-VKxoGexMcquakMmiH5IJt0382TjkV1FLncTSyEqf4X0="; buildInputs = [ c-list c-rbtree c-stdaux c-utf8 ]; }; c-list = dep { pname = "c-list"; version = "3.1.0"; hash = "sha256-fp3EAqcbFCLaT2EstLSzwP2X13pi2EFpFAullhoCtpw="; }; <del> # TODO: Fetch c-rbtree from a tag after its next release c-rbtree = dep { pname = "c-rbtree"; version = "unstable-2022-07-07"; rev = "431a4746705223673e43940ca1ad9b5f52473a4b"; hash = "sha256-ExSPgNqhTjSwRgYfZOAyoaehOpFNHKFqPYkcCfptkrs="; buildInputs = [ c-stdaux ]; }; </del> <ins> c-rbtree = dep { pname = "c-rbtree"; version = "3.1.0"; hash = "sha256-ozVzL6FllAn8eHbso0RZc/+PGWwEp6r/R1MR+r4Bi/4="; buildInputs = [ c-stdaux ]; }; </ins> c-shquote = dep { pname = "c-shquote"; version = "1.0.0"; hash = "sha256-Ze1enX0VJ6Xi5e4EhWzaiHc7PnuaifrUP+JuJnauv5c="; buildInputs = [ c-stdaux ]; }; <del> c-stdaux = dep { pname = "c-stdaux"; version = "1.2.0"; hash = "sha256-/D+IFdqn1XHDfdOsDnLMO5IHQ5B4P4ELyMpRcPBg/4s="; }; </del> <ins> c-stdaux = dep { pname = "c-stdaux"; version = "1.4.0"; hash = "sha256-gEqXVBAUE0dHD03ina9QbEP26NU12cHKRpuD7GoPmDs="; }; </ins> c-utf8 = dep { pname = "c-utf8"; version = "1.0.0"; hash = "sha256-QEnjmfQ6kxJdsHfyRgXAlP+oGrKLYQ0m9r+D2L+pizI="; buildInputs = [ c-stdaux ]; }; in <del> stdenv.mkDerivation rec { </del> <ins> stdenv.mkDerivation ( finalAttrs: { </ins> pname = "dbus-broker"; <del> version = "32"; </del> <ins> version = "33"; </ins> src = fetchFromGitHub { owner = "bus1"; repo = "dbus-broker"; <del> rev = "v${version}"; hash = "sha256-PVdRyg/t6D3HjSHeap5L8AiEm39iSO5qXohLw2UAUYY="; </del> <ins> rev = "v${finalAttrs.version}"; hash = "sha256-c5kEUB2k9CCuno9d4QOUUp1wbQfsvraGDLN6Yaa7T2w="; </ins> }; patches = [ ./paths.patch ];

maintainers = with maintainers; [ peterhoeg ]; platforms = platforms.linux; }; <del> } </del> <ins> } ) </ins>
Change:
Project description <!-- Describe the project a little: --This project reads email from stdin or input files and outputs a more human readeable format to stdout, it is usefull for two uses: a) Poking in your maildir folder when trying to figure out what's wrong with your syncing. b) previewing attachments in Metadata homepage URL: source URL: license: MIT platforms: I guess everything under the sun where go's supported?
Thanks.

Discussion:
<ins> { lib , buildGoModule , fetchFromGitHub }: buildGoModule rec { pname = "caeml"; version = "unstable-2023-05-24"; src = fetchFromGitHub { owner = "ferdinandyb"; repo = pname; rev = "25dbe10e99aac9b0ce3b80787c162628104f5cd2"; sha256 = "UIQCNkUyrtMF0IiAfkDvE8siqxNvfFc9TZdlZiTxCVc="; }; vendorHash = "sha256-SDJsRLIGlLv/6NUctCrn6z1IDEmum1Wn5I8RFuwcOe8="; meta = with lib; { description = "cat eml files"; longDescription = '' Reads an email file from either STDIN or from a file passed as the first argument, digests it and outputs it to STDOUT in a more human readable format. This means only From, To, Cc, Bcc, Date and Subject headers are kept and these are decoded and of all the parts only text/plain is returned. ''; homepage = "https://github.com/ferdinandyb/caeml"; license = licenses.mit; maintainers = with maintainers; [ emilytrau ]; }; } </ins>

bombardier = callPackage ../tools/networking/bombardier { }; <ins> caeml = callPackage ../applications/networking/mailreaders/caeml { }; </ins> calyx-vpn = libsForQt5.callPackage ../tools/networking/bitmask-vpn { provider = "calyx"; inherit (darwin.apple_sdk.frameworks) CoreFoundation Security;
Change:
A clear and concise description of what the bug is. Steps to reproduce the behavior: neovim 0.9.1 from unstable (/nix/store/v777qfyiinf796rgghiidn5fswgv3jyy-neovim-0.9.1/bin/nvim) neovim with healthcheck section "Python 3 provider (optional)" There should be no error shown I'll post the text output of the section, should be better than a screenshot. Add any other context about the problem here. Please run and paste the result.
seems to be broken by , opened to fix it

Discussion:
propagatedBuildInputs = [ msgpack <del> ] ++ lib.optional (!isPyPy) [ </del> <ins> ] ++ lib.optionals (!isPyPy) [ </ins> greenlet ];

homepage = "https://github.com/neovim/pynvim"; changelog = "https://github.com/neovim/pynvim/releases/tag/${version}"; license = licenses.asl20; <del> maintainers = with maintainers; [ ]; </del> <ins> maintainers = with maintainers; [ figsoda ]; </ins> }; }
Change:
sqitchPg 1.3.1 package is missing some dependency: Algorithm::Backoff::Exponential module Steps to reproduce the behavior: 2 concurrent sqitch deployments on the same database Both deployments should succeed by having one wait and retry with exponential backoff. I used to run sqitchPg 1.1.0. After migrating to NixOS 23.05, I now use sqitchPg 1.3.1. Here is what happened: The logs indicates but if fails immediately. The error seem to indicates that it would have succeeded if was packaged with module . Destination locking was introduced in sqitch . Related PR (): <!-- 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.
Could you please try from ?
I use NixOps with flakes to deploy the machine on which I reported the problem. I am not sure of the nix way of testing but here is what I did: I can see that a new version of Sqitch was built and the test ran successfully:
Awesome. Thanks for checking that PR. So it seems that fixes closes this issue, right?
That is correct!
Thank you for fixing this!

Discussion:
let sqitch = perlPackages.AppSqitch; <del> modules = with perlPackages; [ ] </del> <ins> modules = with perlPackages; [ AlgorithmBackoff ] </ins> ++ lib.optional mysqlSupport DBDmysql ++ lib.optional postgresqlSupport DBDPg ++ lib.optional templateToolkitSupport TemplateToolkit;

}; }; <ins> AlgorithmBackoff = buildPerlPackage { pname = "Algorithm-Backoff"; version = "0.009"; src = fetchurl { url = "mirror://cpan/authors/id/P/PE/PERLANCAR/Algorithm-Backoff-0.009.tar.gz"; sha256 = "9f0ffcdf1e65a88022d6412f46ad977ede5a7b64be663009d13948fe8c9d180b"; }; buildInputs = [ TestException TestNumberDelta ]; meta = { homepage = "https://metacpan.org/release/Algorithm-Backoff"; description = "Various backoff strategies for retry"; license = with lib.licenses; [ artistic1 gpl1Plus ]; }; }; </ins> AlgorithmC3 = buildPerlPackage { pname = "Algorithm-C3"; version = "0.11";
Change:
The "infra" package is nonfree. Steps to reproduce the behavior: The package should only contain free software. The "infrahq/infra" repository uses the infamous nonfree license "Elastic License" since . The nixpkg incorrectly states that it's under MIT license. The package needs to be removed, reverted to the or manually cleansed from nonfree code (via a fork?).
A bit funny that this proprietary software was kept but was completely removed.

Discussion:
description = "Infra manages access to infrastructure such as Kubernetes"; homepage = "https://github.com/infrahq/infra"; changelog = "https://github.com/infrahq/infra/raw/v${version}/CHANGELOG.md"; <del> license = licenses.mit; </del> <ins> license = licenses.elastic; </ins> maintainers = with maintainers; [ peterromfeldhk ]; }; }
Change:
Project description LACT is an AMD GPU controller on Linux that doesn't have to run in background like corectrl. It uses GTK4 and rust. Metadata homepage URL: source URL: license: MIT platforms: Linux
Thank you so much!

Discussion:
<ins> { lib , rustPlatform , fetchFromGitHub , pkg-config , wrapGAppsHook , gdk-pixbuf , gtk4 , libdrm , vulkan-loader , coreutils , hwdata }: rustPlatform.buildRustPackage rec { pname = "lact"; version = "0.4.3"; src = fetchFromGitHub { owner = "ilya-zlobintsev"; repo = "LACT"; rev = "v${version}"; hash = "sha256-zSQqR5AxdqcSwgapSwXYn/36F6SQna8+RS6UTQJySrg="; }; cargoHash = "sha256-DDBYfafLg2fH+HsC5VZzVyRCyVSwcMydUGBe7NQRwEk="; nativeBuildInputs = [ pkg-config wrapGAppsHook ]; buildInputs = [ gdk-pixbuf gtk4 libdrm vulkan-loader ]; checkFlags = [ # tries and fails to initialize gtk "--skip=app::root_stack::thermals_page::fan_curve_frame::tests::set_get_curve" ]; postPatch = '' substituteInPlace lact-daemon/src/server/system.rs  --replace 'Command::new("uname")' 'Command::new("${coreutils}/bin/uname")' substituteInPlace res/lactd.service  --replace ExecStart={lact,$out/bin/lact} substituteInPlace res/io.github.lact-linux.desktop  --replace Exec={lact,$out/bin/lact} pushd $cargoDepsCopy/pciid-parser oldHash=$(sha256sum src/lib.rs | cut -d " " -f 1) sed 's|@hwdata@|${hwdata}|g' < ${./pci-ids.patch} | patch -p1 substituteInPlace .cargo-checksum.json  --replace $oldHash $(sha256sum src/lib.rs | cut -d " " -f 1) popd ''; postInstall = '' install -Dm444 res/lactd.service -t $out/lib/systemd/system install -Dm444 res/io.github.lact-linux.desktop -t $out/share/applications install -Dm444 res/io.github.lact-linux.png -t $out/share/pixmaps ''; postFixup = '' patchelf $out/bin/.lact-wrapped  --add-rpath ${lib.makeLibraryPath [ vulkan-loader ]} ''; meta = with lib; { description = "Linux AMDGPU Controller"; homepage = "https://github.com/ilya-zlobintsev/LACT"; license = licenses.mit; maintainers = with maintainers; [ figsoda ]; platforms = platforms.linux; }; } </ins>

<ins> --- a/src/lib.rs +++ b/src/lib.rs @@ -18,7 +18,7 @@ use std::{ }; use tracing::trace; -const DB_PATHS: &[&str] = &["/usr/share/hwdata/pci.ids", "/usr/share/misc/pci.ids"]; +const DB_PATHS: &[&str] = &["@hwdata@/share/hwdata/pci.ids"]; #[cfg(feature = "online")] const URL: &str = "https://pci-ids.ucw.cz/v2.2/pci.ids"; </ins>

leatherman = callPackage ../development/libraries/leatherman { }; <ins> lact = callPackage ../tools/system/lact { }; </ins> ledit = callPackage ../tools/misc/ledit { inherit (ocaml-ng.ocamlPackages_4_12) ocaml camlp5; };