windowmaker.dockapps.libdockapp: refactor

This commit is contained in:
Anderson Torres 2023-10-18 18:36:44 -03:00
parent 4f3caa10b9
commit 1cdcf67319

View file

@ -1,30 +1,36 @@
{ lib, stdenv, dockapps-sources, autoreconfHook, pkg-config
, libX11, libXext, libXpm, mkfontdir, fontutil }:
{ lib
, stdenv
, autoreconfHook
, dockapps-sources
, fontutil
, libX11
, libXext
, libXpm
, mkfontdir
, pkg-config
}:
stdenv.mkDerivation rec {
stdenv.mkDerivation (finalAttrs: {
pname = "libdockapp";
version = "0.7.3";
src = dockapps-sources;
inherit (dockapps-sources) version src;
sourceRoot = "${finalAttrs.src.name}/libdockapp";
nativeBuildInputs = [ autoreconfHook pkg-config ];
buildInputs = [ libX11 libXext libXpm fontutil mkfontdir ];
setSourceRoot = ''
export sourceRoot=$(echo */${pname})
'';
# There is a bug on --with-font
configureFlags = [
"--with-examples=no"
"--with-font=no"
];
meta = with lib; {
meta = {
description = "A library providing a framework for dockapps";
homepage = "https://www.dockapps.net/libdockapp";
license = licenses.gpl2Plus;
maintainers = [ maintainers.bstrik ];
license = lib.licenses.gpl2Plus;
maintainers = [ ];
};
}
})