dssi: reimplement using mkDerivation

This commit is contained in:
Joachim Fasting 2015-07-16 03:45:18 +02:00
parent 4229525eac
commit e9fd07c706

View File

@ -1,50 +1,29 @@
x@{builderDefsPackage { stdenv, fetchurl, ladspaH, libjack2, liblo, alsaLib, qt4, libX11, libsndfile, libSM
, ladspaH, libjack2, liblo, alsaLib, qt4, libX11, libsndfile, libSM , libsamplerate, libtool, autoconf, automake, xproto, libICE, pkgconfig
, libsamplerate, libtool, autoconf, automake, xproto, libICE, pkgconfig }:
, ...}:
builderDefsPackage
(a :
let
helperArgNames = ["stdenv" "fetchurl" "builderDefsPackage"] ++
[];
buildInputs = map (n: builtins.getAttr n x) stdenv.mkDerivation rec {
(builtins.attrNames (builtins.removeAttrs x helperArgNames)); name = "dssi-${version}";
sourceInfo = rec { version = "1.1.1";
baseName="dssi";
version="1.1.1"; src = fetchurl {
project="${baseName}"; url = "mirror://sourceforge/project/dssi/dssi/${version}/${name}.tar.gz";
name="${baseName}-${version}"; sha256 = "0kl1hzhb7cykzkrqcqgq1dk4xcgrcxv0jja251aq4z4l783jpj7j";
url="mirror://sourceforge/project/${project}/${baseName}/${version}/${name}.tar.gz";
hash="0kl1hzhb7cykzkrqcqgq1dk4xcgrcxv0jja251aq4z4l783jpj7j";
};
in
rec {
src = a.fetchurl {
url = sourceInfo.url;
sha256 = sourceInfo.hash;
}; };
inherit (sourceInfo) name version; buildInputs =
inherit buildInputs; [ ladspaH libjack2 liblo alsaLib qt4 libX11 libsndfile libSM
libsamplerate libtool autoconf automake xproto libICE pkgconfig
];
/* doConfigure should be removed if not needed */ meta = with stdenv.lib; {
phaseNames = ["doConfigure" "doMakeInstall"];
meta = {
description = "A plugin SDK for virtual instruments"; description = "A plugin SDK for virtual instruments";
maintainers = with a.lib.maintainers; maintainers = with maintainers;
[ [
raskin raskin
]; ];
platforms = with a.lib.platforms; platforms = platforms.linux;
linux; license = licenses.lgpl21;
license = a.lib.licenses.lgpl21; downloadPage = "http://sourceforge.net/projects/dssi/files/dssi/";
}; };
passthru = { }
updateInfo = {
downloadPage = "http://sourceforge.net/projects/dssi/files/dssi/";
};
};
}) x