Skip to content

Commit

Permalink
losslesscut: cleaup derivation
Browse files Browse the repository at this point in the history
  • Loading branch information
petrzjunior committed Jan 12, 2025
1 parent b30fb48 commit ffa605a
Show file tree
Hide file tree
Showing 2 changed files with 3 additions and 7 deletions.
2 changes: 0 additions & 2 deletions pkgs/by-name/lo/losslesscut-bin/build-from-appimage.nix
Original file line number Diff line number Diff line change
Expand Up @@ -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;
Expand Down
8 changes: 3 additions & 5 deletions pkgs/by-name/lo/losslesscut-bin/build-from-dmg.nix
Original file line number Diff line number Diff line change
Expand Up @@ -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 ];

Expand Down

0 comments on commit ffa605a

Please sign in to comment.