jiebi/CodeConvo huggingface dataset:
<ins> { lib, appimageTools, fetchurl, }: let pname = "clickup"; version = "3.3.79"; src = fetchurl { # Using archive.org because the website doesn't store older versions of the software. url = "https://web.archive.org/web/20240601173958/https%3A%2F%2Fdesktop.clickup.com%2Flinux"; hash = "sha256-jAOYDX9j+ZTqWsSg0rEckKZnErgsIV6+CtUv3M3wNqM="; }; appimageContents = appimageTools.extractType2 { inherit pname version src; }; in appimageTools.wrapType2 { inherit pname version src; extraPkgs = pkgs: [ pkgs.xorg.libxkbfile ]; extraInstallCommands = '' install -m 444 -D ${appimageContents}/desktop.desktop $out/share/applications/clickup.desktop substituteInPlace $out/share/applications/clickup.desktop  --replace-fail 'Exec=AppRun --no-sandbox %U' 'Exec=clickup'  --replace-fail 'Icon=desktop' 'Icon=clickup' for size in 16 32 64 128 256 512 1024; do install -Dm444 ${appimageContents}/usr/share/icons/hicolor/''${size}x''${size}/apps/desktop.png  -t $out/share/icons/hicolor/''${size}x''${size}/apps/clickup.png done ''; meta = { description = "All in one project management solution"; homepage = "https://clickup.com"; license = lib.licenses.unfree; mainProgram = "clickup"; maintainers = with lib.maintainers; [ heisfer ]; platforms = [ "x86_64-linux" ]; }; } </ins>
application = mkSweetHome3D rec { pname = lib.toLower module + "-application"; <del> version = "7.2"; </del> <ins> version = "7.3"; </ins> module = "SweetHome3D"; description = "Design and visualize your future home"; license = lib.licenses.gpl2Plus; src = fetchzip { url = "mirror://sourceforge/sweethome3d/${module}-${version}-src.zip"; <del> hash = "sha256-RVuwxL/YATqHoQuc25ZaYgZ+o2rMOqnzU8/LLxb5Ra4="; </del> <ins> hash = "sha256-adMQzQE+xAZpMJyQFm01A+AfvcB5YHsJvk+533BUf1Q="; </ins> }; desktopName = "Sweet Home 3D"; icons = {
environment.systemPackages = lib.mkIf (cfg.keybindings || cfg.fuzzyCompletion) [ pkgs.fzf ]; programs = { <del> bash.interactiveShellInit = lib.optionalString cfg.fuzzyCompletion '' </del> <ins> # load after programs.bash.enableCompletion bash.promptPluginInit = lib.mkAfter (lib.optionalString cfg.fuzzyCompletion '' </ins> source ${pkgs.fzf}/share/fzf/completion.bash '' + lib.optionalString cfg.keybindings '' source ${pkgs.fzf}/share/fzf/key-bindings.bash <del> ''; </del> <ins> ''); </ins> zsh = { interactiveShellInit = lib.optionalString (!config.programs.zsh.ohMyZsh.enable)
<ins> { lib , stdenv , fetchFromGitHub , fetchYarnDeps , buildGoModule , systemd , yarn , fixup-yarn-lock , nodejs , grafana-alloy , nix-update-script , installShellFiles , testers }: buildGoModule rec { pname = "grafana-alloy"; version = "1.1.1"; src = fetchFromGitHub { rev = "v${version}"; owner = "grafana"; repo = "alloy"; hash = "sha256-jaOQG+QkVi10lUp6izvSGE9j76ULc4yKbxdDhLHykYI="; }; proxyVendor = true; vendorHash = "sha256-6Xc2siImM1Dl716uGhtAGcn+PO2OLuYLxanzg8Ho6SA="; nativeBuildInputs = [ fixup-yarn-lock yarn nodejs installShellFiles ]; ldflags = let prefix = "github.com/grafana/alloy/internal/build"; in [ "-s" "-w" # https://github.com/grafana/alloy/blob/3201389252d2c011bee15ace0c9f4cdbcb978f9f/Makefile#L110 "-X ${prefix}.Branch=v${version}" "-X ${prefix}.Version=${version}" "-X ${prefix}.Revision=v${version}" "-X ${prefix}.BuildUser=nix" "-X ${prefix}.BuildDate=1970-01-01T00:00:00Z" ]; tags = [ "netgo" "builtinassets" "promtail_journal_enabled" ]; subPackages = [ "." ]; yarnOfflineCache = fetchYarnDeps { yarnLock = "${src}/internal/web/ui/yarn.lock"; sha256 = "sha256-o3vCI9GHCr4SjYsiT0wQ4mN76QeAGwOfLVCzGp7NMf4="; }; preBuild = '' pushd internal/web/ui # Yarn wants a real home directory to write cache, config, etc to export HOME=$NIX_BUILD_TOP/fake_home fixup-yarn-lock yarn.lock yarn config --offline set yarn-offline-mirror ${yarnOfflineCache} yarn install --offline --frozen-lockfile --ignore-platform --ignore-scripts --no-progress --non-interactive patchShebangs node_modules/ yarn --offline build popd ''; # uses go-systemd, which uses libsystemd headers # https://github.com/coreos/go-systemd/issues/351 NIX_CFLAGS_COMPILE = lib.optionals stdenv.isLinux [ "-I${lib.getDev systemd}/include" ]; checkFlags = [ "-tags nonetwork" # disable network tests "-tags nodocker" # disable docker tests ]; # go-systemd uses libsystemd under the hood, which does dlopen(libsystemd) at # runtime. # Add to RUNPATH so it can be found. postFixup = lib.optionalString stdenv.isLinux '' patchelf  --set-rpath "${lib.makeLibraryPath [ (lib.getLib systemd) ]}:$(patchelf --print-rpath $out/bin/alloy)"  $out/bin/alloy ''; postInstall = '' installShellCompletion --cmd alloy  --bash <($out/bin/alloy completion bash)  --fish <($out/bin/alloy completion fish)  --zsh <($out/bin/alloy completion zsh) ''; passthru = { tests = { version = testers.testVersion { version = "v${version}"; command = "${lib.getExe grafana-alloy} --version"; package = grafana-alloy; }; }; updateScript = nix-update-script { }; # alias for nix-update to be able to find and update this attribute offlineCache = yarnOfflineCache; }; meta = with lib; { description = "Open source OpenTelemetry Collector distribution with built-in Prometheus pipelines and support for metrics, logs, traces, and profiles"; mainProgram = "alloy"; license = licenses.asl20; homepage = "https://grafana.com/oss/alloy"; maintainers = with maintainers; [ flokli emilylange ]; platforms = lib.platforms.unix; }; } </ins>
<ins> { config, pkgs, lib, ... }: let cfg = config.programs.wayland.miracle-wm; in { options.programs.wayland.miracle-wm = { enable = lib.mkEnableOption '' miracle-wm, a tiling Mir based Wayland compositor. You can manually launch miracle-wm by executing "exec miracle-wm" on a TTY, or launch it from a display manager. Consult the USERGUIDE.md at <https://github.com/mattkae/miracle-wm> for information on how to use & configure it ''; }; config = lib.mkIf cfg.enable ( lib.mkMerge [ { environment = { systemPackages = [ pkgs.miracle-wm ]; }; # To make the miracle-wm session available if a display manager like SDDM is enabled: services.displayManager.sessionPackages = [ pkgs.miracle-wm ]; } (import ./wayland-session.nix { inherit lib pkgs; # Hardcoded path in Mir, not really possible to disable enableXWayland = true; # No portal support yet: https://github.com/mattkae/miracle-wm/issues/164 enableWlrPortal = false; }) ] ); meta.maintainers = with lib.maintainers; [ OPNA2608 ]; } </ins>
minidlna = handleTest ./minidlna.nix {}; miniflux = handleTest ./miniflux.nix {}; minio = handleTest ./minio.nix {}; <ins> miracle-wm = runTest ./miracle-wm.nix; </ins> miriway = handleTest ./miriway.nix {}; misc = handleTest ./misc.nix {}; mjolnir = handleTest ./matrix/mjolnir.nix {};
<ins> { pkgs, lib, ... }: { name = "miracle-wm"; meta = { maintainers = with lib.maintainers; [ OPNA2608 ]; }; nodes.machine = { config, ... }: { imports = [ ./common/auto.nix ./common/user-account.nix ]; # Seems to very rarely get interrupted by oom-killer virtualisation.memorySize = 2047; test-support.displayManager.auto = { enable = true; user = "alice"; }; services.xserver.enable = true; services.displayManager.defaultSession = lib.mkForce "miracle-wm"; programs.wayland.miracle-wm.enable = true; # To ensure a specific config for the tests systemd.tmpfiles.rules = let testConfig = (pkgs.formats.yaml { }).generate "miracle-wm.yaml" { terminal = "env WINIT_UNIX_BACKEND=x11 WAYLAND_DISPLAY= alacritty"; startup_apps = [ { command = "foot"; restart_on_death = false; } ]; }; in [ "d ${config.users.users.alice.home}/.config 0700 alice users - -" "L ${config.users.users.alice.home}/.config/miracle-wm.yaml - - - - ${testConfig}" ]; environment = { shellAliases = { test-wayland = "wayland-info | tee /tmp/test-wayland.out && touch /tmp/test-wayland-exit-ok"; test-x11 = "glinfo | tee /tmp/test-x11.out && touch /tmp/test-x11-exit-ok"; }; systemPackages = with pkgs; [ mesa-demos wayland-utils foot alacritty ]; # To help with OCR etc."xdg/foot/foot.ini".text = lib.generators.toINI { } { main = { font = "inconsolata:size=16"; }; colors = rec { foreground = "000000"; background = "ffffff"; regular2 = foreground; }; }; etc."xdg/alacritty/alacritty.yml".text = lib.generators.toYAML { } { font = rec { normal.family = "Inconsolata"; bold.family = normal.family; italic.family = normal.family; bold_italic.family = normal.family; size = 16; }; colors = rec { primary = { foreground = "0x000000"; background = "0xffffff"; }; normal = { green = primary.foreground; }; }; }; }; fonts.packages = [ pkgs.inconsolata ]; }; enableOCR = true; testScript = { ... }: '' start_all() machine.wait_for_unit("multi-user.target") # Wait for Miriway to complete startup machine.wait_for_file("/run/user/1000/wayland-0") machine.succeed("pgrep miracle-wm") machine.screenshot("miracle-wm_launched") # Test Wayland with subtest("wayland client works"): # We let miracle-wm start the first terminal, as we might get stuck if it's not ready to process the first keybind # machine.send_key("ctrl-alt-t") machine.wait_for_text("alice@machine") machine.send_chars("test-waylandn") machine.wait_for_file("/tmp/test-wayland-exit-ok") machine.copy_from_vm("/tmp/test-wayland.out") machine.screenshot("foot_wayland_info") machine.send_chars("exitn") machine.wait_until_fails("pgrep foot") # Test XWayland with subtest("x11 client works"): machine.send_key("meta_l-ret") machine.wait_for_text("alice@machine") machine.send_chars("test-x11n") machine.wait_for_file("/tmp/test-x11-exit-ok") machine.copy_from_vm("/tmp/test-x11.out") machine.screenshot("alacritty_glinfo") machine.send_chars("exitn") machine.wait_until_fails("pgrep alacritty") ''; } </ins>
<ins> { stdenv, lib, fetchFromGitHub, gitUpdater, nixosTests, boost, cmake, glib, glm, gtest, libevdev, libglvnd, libnotify, libuuid, libxkbcommon, mesa, mir, nlohmann_json, pcre2, pkg-config, yaml-cpp, }: stdenv.mkDerivation (finalAttrs: { pname = "miracle-wm"; version = "0.3.0"; src = fetchFromGitHub { owner = "mattkae"; repo = "miracle-wm"; rev = "v${finalAttrs.version}"; hash = "sha256-Ss93yI33e+XFjbKedbBjmYHkjPeWUWxEStwNTgTszA4="; }; postPatch = '' substituteInPlace session/usr/local/share/wayland-sessions/miracle-wm.desktop.in  --replace-fail '@CMAKE_INSTALL_FULL_BINDIR@/miracle-wm' 'miracle-wm' '' + lib.optionalString (!finalAttrs.finalPackage.doCheck) '' substituteInPlace CMakeLists.txt  --replace-fail 'add_subdirectory(tests/)' "" ''; strictDeps = true; # Source has a path "session/usr/local/...", don't break references to that dontFixCmake = true; nativeBuildInputs = [ cmake pkg-config ]; buildInputs = [ boost glib glm libevdev libglvnd libnotify libuuid libxkbcommon mesa # gbm.h mir nlohmann_json pcre2 yaml-cpp ]; checkInputs = [ gtest ]; doCheck = stdenv.buildPlatform.canExecute stdenv.hostPlatform; checkPhase = '' runHook preCheck ./bin/miracle-wm-tests runHook postCheck ''; passthru = { updateScript = gitUpdater { rev-prefix = "v"; }; providedSessions = [ "miracle-wm" ]; tests.vm = nixosTests.miracle-wm; }; meta = with lib; { description = "Tiling Wayland compositor based on Mir"; longDescription = '' miracle-wm is a Wayland compositor based on Mir. It features a tiling window manager at its core, very much in the style of i3 and sway. The intention is to build a compositor that is flashier and more feature-rich than either of those compositors, like swayfx. See the user guide for info on how to use miracle-wm: https://github.com/mattkae/miracle-wm/blob/v${finalAttrs.version}/USERGUIDE.md ''; homepage = "https://github.com/mattkae/miracle-wm"; license = licenses.gpl3Only; mainProgram = "miracle-wm"; maintainers = with maintainers; [ OPNA2608 ]; platforms = platforms.linux; }; }) </ins>
{ lib , buildPythonPackage , fetchPypi <ins> , setuptools </ins> , setuptools-scm , pycryptodome , requests , six <ins> , pytestCheckHook </ins> }: buildPythonPackage rec { pname = "httpsig"; version = "1.3.0"; <del> format = "setuptools"; </del> <ins> pyproject = true; </ins> src = fetchPypi { inherit pname version; <del> sha256 = "1rkc3zwsq53rjsmc47335m4viljiwdbmw3y2zry4z70j8q1dbmki"; </del> <ins> hash = "sha256-cdbVAkYSnE98/sIPXlfjUdK4SS1jHMKqlnkUrPkfbOY="; </ins> }; <del> buildInputs = [ </del> <ins> build-system = [ setuptools </ins> setuptools-scm ]; <del> propagatedBuildInputs = [ </del> <ins> dependencies = [ </ins> pycryptodome requests six <ins> setuptools ]; nativeCheckInputs = [ pytestCheckHook </ins> ]; pythonImportsCheck = [ "httpsig" ];
example = "/path/to/ollama/models"; description = '' The directory that the ollama service will read models from and download new models to. <ins> See also `services.ollama.writablePaths` and `services.ollama.sandbox` if downloading models or other mutation of the filesystem is required. ''; }; sandbox = lib.mkOption { type = types.bool; default = true; example = false; description = '' Whether to enable systemd's sandboxing capabilities. This sets [`DynamicUser`]( https://www.freedesktop.org/software/systemd/man/latest/systemd.exec.html#DynamicUser= ), which runs the server as a unique user with read-only access to most of the filesystem. See also `services.ollama.writablePaths`. ''; }; writablePaths = lib.mkOption { type = types.listOf types.str; default = [ ]; example = [ "/home/foo" "/mnt/foo" ]; description = '' Paths that the server should have write access to. This sets [`ReadWritePaths`]( https://www.freedesktop.org/software/systemd/man/latest/systemd.exec.html#ReadWritePaths= ), which allows specified paths to be written to through the default sandboxing. See also `services.ollama.sandbox`. </ins> ''; }; listenAddress = lib.mkOption {
<del> diff --git a/kvmfr.c b/kvmfr.c index 121aae5b..2f4c9e1a 100644 --- a/kvmfr.c +++ b/kvmfr.c @@ -539,7 +539,11 @@ static int __init kvmfr_module_init(void) if (kvmfr->major < 0) goto out_free; +#if LINUX_VERSION_CODE < KERNEL_VERSION(6, 4, 0) kvmfr->pClass = class_create(THIS_MODULE, KVMFR_DEV_NAME); +#else +  kvmfr->pClass = class_create(KVMFR_DEV_NAME); +#endif if (IS_ERR(kvmfr->pClass)) goto out_unreg; </del>
<del> { lib, stdenv, fetchurl, m4, expat , libX11, libXt, libXaw, libXmu, bdftopcf, mkfontdir , fontadobe100dpi, fontadobeutopia100dpi, fontbh100dpi , fontbhlucidatypewriter100dpi, fontbitstream100dpi </del> <ins> { stdenv , darwin , lib , libiconv , fetchurl , m4 , expat , libX11 , libXt , libXaw , libXmu , bdftopcf , mkfontdir , fontadobe100dpi , fontadobeutopia100dpi , fontbh100dpi , fontbhlucidatypewriter100dpi , fontbitstream100dpi </ins> , tcl <del> , ncurses }: </del> <ins> , ncurses }: </ins> let majorVersion = "4"; <del> minorVersion = "0"; versionSuffix = "ga9"; in stdenv.mkDerivation rec { </del> <ins> minorVersion = "3"; versionSuffix = "ga8"; in stdenv.mkDerivation rec { </ins> pname = "x3270"; version = "${majorVersion}.${minorVersion}${versionSuffix}"; src = fetchurl { <del> url = "http://x3270.bgp.nu/download/0${majorVersion}.0${minorVersion}/suite3270-${version}-src.tgz"; sha256 = "0km24rgll0s4ji6iz8lvy5ra76ds162s95y33w5px6697cwqkp9j"; </del> <ins> url = "http://x3270.bgp.nu/download/0${majorVersion}.0${minorVersion}/suite3270-${version}-src.tgz"; sha256 = "sha256-gcC6REfZentIPEDhGznUSYu8mvVfpPeMz/Bks+N43Fk="; </ins> }; <del> buildFlags = [ "unix" ]; </del> <ins> buildFlags = lib.optional stdenv.isLinux "unix"; configureFlags = lib.optionals stdenv.isDarwin [ "--enable-c3270" "--enable-pr3270" "--enable-s3270" "--enable-tcl3270" ]; </ins> <del> postConfigure = '' pushd c3270 ; ./configure ; popd </del> <ins> postBuild = '' make install.man </ins> ''; <ins> pathsToLink = [ "/share/man" ]; </ins> nativeBuildInputs = [ m4 ]; buildInputs = [ expat <del> libX11 libXt libXaw libXmu bdftopcf mkfontdir fontadobe100dpi fontadobeutopia100dpi fontbh100dpi fontbhlucidatypewriter100dpi fontbitstream100dpi </del> <ins> libX11 libXt libXaw libXmu bdftopcf mkfontdir fontadobe100dpi fontadobeutopia100dpi fontbh100dpi fontbhlucidatypewriter100dpi fontbitstream100dpi </ins> tcl ncurses expat <del> ]; </del> <ins> ] ++ lib.optionals stdenv.isDarwin [ libiconv darwin.apple_sdk.frameworks.Security ]; </ins> meta = with lib; { description = "IBM 3270 terminal emulator for the X Window System";
rustPlatform.buildRustPackage rec { pname = "i3bar-river"; <del> version = "0.1.6"; </del> <ins> version = "0.1.7"; </ins> src = fetchFromGitHub { owner = "MaxVerevkin"; repo = "i3bar-river"; rev = "v${version}"; <del> hash = "sha256-wtyC8cGK408KZYpWniW2y4XI1ScTSBZJJlUt6b2Z5KA="; </del> <ins> hash = "sha256-mLRB4o8FR/R9QUpRkcNppiE2XcWFWE05wPxuKdxG18M="; </ins> }; <del> cargoHash = "sha256-PdSMDsV3yFy3kSNS6OBxFdrZsIn70gXOTd2AhyU4a9o="; </del> <ins> cargoHash = "sha256-INjuI3XTSzAjLqk/P+cd7rMhXsOBDSqMaZZN9kFyreg="; </ins> nativeBuildInputs = [ pkg-config ]; buildInputs = [ pango ];
<ins> { lib, rustPlatform, fetchFromGitHub, installShellFiles }: rustPlatform.buildRustPackage rec { pname = "ab-av1"; version = "0.7.14"; src = fetchFromGitHub { owner = "alexheretic"; repo = "ab-av1"; rev = "v${version}"; hash = "sha256-cDabGXNzusVnp4exINqUitEL1HnzSgpcRtYXU5pSRhY="; }; cargoHash = "sha256-sW/673orvK+mIUqTijpNh4YGd9ZrgSveGT6F1O5OYfI="; nativeBuildInputs = [ installShellFiles ]; postInstall = '' installShellCompletion --cmd ab-av1  --bash <($out/bin/ab-av1 print-completions bash)  --fish <($out/bin/ab-av1 print-completions fish)  --zsh <($out/bin/ab-av1 print-completions zsh) ''; meta = with lib; { description = "AV1 re-encoding using ffmpeg, svt-av1 & vmaf"; homepage = "https://github.com/alexheretic/ab-av1"; changelog = "https://github.com/alexheretic/ab-av1/blob/${src.rev}/CHANGELOG.md"; license = licenses.mit; maintainers = [ maintainers.marsam ]; mainProgram = "ab-av1"; }; } </ins>
<del> { lib , buildPythonPackage , fetchFromGitHub , geojson , pysocks , pythonOlder , requests , pytestCheckHook , pythonRelaxDepsHook </del> <ins> { lib, buildPythonPackage, fetchFromGitHub, geojson, pysocks, pythonOlder, requests, setuptools, pytestCheckHook, pythonRelaxDepsHook, </ins> }: buildPythonPackage rec { pname = "pyowm"; version = "3.3.0"; <del> format = "setuptools"; </del> <ins> pyproject = true; </ins> disabled = pythonOlder "3.7"; src = fetchFromGitHub { owner = "csparpa"; <del> repo = pname; rev = version; </del> <ins> repo = "pyowm"; rev = "refs/tags/${version}"; </ins> hash = "sha256-cSOhm3aDksLBChZzgw1gjUjLQkElR2/xGFMOb9K9RME="; }; <del> pythonRelaxDeps = [ "geojson" ]; </del> <ins> pythonRelaxDeps = [ "geojson" ]; </ins> <del> nativeBuildInputs = [ pythonRelaxDepsHook ]; </del> <ins> build-system = [ setuptools ]; nativeBuildInputs = [ pythonRelaxDepsHook ]; </ins> <del> propagatedBuildInputs = [ </del> <ins> dependencies = [ </ins> geojson pysocks requests <ins> setuptools </ins> ]; <del> nativeCheckInputs = [ pytestCheckHook ]; </del> <ins> nativeCheckInputs = [ pytestCheckHook ]; </ins> # Run only tests which don't require network access <del> pytestFlagsArray = [ "tests/unit" ]; </del> <ins> pytestFlagsArray = [ "tests/unit" ]; </ins> <del> pythonImportsCheck = [ "pyowm" ]; </del> <ins> pythonImportsCheck = [ "pyowm" ]; </ins> meta = with lib; { description = "Python wrapper around the OpenWeatherMap web API"; homepage = "https://pyowm.readthedocs.io/"; <ins> changelog = "https://github.com/csparpa/pyowm/releases/tag/${version}"; </ins> license = licenses.mit; maintainers = with maintainers; [ fab ]; };
} ++ (lib.mapAttrsToList (vhost: conf: { virtualHosts.${vhost} = { locations = { <ins> "/".extraConfig = '' # pass information via X-User and X-Email headers to backend, requires running with --set-xauthrequest flag proxy_set_header X-User  $user; proxy_set_header X-Email $email; # if you enabled --cookie-refresh, this is needed for it to work with auth_request add_header Set-Cookie $auth_cookie; ''; </ins> "/oauth2/auth" = let maybeQueryArg = name: value: if value == null then null
auth_request /oauth2/auth; error_page 401 = @redirectToAuth2ProxyLogin; <del> # pass information via X-User and X-Email headers to backend, # requires running with --set-xauthrequest flag </del> <ins> # set variables being used in locations."/".extraConfig </ins> auth_request_set $user   $upstream_http_x_auth_request_user; auth_request_set $email  $upstream_http_x_auth_request_email; <del> proxy_set_header X-User  $user; proxy_set_header X-Email $email; # if you enabled --cookie-refresh, this is needed for it to work with auth_request </del> auth_request_set $auth_cookie $upstream_http_set_cookie; <del> add_header Set-Cookie $auth_cookie; </del> ''; }; }) cfg.virtualHosts)));
<del> { stdenv, lib, fetchFromGitHub, fetchpatch, cmake, pkg-config </del> <ins> { stdenv, lib, fetchFromGitHub, cmake, pkg-config </ins> , alsa-lib, asio, avahi, boost179, flac, libogg, libvorbis, libopus, soxr , IOKit, AudioToolbox , aixlog, popl , pulseaudioSupport ? false, libpulseaudio , nixosTests }: <del> assert pulseaudioSupport -> libpulseaudio != null; </del> stdenv.mkDerivation rec { pname = "snapcast"; <del> version = "0.27.0"; </del> <ins> version = "0.28.0"; </ins> src = fetchFromGitHub { owner  = "badaix"; repo   = "snapcast"; rev    = "v${version}"; <del> sha256 = "sha256-dlK1xQQqst4VQjioC7MZzqXwMC+JfqtvnD5lrOqGhYI="; </del> <ins> sha256 = "sha256-XxpiLojs1TI3qM7yXS+OPcHKo6pLcfJ+Eop7GjQ4HQw="; </ins> }; <del> patches = [ # Can be removed with next release after 0.27.0 (fetchpatch { name = "include-cstdint.patch"; url = "https://github.com/badaix/snapcast/commit/481f08199ca31c60c9a3475f1064e6b06a503d12.patch"; hash = "sha256-klpvmBpBAlBMtcgnNfW6X6vDbJFnOuOsPUDXcNf5tGc="; }) ]; </del> nativeBuildInputs = [ cmake pkg-config ]; # snapcast also supports building against tremor but as we have libogg, that's # not needed
, libXext , sdbus-cpp , udev <ins> , xcbutilimage </ins> , coreutils <ins> , cli11 , ddcutil , fmt , nlohmann_json , spdlog </ins> }: stdenv.mkDerivation rec { pname = "gummy"; <del> version = "0.3"; </del> <ins> version = "0.6.0"; </ins> <del> src = fetchFromGitHub { owner = "fushko"; </del> <ins> src = fetchFromGitea { domain = "codeberg.org"; owner = "fusco"; </ins> repo = "gummy"; rev = version; <del> sha256 = "sha256-dw2yOXTS61OIe+NOq8MPydhkZvTit13eC7cbL5nFseg="; </del> <ins> hash = "sha256-kATieFf+dEpcYgSEPoETacP7R+u2dOrg7rOhIkNQ1uE="; </ins> }; nativeBuildInputs = [
]; buildInputs = [ <ins> cli11 ddcutil fmt </ins> libX11 libXext <ins> nlohmann_json </ins> sdbus-cpp <ins> spdlog </ins> udev <ins> xcbutilimage </ins> ]; cmakeFlags = [ "-DUDEV_DIR=${placeholder "out"}/lib/udev" <ins> "-DUDEV_RULES_DIR=${placeholder "out"}/lib/udev/rules.d" </ins> ]; # Fixes the "gummy start" command, without this it cannot find the binary. # Setting this through cmake does not seem to work. postPatch = '' <del> substituteInPlace src/gummy/gummy.cpp  </del> <ins> substituteInPlace gummyd/gummyd/api.cpp  </ins> --replace "CMAKE_INSTALL_DAEMON_PATH" ""${placeholder "out"}/libexec/gummyd"" ''; preFixup = '' <del> substituteInPlace $out/lib/udev/99-gummy.rules  </del> <ins> substituteInPlace $out/lib/udev/rules.d/99-gummy.rules  </ins> --replace "/bin/chmod" "${coreutils}/bin/chmod" ln -s $out/libexec/gummyd $out/bin/gummyd
passthru.tests.version = testers.testVersion { package = gummy; }; meta = with lib; { <del> homepage = "https://github.com/Fushko/gummy"; </del> <ins> homepage = "https://codeberg.org/fusco/gummy"; </ins> description = "Brightness and temperature manager for X11"; longDescription = '' CLI screen manager for X11 that allows automatic and manual brightness/temperature adjustments, via backlight (currently only for embedded displays) and gamma. Multiple monitors are supported. ''; license = licenses.gpl3Only; <del> maintainers = [ maintainers.ivar ]; </del> <ins> maintainers = with maintainers; [ ivar ]; </ins> }; }