aboutsummaryrefslogtreecommitdiff
path: root/pkgs/development/libraries/afflib
diff options
context:
space:
mode:
authorEelco Dolstra <eelco.dolstra@logicblox.com>2014-05-01 10:57:52 +0200
committerEelco Dolstra <eelco.dolstra@logicblox.com>2014-05-01 10:57:52 +0200
commit7e36ddf766783891ebcc50a8c461b316db42f01c (patch)
treed98e04b336551d90fbad0a2184e551735e7c21c8 /pkgs/development/libraries/afflib
parent6c69ad3a97cbf5afeb764afcffa3de0e5622521c (diff)
afflib: Fix broken URL
Also, use stdenv.mkDerivation and drop unusued libewf dependency.
Diffstat (limited to 'pkgs/development/libraries/afflib')
-rw-r--r--pkgs/development/libraries/afflib/default.nix54
1 files changed, 13 insertions, 41 deletions
diff --git a/pkgs/development/libraries/afflib/default.nix b/pkgs/development/libraries/afflib/default.nix
index a5fdafe7914f..7c1c5dfd7b70 100644
--- a/pkgs/development/libraries/afflib/default.nix
+++ b/pkgs/development/libraries/afflib/default.nix
@@ -1,48 +1,20 @@
-x@{builderDefsPackage
- , libewf, zlib, curl, expat, fuse, openssl
- , ...}:
-builderDefsPackage
-(a :
-let
- helperArgNames = ["stdenv" "fetchurl" "builderDefsPackage"] ++
- [];
+{ stdenv, fetchurl, zlib, curl, expat, fuse, openssl }:
- buildInputs = map (n: builtins.getAttr n x)
- (builtins.attrNames (builtins.removeAttrs x helperArgNames));
- sourceInfo = rec {
- baseName="afflib";
- version="3.6.12";
- name="${baseName}-${version}";
- url="http://afflib.org/downloads/${name}.tar.gz";
- hash="1l13nrqjlvad112543qbyvrzai5by43zl96d3miklrhn26q9rs07";
- };
-in
-rec {
- src = a.fetchurl {
- url = sourceInfo.url;
- sha256 = sourceInfo.hash;
+stdenv.mkDerivation rec {
+ name = "afflib-3.6.12";
+
+ src = fetchurl {
+ url = "http://digitalcorpora.org/downloads/afflib/${name}.tar.gz";
+ sha256 = "1l13nrqjlvad112543qbyvrzai5by43zl96d3miklrhn26q9rs07";
};
- inherit (sourceInfo) name version;
- inherit buildInputs;
+ buildInputs = [ zlib curl expat fuse openssl ];
- /* doConfigure should be removed if not needed */
- phaseNames = ["doConfigure" "doMakeInstall"];
-
meta = {
+ homepage = http://afflib.sourceforge.net/;
description = "Advanced forensic format library";
- maintainers = with a.lib.maintainers;
- [
- raskin
- ];
- platforms = with a.lib.platforms;
- linux;
- license = a.lib.licenses.bsdOriginal;
+ platforms = stdenv.lib.platforms.linux;
+ license = stdenv.lib.licenses.bsdOriginal;
+ maintainers = [ stdenv.lib.maintainers.raskin ];
};
- passthru = {
- updateInfo = {
- downloadPage = "http://afflib.org/";
- };
- };
-}) x
-
+}