diff --git a/pkgs/by-name/li/libapplewm/package.nix b/pkgs/by-name/li/libapplewm/package.nix new file mode 100644 index 000000000000..82b2ec2a2a6f --- /dev/null +++ b/pkgs/by-name/li/libapplewm/package.nix @@ -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; + }; +}) diff --git a/pkgs/servers/x11/xorg/default.nix b/pkgs/servers/x11/xorg/default.nix index 40c84a7e3037..f19a2c418bd7 100644 --- a/pkgs/servers/x11/xorg/default.nix +++ b/pkgs/servers/x11/xorg/default.nix @@ -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 ( { diff --git a/pkgs/servers/x11/xorg/generate-expr-from-tarballs.pl b/pkgs/servers/x11/xorg/generate-expr-from-tarballs.pl index 09d6b18544ba..0ee00e602e6d 100755 --- a/pkgs/servers/x11/xorg/generate-expr-from-tarballs.pl +++ b/pkgs/servers/x11/xorg/generate-expr-from-tarballs.pl @@ -292,6 +292,7 @@ print OUT <