Running nixpkgs-update (https://nix-community.org/update-bot/) with UPDATE_INFO: cider-2 0 -> 1 attrpath: cider-2 Checking auto update branch... [version] [version] skipping because derivation has updateScript [rustCrateVersion] [rustCrateVersion] No cargoHash found [golangModuleVersion] [golangModuleVersion] Not a buildGoModule package with vendorHash [npmDepsVersion] [npmDepsVersion] No npmDepsHash [updateScript] [updateScript] Success [updateScript] this derivation will be built: /nix/store/hgg991hpblnz0kh5m8kaj91iw4ngdza5-packages.json.drv building '/nix/store/hgg991hpblnz0kh5m8kaj91iw4ngdza5-packages.json.drv'... Going to be running update for following packages: - cider-2-4.0.0 Press Enter key to continue... Running update for: Enqueuing group of 1 packages - cider-2-4.0.0: UPDATING ... - cider-2-4.0.0: DONE. Packages updated! Diff after rewrites: diff --git a/pkgs/by-name/ci/cider-2/package.nix b/pkgs/by-name/ci/cider-2/package.nix index c30678890e5a..f5d19ba139fa 100644 --- a/pkgs/by-name/ci/cider-2/package.nix +++ b/pkgs/by-name/ci/cider-2/package.nix @@ -18,11 +18,11 @@ }: stdenv.mkDerivation rec { pname = "cider-2"; - version = "4.0.0"; + version = "4.0.9"; src = fetchurl { url = "https://repo.cider.sh/apt/pool/main/cider-v${version}-linux-x64.deb"; - hash = "sha256-Z5B7VQatTEktt4e7aF5EGDTufgwfRHJzCZ1Lia/aIFk="; + hash = "sha256-JyWEqlG+fLlMu2Bph1571DO50LQyXb1wfTOVio8Jc1U="; }; nativeBuildInputs = [ No auto update branch exists Old version 4.0.0" not present in master derivation file with contents: { lib, stdenv, fetchurl, dpkg, autoPatchelfHook, makeWrapper, # Required dependencies for autoPatchelfHook alsa-lib, asar, gtk3, libgbm, libGL, nspr, nss, widevine-cdm, }: stdenv.mkDerivation rec { pname = "cider-2"; version = "4.0.9.1"; src = fetchurl { url = "https://repo.cider.sh/apt/pool/main/cider-v${version}-linux-x64.deb"; hash = "sha256-MsA6lK3PsyOEx938FgJFx8l9oqwoM3FzIK5goF73lTs="; }; nativeBuildInputs = [ asar dpkg autoPatchelfHook makeWrapper ]; buildInputs = [ alsa-lib gtk3 libgbm libGL nspr nss ]; unpackPhase = '' runHook preUnpack dpkg-deb --fsys-tarfile $src | tar --extract runHook postUnpack ''; installPhase = '' runHook preInstall mkdir -p $out/{bin,share,lib} cp -r usr/share/* $out/share/ cp -r usr/lib/* $out/lib/ chmod +x $out/lib/cider/Cider runHook postInstall ''; postInstall = '' ${lib.getExe asar} extract $out/lib/cider/resources/app.asar ./cider-build ${lib.getExe asar} pack ./cider-build $out/lib/cider/resources/app.asar rm -rf ./cider-build # Install Widevine CDM for DRM support ln -sf ${widevine-cdm}/share/google/chrome/WidevineCdm $out/lib/cider/ ''; postFixup = '' makeWrapper $out/lib/cider/Cider $out/bin/${pname} \ --add-flags "\$\{NIXOS_OZONE_WL:+\$\{WAYLAND_DISPLAY:+--ozone-platform-hint=auto --enable-features=WaylandWindowDecorations --enable-wayland-ime=true\}\}" \ --add-flags "--no-sandbox --disable-gpu-sandbox" \ --prefix LD_LIBRARY_PATH : "${lib.makeLibraryPath [ libGL ]}" mv $out/share/applications/cider.desktop $out/share/applications/${pname}.desktop substituteInPlace $out/share/applications/${pname}.desktop \ --replace-warn 'Exec=cider' 'Exec=${pname}' \ --replace-warn 'Exec=/usr/lib/cider/Cider' 'Exec=${pname}' install -Dm444 $out/share/pixmaps/cider.png \ $out/share/icons/hicolor/256x256/apps/cider.png rm -r $out/share/pixmaps ''; passthru.updateScript = ./updater.sh; meta = { description = "Powerful music player that allows you listen to your favorite tracks with style"; homepage = "https://cider.sh"; license = lib.licenses.unfree; mainProgram = "cider-2"; maintainers = with lib.maintainers; [ amadejkastelic l0r3v ]; platforms = [ "x86_64-linux" ]; }; }