windowmaker.dockapps.wmcube: init
This commit is contained in:
parent
d6340f4857
commit
7ae4510daf
2 changed files with 50 additions and 0 deletions
|
@ -21,6 +21,8 @@ lib.makeScope pkgs.newScope (self: {
|
|||
|
||||
wmCalClock = self.callPackage ./wmCalClock.nix { };
|
||||
|
||||
wmcube = self.callPackage ./wmcube.nix { };
|
||||
|
||||
wmsm-app = self.callPackage ./wmsm-app.nix { };
|
||||
|
||||
wmsystemtray = self.callPackage ./wmsystemtray.nix { };
|
||||
|
|
48
pkgs/by-name/wi/windowmaker/dockapps/wmcube.nix
Normal file
48
pkgs/by-name/wi/windowmaker/dockapps/wmcube.nix
Normal file
|
@ -0,0 +1,48 @@
|
|||
{ lib
|
||||
, stdenv
|
||||
, dockapps-sources
|
||||
, libX11
|
||||
, libXpm
|
||||
, libXext
|
||||
, libdockapp
|
||||
}:
|
||||
|
||||
stdenv.mkDerivation (finalAttrs: {
|
||||
pname = "wmcube";
|
||||
|
||||
inherit (dockapps-sources) version src;
|
||||
|
||||
sourceRoot = "${finalAttrs.src.name}/wmcube/wmcube";
|
||||
|
||||
buildInputs = [
|
||||
libX11
|
||||
libXext
|
||||
libXpm
|
||||
libdockapp
|
||||
];
|
||||
|
||||
env.NIX_CFLAGS_COMPILE = "-std=gnu89";
|
||||
|
||||
preBuild = ''
|
||||
makeFlagsArray=(
|
||||
CC="${stdenv.cc.targetPrefix}cc"
|
||||
PREFIX="${placeholder "out"}"
|
||||
VERSION="${finalAttrs.version}"
|
||||
LIBDIR="-L${lib.getLib libX11}/lib -L${lib.getLib libXext}/lib \
|
||||
-L${lib.getLib libXpm}/lib -L${lib.getLib libdockapp}/lib"
|
||||
INCDIR="-I${lib.getDev libX11}/lib -I${lib.getDev libXext}/lib \
|
||||
-I${lib.getDev libXpm}/lib -I${lib.getDev libdockapp}/lib"
|
||||
LIBS="-lm -lXpm -lXext -lX11 -ldockapp"
|
||||
)
|
||||
'';
|
||||
|
||||
preInstall = ''
|
||||
mkdir -pv $out/{bin,doc/wmcube-${finalAttrs.version},share/wmcube,man/man1}
|
||||
'';
|
||||
|
||||
meta = {
|
||||
description = "System monitor for Windowmaker";
|
||||
license = lib.licenses.gpl2Plus;
|
||||
maintainers = [ ];
|
||||
};
|
||||
})
|
Loading…
Reference in a new issue