stalonetray: reimplement using mkDerivation
This commit is contained in:
parent
38196171e8
commit
fed17b3467
@ -1,47 +1,23 @@
|
|||||||
x@{builderDefsPackage
|
{ stdenv, fetchurl, libX11, xproto }:
|
||||||
, libX11, xproto
|
|
||||||
, ...}:
|
|
||||||
builderDefsPackage
|
|
||||||
(a :
|
|
||||||
let
|
|
||||||
helperArgNames = ["stdenv" "fetchurl" "builderDefsPackage"] ++
|
|
||||||
[];
|
|
||||||
|
|
||||||
buildInputs = map (n: builtins.getAttr n x)
|
stdenv.mkDerivation rec {
|
||||||
(builtins.attrNames (builtins.removeAttrs x helperArgNames));
|
name = "stalonetray-${version}";
|
||||||
sourceInfo = rec {
|
version = "0.8.1";
|
||||||
baseName="stalonetray";
|
src = fetchurl {
|
||||||
version="0.8.1";
|
url = "mirror://sourceforge/stalonetray/${name}.tar.bz2";
|
||||||
name="${baseName}-${version}";
|
sha256 = "1wp8pnlv34w7xizj1vivnc3fkwqq4qgb9dbrsg15598iw85gi8ll";
|
||||||
url="mirror://sourceforge/${baseName}/${name}.tar.bz2";
|
|
||||||
hash="1wp8pnlv34w7xizj1vivnc3fkwqq4qgb9dbrsg15598iw85gi8ll";
|
|
||||||
};
|
|
||||||
in
|
|
||||||
rec {
|
|
||||||
src = a.fetchurl {
|
|
||||||
url = sourceInfo.url;
|
|
||||||
sha256 = sourceInfo.hash;
|
|
||||||
};
|
};
|
||||||
|
buildInputs = [ libX11 xproto ];
|
||||||
|
|
||||||
inherit (sourceInfo) name version;
|
meta = with stdenv.lib; {
|
||||||
inherit buildInputs;
|
|
||||||
|
|
||||||
/* doConfigure should be removed if not needed */
|
|
||||||
phaseNames = ["doConfigure" "doMakeInstall"];
|
|
||||||
|
|
||||||
meta = {
|
|
||||||
description = "Stand alone tray";
|
description = "Stand alone tray";
|
||||||
maintainers = with a.lib.maintainers;
|
maintainers = with maintainers; [ raskin ];
|
||||||
[
|
platforms = with platforms; linux;
|
||||||
raskin
|
|
||||||
];
|
|
||||||
platforms = with a.lib.platforms;
|
|
||||||
linux;
|
|
||||||
};
|
};
|
||||||
|
|
||||||
passthru = {
|
passthru = {
|
||||||
updateInfo = {
|
updateInfo = {
|
||||||
downloadPage = "http://sourceforge.net/projects/stalonetray/files/";
|
downloadPage = "http://sourceforge.net/projects/stalonetray/files/";
|
||||||
};
|
};
|
||||||
};
|
};
|
||||||
}) x
|
}
|
||||||
|
|
||||||
|
Loading…
x
Reference in New Issue
Block a user