diff --git a/pkgs/by-name/xc/xcursor-themes/package.nix b/pkgs/by-name/xc/xcursor-themes/package.nix new file mode 100644 index 000000000000..628d9b71baf6 --- /dev/null +++ b/pkgs/by-name/xc/xcursor-themes/package.nix @@ -0,0 +1,49 @@ +{ + lib, + stdenv, + fetchurl, + pkg-config, + xcursorgen, + xorgproto, + libxcursor, + writeScript, +}: +stdenv.mkDerivation (finalAttrs: { + pname = "xcursor-themes"; + version = "1.0.7"; + + src = fetchurl { + url = "mirror://xorg/individual/data/xcursor-themes-${finalAttrs.version}.tar.xz"; + hash = "sha256-lbro9Igj2JSgW/Qt+/RTZ0q3296xHivAeehSWtRzeMg="; + }; + + strictDeps = true; + nativeBuildInputs = [ + pkg-config + xcursorgen + ]; + buildInputs = [ + xorgproto + libxcursor + ]; + + configureFlags = [ "--with-cursordir=$(out)/share/icons" ]; + passthru = { + updateScript = writeScript "update-${finalAttrs.pname}" '' + #!/usr/bin/env nix-shell + #!nix-shell -i bash -p common-updater-scripts + version="$(list-directory-versions --pname ${finalAttrs.pname} \ + --url https://xorg.freedesktop.org/releases/individual/data/ \ + | sort -V | tail -n1)" + update-source-version ${finalAttrs.pname} "$version" + ''; + }; + + meta = { + description = "Default set of cursor themes for use with libXcursor."; + homepage = "https://gitlab.freedesktop.org/xorg/data/cursors"; + license = lib.licenses.x11; + maintainers = [ ]; + platforms = lib.platforms.unix; + }; +}) diff --git a/pkgs/servers/x11/xorg/default.nix b/pkgs/servers/x11/xorg/default.nix index 2327ddd5e3e3..55cbd6a08dae 100644 --- a/pkgs/servers/x11/xorg/default.nix +++ b/pkgs/servers/x11/xorg/default.nix @@ -36,6 +36,7 @@ xcb-proto, xcmsdb, xcursorgen, + xcursor-themes, xdriinfo, xkeyboard-config, xlsatoms, @@ -104,6 +105,7 @@ self: with self; { utilmacros = util-macros; xcbproto = xcb-proto; xkeyboardconfig = xkeyboard-config; + xcursorthemes = xcursor-themes; xorgcffiles = xorg-cf-files; xorgdocs = xorg-docs; xorgsgmldoctools = xorg-sgml-doctools; @@ -3648,38 +3650,6 @@ self: with self; { }) ) { }; - # THIS IS A GENERATED FILE. DO NOT EDIT! - xcursorthemes = callPackage ( - { - stdenv, - pkg-config, - fetchurl, - libXcursor, - testers, - }: - stdenv.mkDerivation (finalAttrs: { - pname = "xcursor-themes"; - version = "1.0.7"; - builder = ./builder.sh; - src = fetchurl { - url = "mirror://xorg/individual/data/xcursor-themes-1.0.7.tar.xz"; - sha256 = "1j3qfga5llp8g702n7mivvdvfjk7agsgnbglbfh99n13i3sfiflm"; - }; - hardeningDisable = [ - "bindnow" - "relro" - ]; - strictDeps = true; - nativeBuildInputs = [ pkg-config ]; - buildInputs = [ libXcursor ]; - passthru.tests.pkg-config = testers.testMetaPkgConfig finalAttrs.finalPackage; - meta = { - pkgConfigModules = [ ]; - platforms = lib.platforms.unix; - }; - }) - ) { }; - # THIS IS A GENERATED FILE. DO NOT EDIT! xdm = callPackage ( { diff --git a/pkgs/servers/x11/xorg/generate-expr-from-tarballs.pl b/pkgs/servers/x11/xorg/generate-expr-from-tarballs.pl index 3c5f9bb7b812..dc886549e70f 100755 --- a/pkgs/servers/x11/xorg/generate-expr-from-tarballs.pl +++ b/pkgs/servers/x11/xorg/generate-expr-from-tarballs.pl @@ -329,6 +329,7 @@ print OUT <