1
0
Fork 1
mirror of https://github.com/NixOS/nixpkgs.git synced 2024-11-25 15:11:35 +00:00

Merge pull request #2654 from iyzsong/libmodplug

libmodplug: update to 0.8.8.5
This commit is contained in:
Rob Vermaas 2014-05-16 09:10:03 +02:00
commit 8a447ed1d5

View file

@ -1,47 +1,20 @@
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="libmodplug";
version="0.8.8.4";
name="${baseName}-${version}";
url="mirror://sourceforge/project/modplug-xmms/${baseName}/${version}/${name}.tar.gz";
hash="1xv44bd84c4qi41i1wwjr6qzazx15l85yvi74sz49ldyvlyy2pjw";
};
in
rec {
src = a.fetchurl {
url = sourceInfo.url;
sha256 = sourceInfo.hash;
let
version = "0.8.8.5";
in stdenv.mkDerivation rec {
name = "libmodplug-${version}";
meta = with stdenv.lib; {
description = "MOD playing library";
homepage = "http://modplug-xmms.sourceforge.net/";
license = licenses.publicDomain;
platforms = platforms.linux;
maintainers = with maintainers; [ raskin ];
};
inherit (sourceInfo) name version;
inherit buildInputs;
/* doConfigure should be removed if not needed */
phaseNames = ["doConfigure" "doMakeInstall"];
meta = {
description = "Music library";
maintainers = with a.lib.maintainers;
[
raskin
];
platforms = with a.lib.platforms;
linux;
license = a.lib.licenses.publicDomain;
src = fetchurl {
url = "mirror://sourceforge/project/modplug-xmms/libmodplug/${version}/${name}.tar.gz";
sha256 = "1bfsladg7h6vnii47dd66f5vh1ir7qv12mfb8n36qiwrxq92sikp";
};
passthru = {
updateInfo = {
downloadPage = "http://sourceforge.net/projects/modplug-xmms/files/libmodplug/";
};
};
}) x
}