diff --git a/pkgs/by-name/lo/losslesscut-bin/build-from-appimage.nix b/pkgs/by-name/lo/losslesscut-bin/build-from-appimage.nix index 5aad32368ba78..faf62ceeb2bb2 100644 --- a/pkgs/by-name/lo/losslesscut-bin/build-from-appimage.nix +++ b/pkgs/by-name/lo/losslesscut-bin/build-from-appimage.nix @@ -9,8 +9,6 @@ }: let - pname = "losslesscut"; - src = fetchurl { url = "https://github.com/mifi/lossless-cut/releases/download/v${version}/LosslessCut-linux-x86_64.AppImage"; inherit hash; diff --git a/pkgs/by-name/lo/losslesscut-bin/build-from-dmg.nix b/pkgs/by-name/lo/losslesscut-bin/build-from-dmg.nix index 88b27dc5236dc..c13fc28be9acf 100644 --- a/pkgs/by-name/lo/losslesscut-bin/build-from-dmg.nix +++ b/pkgs/by-name/lo/losslesscut-bin/build-from-dmg.nix @@ -10,17 +10,15 @@ metaCommon ? { }, }: -let - pname = "losslesscut"; +stdenvNoCC.mkDerivation { + inherit pname version; + src = fetchurl { url = "https://github.com/mifi/lossless-cut/releases/download/v${version}/LosslessCut-mac-${ if isAarch64 then "arm64" else "x64" }.dmg"; inherit hash; }; -in -stdenvNoCC.mkDerivation { - inherit pname version src; nativeBuildInputs = [ _7zz ];