libdwarf: sha512 → hash

This commit is contained in:
nicoo 2023-09-15 16:26:04 +00:00 committed by Weijia Wang
parent 6b2889e87a
commit a6530e859b
3 changed files with 4 additions and 4 deletions

View file

@ -2,7 +2,7 @@
callPackage ./common.nix rec {
version = "20210528";
url = "https://www.prevanders.net/libdwarf-${version}.tar.gz";
sha512 = "e0f9c88554053ee6c1b1333960891189e7820c4a4ddc302b7e63754a4cdcfc2acb1b4b6083a722d1204a75e994fff3401ecc251b8c3b24090f8cb4046d90f870";
hash = "sha512-4PnIhVQFPubBsTM5YIkRieeCDEpN3DArfmN1Skzc/CrLG0tgg6ci0SBKdemU//NAHswlG4w7JAkPjLQEbZD4cA==";
buildInputs = [ zlib libelf ];
knownVulnerabilities = [ "CVE-2022-32200" "CVE-2022-39170" ];
}

View file

@ -1,11 +1,11 @@
{ lib, stdenv, fetchurl, buildInputs, sha512, version, libelf, url, knownVulnerabilities }:
{ lib, stdenv, fetchurl, buildInputs, hash, version, libelf, url, knownVulnerabilities }:
stdenv.mkDerivation rec {
pname = "libdwarf";
inherit version;
src = fetchurl {
inherit url sha512;
inherit url hash;
};
configureFlags = [ "--enable-shared" "--disable-nonshared" ];

View file

@ -2,7 +2,7 @@
callPackage ./common.nix rec {
version = "0.4.2";
url = "https://www.prevanders.net/libdwarf-${version}.tar.xz";
sha512 = "6d2a3ebf0104362dd9cecec272935684f977db119810eea0eec88c9f56a042f260a4f6ed3bbabde8592fe16f98cbd81b4ab2878005140e05c8f475df6380d1c2";
hash = "sha512-bSo+vwEENi3Zzs7CcpNWhPl32xGYEO6g7siMn1agQvJgpPbtO7q96Fkv4W+Yy9gbSrKHgAUUDgXI9HXfY4DRwg==";
buildInputs = [ zlib ];
knownVulnerabilities = [];
}