libapplewm: refactor and migrate to pkgs/by-name from xorg.libAppleWM
This commit is contained in:
@@ -0,0 +1,57 @@
|
||||
{
|
||||
lib,
|
||||
stdenv,
|
||||
fetchFromGitLab,
|
||||
pkg-config,
|
||||
autoreconfHook,
|
||||
util-macros,
|
||||
xorgproto,
|
||||
libX11,
|
||||
libXext,
|
||||
testers,
|
||||
}:
|
||||
stdenv.mkDerivation (finalAttrs: {
|
||||
pname = "libapplewm";
|
||||
version = "1.4.1-unstable-2021-01-04";
|
||||
|
||||
src = fetchFromGitLab {
|
||||
domain = "gitlab.freedesktop.org";
|
||||
owner = "xorg/lib";
|
||||
repo = "libapplewm";
|
||||
rev = "be972ebc3a97292e7d2b2350eff55ae12df99a42";
|
||||
hash = "sha256-NH9YeOEtnEupqpnsMLC21I+LmCOzT7KnfdzNNWqba/Y=";
|
||||
};
|
||||
|
||||
strictDeps = true;
|
||||
|
||||
nativeBuildInputs = [
|
||||
pkg-config
|
||||
autoreconfHook
|
||||
util-macros
|
||||
];
|
||||
|
||||
buildInputs = [
|
||||
xorgproto
|
||||
libX11
|
||||
libXext
|
||||
];
|
||||
|
||||
passthru = {
|
||||
# updateScript = # no updatescript since we don't use a tagged release (last one was 14 years ago)
|
||||
tests.pkg-config = testers.testMetaPkgConfig finalAttrs.finalPackage;
|
||||
};
|
||||
|
||||
meta = {
|
||||
description = "Xlib-based library for the Apple-WM extension";
|
||||
longDescription = ''
|
||||
AppleWM is a simple library designed to interface with the Apple-WM extension.
|
||||
This extension allows X window managers to better interact with the Mac OS X Aqua user
|
||||
interface when running X11 in a rootless mode.
|
||||
'';
|
||||
homepage = "https://gitlab.freedesktop.org/xorg/lib/libapplewm";
|
||||
license = lib.licenses.mit;
|
||||
maintainers = [ ];
|
||||
pkgConfigModules = [ "applewm" ];
|
||||
platforms = lib.platforms.darwin;
|
||||
};
|
||||
})
|
||||
@@ -7,6 +7,7 @@
|
||||
gccmakedep,
|
||||
ico,
|
||||
imake,
|
||||
libapplewm,
|
||||
libpciaccess,
|
||||
libpthread-stubs,
|
||||
libx11,
|
||||
@@ -52,6 +53,7 @@ self: with self; {
|
||||
;
|
||||
fontalias = font-alias;
|
||||
fontutil = font-util;
|
||||
libAppleWM = libapplewm;
|
||||
libpthreadstubs = libpthread-stubs;
|
||||
libX11 = libx11;
|
||||
libXau = libxau;
|
||||
@@ -1699,44 +1701,6 @@ self: with self; {
|
||||
})
|
||||
) { };
|
||||
|
||||
# THIS IS A GENERATED FILE. DO NOT EDIT!
|
||||
libAppleWM = callPackage (
|
||||
{
|
||||
stdenv,
|
||||
pkg-config,
|
||||
fetchurl,
|
||||
xorgproto,
|
||||
libX11,
|
||||
libXext,
|
||||
testers,
|
||||
}:
|
||||
stdenv.mkDerivation (finalAttrs: {
|
||||
pname = "libAppleWM";
|
||||
version = "be972ebc3a97292e7d2b2350eff55ae12df99a42";
|
||||
builder = ./builder.sh;
|
||||
src = fetchurl {
|
||||
url = "https://gitlab.freedesktop.org/xorg/lib/libAppleWM/-/archive/be972ebc3a97292e7d2b2350eff55ae12df99a42/libAppleWM-be972ebc3a97292e7d2b2350eff55ae12df99a42.tar.bz2";
|
||||
sha256 = "1hrq03pahmrbb05r6a7j7m1nxl65wlfi6d2lwm1kvra63q91f9ph";
|
||||
};
|
||||
hardeningDisable = [
|
||||
"bindnow"
|
||||
"relro"
|
||||
];
|
||||
strictDeps = true;
|
||||
nativeBuildInputs = [ pkg-config ];
|
||||
buildInputs = [
|
||||
xorgproto
|
||||
libX11
|
||||
libXext
|
||||
];
|
||||
passthru.tests.pkg-config = testers.testMetaPkgConfig finalAttrs.finalPackage;
|
||||
meta = {
|
||||
pkgConfigModules = [ "applewm" ];
|
||||
platforms = lib.platforms.unix;
|
||||
};
|
||||
})
|
||||
) { };
|
||||
|
||||
# THIS IS A GENERATED FILE. DO NOT EDIT!
|
||||
libFS = callPackage (
|
||||
{
|
||||
|
||||
@@ -292,6 +292,7 @@ print OUT <<EOF;
|
||||
gccmakedep,
|
||||
ico,
|
||||
imake,
|
||||
libapplewm,
|
||||
libpciaccess,
|
||||
libpthread-stubs,
|
||||
libx11,
|
||||
@@ -337,6 +338,7 @@ self: with self; {
|
||||
;
|
||||
fontalias = font-alias;
|
||||
fontutil = font-util;
|
||||
libAppleWM = libapplewm;
|
||||
libpthreadstubs = libpthread-stubs;
|
||||
libX11 = libx11;
|
||||
libXau = libxau;
|
||||
|
||||
@@ -150,16 +150,6 @@ self: super:
|
||||
|
||||
mkfontdir = xorg.mkfontscale;
|
||||
|
||||
libAppleWM = super.libAppleWM.overrideAttrs (attrs: {
|
||||
nativeBuildInputs = attrs.nativeBuildInputs ++ [
|
||||
autoreconfHook
|
||||
xorg.utilmacros
|
||||
];
|
||||
meta = attrs.meta // {
|
||||
platforms = lib.platforms.darwin;
|
||||
};
|
||||
});
|
||||
|
||||
libXtst = super.libXtst.overrideAttrs (attrs: {
|
||||
meta = attrs.meta // {
|
||||
pkgConfigModules = [ "xtst" ];
|
||||
|
||||
@@ -153,7 +153,6 @@ mirror://xorg/individual/font/font-sony-misc-1.0.4.tar.xz
|
||||
mirror://xorg/individual/font/font-sun-misc-1.0.4.tar.xz
|
||||
mirror://xorg/individual/font/font-winitzki-cyrillic-1.0.4.tar.xz
|
||||
mirror://xorg/individual/font/font-xfree86-type1-1.0.5.tar.xz
|
||||
https://gitlab.freedesktop.org/xorg/lib/libAppleWM/-/archive/be972ebc3a97292e7d2b2350eff55ae12df99a42/libAppleWM-be972ebc3a97292e7d2b2350eff55ae12df99a42.tar.bz2
|
||||
mirror://xorg/individual/lib/libdmx-1.1.5.tar.xz
|
||||
mirror://xorg/individual/lib/libfontenc-1.1.8.tar.xz
|
||||
mirror://xorg/individual/lib/libFS-1.0.10.tar.xz
|
||||
|
||||
Reference in New Issue
Block a user