diff --git a/pkgs/tools/networking/ripmime/default.nix b/pkgs/tools/networking/ripmime/default.nix index fd5964cb55fc..a0a0efa85baf 100644 --- a/pkgs/tools/networking/ripmime/default.nix +++ b/pkgs/tools/networking/ripmime/default.nix @@ -1,51 +1,29 @@ -x@{builderDefsPackage - - , ...}: -builderDefsPackage -(a : -let - helperArgNames = ["stdenv" "fetchurl" "builderDefsPackage"] ++ - []; +{ stdenv, fetchurl }: - buildInputs = map (n: builtins.getAttr n x) - (builtins.attrNames (builtins.removeAttrs x helperArgNames)); - sourceInfo = rec { - baseName="ripmime"; - version="1.4.0.10"; - name="${baseName}-${version}"; - url="http://www.pldaniels.com/${baseName}/${name}.tar.gz"; - hash="0sj06ibmlzy34n8v0mnlq2gwidy7n2aqcwgjh0xssz3vi941aqc9"; - }; -in -rec { - src = a.fetchurl { - url = sourceInfo.url; - sha256 = sourceInfo.hash; +stdenv.mkDerivation rec { + name = "${pname}-${version}"; + pname = "ripmime"; + version = "1.4.0.10"; + src = fetchurl { + url = "http://www.pldaniels.com/${pname}/${name}.tar.gz"; + sha256 = "0sj06ibmlzy34n8v0mnlq2gwidy7n2aqcwgjh0xssz3vi941aqc9"; }; - inherit (sourceInfo) name version; - inherit buildInputs; - - /* doConfigure should be removed if not needed */ - phaseNames = ["fixTarget" "doMakeInstall"]; - fixTarget = a.fullDepEntry ('' + preInstall = '' sed -i Makefile -e "s@LOCATION=.*@LOCATION=$out@" -e "s@man/man1@share/&@" mkdir -p "$out/bin" "$out/share/man/man1" - '') ["doUnpack" "minInit" "defEnsureDir"]; - - meta = { + ''; + + meta = with stdenv.lib; { description = "Attachment extractor for MIME messages"; - maintainers = with a.lib.maintainers; - [ - raskin - ]; - platforms = with a.lib.platforms; - linux; + maintainers = with maintainers; [ raskin ]; + homepage = http://www.pldaniels.com/ripmime/; + platforms = with platforms; linux; }; + passthru = { updateInfo = { downloadPage = "http://www.pldaniels.com/ripmime/"; }; }; -}) x - +}