ised: get rid of builderDefsPackage

This commit is contained in:
Domen Kožar 2014-10-11 18:28:29 +02:00
parent 9ca95f700e
commit 576a5605b8

View File

@ -1,42 +1,17 @@
x@{builderDefsPackage { stdenv, fetchurl }:
, ...}:
builderDefsPackage
(a :
let
helperArgNames = ["stdenv" "fetchurl" "builderDefsPackage"] ++
[];
buildInputs = map (n: builtins.getAttr n x) stdenv.mkDerivation rec {
(builtins.attrNames (builtins.removeAttrs x helperArgNames)); name = "ised-${version}";
sourceInfo = rec { version = "2.6.0";
baseName="ised"; src = fetchurl {
version = "2.6.0"; url = "mirror://sourceforge/project/ised/${name}.tar.bz2";
name="${baseName}-${version}";
url="mirror://sourceforge/project/ised/${name}.tar.bz2";
};
in
rec {
src = a.fetchurl {
url = sourceInfo.url;
sha256 = "0rf9brqkrad8f3czpfc1bxq9ybv3nxci9276wdxas033c82cqkjs"; sha256 = "0rf9brqkrad8f3czpfc1bxq9ybv3nxci9276wdxas033c82cqkjs";
}; };
inherit (sourceInfo) name version;
inherit buildInputs;
/* doConfigure should be removed if not needed */
phaseNames = ["doConfigure" "doMakeInstall"];
meta = { meta = {
description = "A numeric sequence editor"; description = "A numeric sequence editor";
maintainers = with a.lib.maintainers; maintainers = with stdenv.lib.maintainers; [ raskin ];
[ platforms = with stdenv.lib.platforms; linux;
raskin license = stdenv.lib.licenses.gpl3Plus;
];
platforms = with a.lib.platforms;
linux;
license = a.lib.licenses.gpl3Plus;
inherit version;
}; };
}) x }