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