mirror of
https://github.com/NixOS/nixpkgs.git
synced 2025-07-13 21:50:33 +03:00
fbpanel: reimplement using mkDerivation
This commit is contained in:
parent
fed17b3467
commit
342cf232ea
1 changed files with 18 additions and 41 deletions
|
@ -1,53 +1,30 @@
|
||||||
x@{builderDefsPackage
|
{ stdenv, fetchurl, pkgconfig
|
||||||
, libX11, gtk, pkgconfig, libXmu
|
, libX11, libXmu, libXpm, gtk, libpng, libjpeg, libtiff, librsvg
|
||||||
, libXpm, libpng, libjpeg, libtiff, librsvg
|
}:
|
||||||
, ...}:
|
|
||||||
builderDefsPackage
|
|
||||||
(a :
|
|
||||||
let
|
|
||||||
helperArgNames = ["stdenv" "fetchurl" "builderDefsPackage"] ++
|
|
||||||
[];
|
|
||||||
|
|
||||||
buildInputs = map (n: builtins.getAttr n x)
|
stdenv.mkDerivation rec {
|
||||||
(builtins.attrNames (builtins.removeAttrs x helperArgNames));
|
name = "fbpanel-${version}";
|
||||||
sourceInfo = rec {
|
version = "6.1";
|
||||||
baseName="fbpanel";
|
src = fetchurl {
|
||||||
version="6.1";
|
url = "mirror://sourceforge/fbpanel/${name}.tbz2";
|
||||||
name="${baseName}-${version}";
|
sha256 = "e14542cc81ea06e64dd4708546f5fd3f5e01884c3e4617885c7ef22af8cf3965";
|
||||||
url="mirror://sourceforge/${baseName}/${name}.tbz2";
|
|
||||||
hash="e14542cc81ea06e64dd4708546f5fd3f5e01884c3e4617885c7ef22af8cf3965";
|
|
||||||
};
|
|
||||||
in
|
|
||||||
rec {
|
|
||||||
src = a.fetchurl {
|
|
||||||
url = sourceInfo.url;
|
|
||||||
sha256 = sourceInfo.hash;
|
|
||||||
};
|
};
|
||||||
|
buildInputs =
|
||||||
|
[ pkgconfig libX11 libXmu libXpm gtk libpng libjpeg libtiff librsvg ];
|
||||||
|
|
||||||
inherit (sourceInfo) name version;
|
preConfigure = "patchShebangs .";
|
||||||
inherit buildInputs;
|
|
||||||
|
|
||||||
/* doConfigure should be removed if not needed */
|
NIX_LDFLAGS="-lX11";
|
||||||
phaseNames = ["setVars" "doUnpack" "fixPaths" "doConfigure" "doMakeInstall"];
|
|
||||||
|
|
||||||
fixPaths=(a.doPatchShebangs ".");
|
meta = with stdenv.lib; {
|
||||||
setVars = a.fullDepEntry ''
|
|
||||||
export NIX_LDFLAGS="$NIX_LDFLAGS -lX11"
|
|
||||||
'' [];
|
|
||||||
|
|
||||||
meta = {
|
|
||||||
description = "A stand-alone panel";
|
description = "A stand-alone panel";
|
||||||
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 = "fbpanel.sourceforge.net";
|
downloadPage = "fbpanel.sourceforge.net";
|
||||||
};
|
};
|
||||||
};
|
};
|
||||||
}) x
|
}
|
||||||
|
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue