diff --git a/pkgs/development/libraries/a52dec/default.nix b/pkgs/development/libraries/a52dec/default.nix index 8ed47b91e5de..7cbb36994013 100644 --- a/pkgs/development/libraries/a52dec/default.nix +++ b/pkgs/development/libraries/a52dec/default.nix @@ -1,11 +1,12 @@ {stdenv, fetchurl}: stdenv.mkDerivation rec { - name = "a52dec-0.7.4p4"; + pname = "a52dec"; + version = "0.7.4"; src = fetchurl { - url = "${meta.homepage}/files/a52dec-0.7.4.tar.gz"; - sha256 = "0czccp4fcpf2ykp16xcrzdfmnircz1ynhls334q374xknd5747d2"; + url = "${meta.homepage}/files/${pname}-${version}.tar.gz"; + sha256 = "oh1ySrOzkzMwGUNTaH34LEdbXfuZdRPu9MJd5shl7DM="; }; configureFlags = [ @@ -18,10 +19,10 @@ stdenv.mkDerivation rec { # but it's better to disable tests than loose ASLR on i686 doCheck = !stdenv.isi686; - meta = { + meta = with stdenv.lib; { description = "ATSC A/52 stream decoder"; - homepage = "http://liba52.sourceforge.net/"; - platforms = stdenv.lib.platforms.unix; - license = stdenv.lib.licenses.gpl2; + homepage = "https://liba52.sourceforge.net/"; + platforms = platforms.unix; + license = licenses.gpl2Plus; }; }