diff --git a/pkgs/misc/emulators/cdemu/base.nix b/pkgs/misc/emulators/cdemu/base.nix index 6db1089a37f5..7c7c370b571d 100644 --- a/pkgs/misc/emulators/cdemu/base.nix +++ b/pkgs/misc/emulators/cdemu/base.nix @@ -1,10 +1,11 @@ { pkgName, version, pkgSha256 }: { lib, stdenv, fetchurl, cmake, pkg-config, buildInputs, drvParams ? {} }: let name = "${pkgName}-${version}"; + ext = if lib.versionAtLeast version "3.2.5" then ".xz" else ".bz2"; in stdenv.mkDerivation ({ inherit name buildInputs; src = fetchurl { - url = "mirror://sourceforge/cdemu/${name}.tar.bz2"; + url = "mirror://sourceforge/cdemu/${name}.tar${ext}"; sha256 = pkgSha256; }; nativeBuildInputs = [ pkg-config cmake ]; @@ -29,7 +30,7 @@ in stdenv.mkDerivation ({ Optical media emulated by CDemu can be mounted within Linux. Automounting is also allowed. ''; - homepage = "http://cdemu.sourceforge.net/"; + homepage = "https://cdemu.sourceforge.io/"; license = licenses.gpl2Plus; platforms = platforms.linux; maintainers = with lib.maintainers; [ bendlas ]; diff --git a/pkgs/misc/emulators/cdemu/libmirage.nix b/pkgs/misc/emulators/cdemu/libmirage.nix index 9813c906befc..0025226d2087 100644 --- a/pkgs/misc/emulators/cdemu/libmirage.nix +++ b/pkgs/misc/emulators/cdemu/libmirage.nix @@ -3,9 +3,9 @@ , pcre, util-linux, libselinux, libsepol }: let pkg = import ./base.nix { - version = "3.2.3"; + version = "3.2.5"; pkgName = "libmirage"; - pkgSha256 = "08mfvqyk3833ksfd47i4j3ppmrw5ry219km6h7lywdh9hm9x14yf"; + pkgSha256 = "0f8i2ha44rykkk3ac2q8zsw3y1zckw6qnf6zvkyrj3qqbzhrf3fm"; }; in callPackage pkg { buildInputs = [ glib libsndfile zlib bzip2 xz libsamplerate intltool ];