afflib: Fix broken URL
Also, use stdenv.mkDerivation and drop unusued libewf dependency.
This commit is contained in:
parent
6c69ad3a97
commit
7e36ddf766
@ -1,48 +1,20 @@
|
|||||||
x@{builderDefsPackage
|
{ stdenv, fetchurl, zlib, curl, expat, fuse, openssl }:
|
||||||
, libewf, zlib, curl, expat, fuse, openssl
|
|
||||||
, ...}:
|
|
||||||
builderDefsPackage
|
|
||||||
(a :
|
|
||||||
let
|
|
||||||
helperArgNames = ["stdenv" "fetchurl" "builderDefsPackage"] ++
|
|
||||||
[];
|
|
||||||
|
|
||||||
buildInputs = map (n: builtins.getAttr n x)
|
stdenv.mkDerivation rec {
|
||||||
(builtins.attrNames (builtins.removeAttrs x helperArgNames));
|
name = "afflib-3.6.12";
|
||||||
sourceInfo = rec {
|
|
||||||
baseName="afflib";
|
src = fetchurl {
|
||||||
version="3.6.12";
|
url = "http://digitalcorpora.org/downloads/afflib/${name}.tar.gz";
|
||||||
name="${baseName}-${version}";
|
sha256 = "1l13nrqjlvad112543qbyvrzai5by43zl96d3miklrhn26q9rs07";
|
||||||
url="http://afflib.org/downloads/${name}.tar.gz";
|
|
||||||
hash="1l13nrqjlvad112543qbyvrzai5by43zl96d3miklrhn26q9rs07";
|
|
||||||
};
|
|
||||||
in
|
|
||||||
rec {
|
|
||||||
src = a.fetchurl {
|
|
||||||
url = sourceInfo.url;
|
|
||||||
sha256 = sourceInfo.hash;
|
|
||||||
};
|
};
|
||||||
|
|
||||||
inherit (sourceInfo) name version;
|
buildInputs = [ zlib curl expat fuse openssl ];
|
||||||
inherit buildInputs;
|
|
||||||
|
|
||||||
/* doConfigure should be removed if not needed */
|
|
||||||
phaseNames = ["doConfigure" "doMakeInstall"];
|
|
||||||
|
|
||||||
meta = {
|
meta = {
|
||||||
|
homepage = http://afflib.sourceforge.net/;
|
||||||
description = "Advanced forensic format library";
|
description = "Advanced forensic format library";
|
||||||
maintainers = with a.lib.maintainers;
|
platforms = stdenv.lib.platforms.linux;
|
||||||
[
|
license = stdenv.lib.licenses.bsdOriginal;
|
||||||
raskin
|
maintainers = [ stdenv.lib.maintainers.raskin ];
|
||||||
];
|
|
||||||
platforms = with a.lib.platforms;
|
|
||||||
linux;
|
|
||||||
license = a.lib.licenses.bsdOriginal;
|
|
||||||
};
|
};
|
||||||
passthru = {
|
}
|
||||||
updateInfo = {
|
|
||||||
downloadPage = "http://afflib.org/";
|
|
||||||
};
|
|
||||||
};
|
|
||||||
}) x
|
|
||||||
|
|
||||||
|
Loading…
x
Reference in New Issue
Block a user