xcursor-themes: refactor, move to pkgs/by-name and rename from xorg.xcursorthemes

+53 -39
+49
pkgs/by-name/xc/xcursor-themes/package.nix
···
··· 1 + { 2 + lib, 3 + stdenv, 4 + fetchurl, 5 + pkg-config, 6 + xcursorgen, 7 + xorgproto, 8 + libxcursor, 9 + writeScript, 10 + }: 11 + stdenv.mkDerivation (finalAttrs: { 12 + pname = "xcursor-themes"; 13 + version = "1.0.7"; 14 + 15 + src = fetchurl { 16 + url = "mirror://xorg/individual/data/xcursor-themes-${finalAttrs.version}.tar.xz"; 17 + hash = "sha256-lbro9Igj2JSgW/Qt+/RTZ0q3296xHivAeehSWtRzeMg="; 18 + }; 19 + 20 + strictDeps = true; 21 + nativeBuildInputs = [ 22 + pkg-config 23 + xcursorgen 24 + ]; 25 + buildInputs = [ 26 + xorgproto 27 + libxcursor 28 + ]; 29 + 30 + configureFlags = [ "--with-cursordir=$(out)/share/icons" ]; 31 + passthru = { 32 + updateScript = writeScript "update-${finalAttrs.pname}" '' 33 + #!/usr/bin/env nix-shell 34 + #!nix-shell -i bash -p common-updater-scripts 35 + version="$(list-directory-versions --pname ${finalAttrs.pname} \ 36 + --url https://xorg.freedesktop.org/releases/individual/data/ \ 37 + | sort -V | tail -n1)" 38 + update-source-version ${finalAttrs.pname} "$version" 39 + ''; 40 + }; 41 + 42 + meta = { 43 + description = "Default set of cursor themes for use with libXcursor."; 44 + homepage = "https://gitlab.freedesktop.org/xorg/data/cursors"; 45 + license = lib.licenses.x11; 46 + maintainers = [ ]; 47 + platforms = lib.platforms.unix; 48 + }; 49 + })
+2 -32
pkgs/servers/x11/xorg/default.nix
··· 36 xcb-proto, 37 xcmsdb, 38 xcursorgen, 39 xdriinfo, 40 xkeyboard-config, 41 xlsatoms, ··· 104 utilmacros = util-macros; 105 xcbproto = xcb-proto; 106 xkeyboardconfig = xkeyboard-config; 107 xorgcffiles = xorg-cf-files; 108 xorgdocs = xorg-docs; 109 xorgsgmldoctools = xorg-sgml-doctools; ··· 3640 xorgproto 3641 libXt 3642 ]; 3643 - passthru.tests.pkg-config = testers.testMetaPkgConfig finalAttrs.finalPackage; 3644 - meta = { 3645 - pkgConfigModules = [ ]; 3646 - platforms = lib.platforms.unix; 3647 - }; 3648 - }) 3649 - ) { }; 3650 - 3651 - # THIS IS A GENERATED FILE. DO NOT EDIT! 3652 - xcursorthemes = callPackage ( 3653 - { 3654 - stdenv, 3655 - pkg-config, 3656 - fetchurl, 3657 - libXcursor, 3658 - testers, 3659 - }: 3660 - stdenv.mkDerivation (finalAttrs: { 3661 - pname = "xcursor-themes"; 3662 - version = "1.0.7"; 3663 - builder = ./builder.sh; 3664 - src = fetchurl { 3665 - url = "mirror://xorg/individual/data/xcursor-themes-1.0.7.tar.xz"; 3666 - sha256 = "1j3qfga5llp8g702n7mivvdvfjk7agsgnbglbfh99n13i3sfiflm"; 3667 - }; 3668 - hardeningDisable = [ 3669 - "bindnow" 3670 - "relro" 3671 - ]; 3672 - strictDeps = true; 3673 - nativeBuildInputs = [ pkg-config ]; 3674 - buildInputs = [ libXcursor ]; 3675 passthru.tests.pkg-config = testers.testMetaPkgConfig finalAttrs.finalPackage; 3676 meta = { 3677 pkgConfigModules = [ ];
··· 36 xcb-proto, 37 xcmsdb, 38 xcursorgen, 39 + xcursor-themes, 40 xdriinfo, 41 xkeyboard-config, 42 xlsatoms, ··· 105 utilmacros = util-macros; 106 xcbproto = xcb-proto; 107 xkeyboardconfig = xkeyboard-config; 108 + xcursorthemes = xcursor-themes; 109 xorgcffiles = xorg-cf-files; 110 xorgdocs = xorg-docs; 111 xorgsgmldoctools = xorg-sgml-doctools; ··· 3642 xorgproto 3643 libXt 3644 ]; 3645 passthru.tests.pkg-config = testers.testMetaPkgConfig finalAttrs.finalPackage; 3646 meta = { 3647 pkgConfigModules = [ ];
+2
pkgs/servers/x11/xorg/generate-expr-from-tarballs.pl
··· 329 xcb-proto, 330 xcmsdb, 331 xcursorgen, 332 xdriinfo, 333 xkeyboard-config, 334 xlsatoms, ··· 397 utilmacros = util-macros; 398 xcbproto = xcb-proto; 399 xkeyboardconfig = xkeyboard-config; 400 xorgcffiles = xorg-cf-files; 401 xorgdocs = xorg-docs; 402 xorgsgmldoctools = xorg-sgml-doctools;
··· 329 xcb-proto, 330 xcmsdb, 331 xcursorgen, 332 + xcursor-themes, 333 xdriinfo, 334 xkeyboard-config, 335 xlsatoms, ··· 398 utilmacros = util-macros; 399 xcbproto = xcb-proto; 400 xkeyboardconfig = xkeyboard-config; 401 + xcursorthemes = xcursor-themes; 402 xorgcffiles = xorg-cf-files; 403 xorgdocs = xorg-docs; 404 xorgsgmldoctools = xorg-sgml-doctools;
-6
pkgs/servers/x11/xorg/overrides.nix
··· 1027 xcompmgr = addMainProgram super.xcompmgr { }; 1028 xconsole = addMainProgram super.xconsole { }; 1029 1030 - xcursorthemes = super.xcursorthemes.overrideAttrs (attrs: { 1031 - nativeBuildInputs = attrs.nativeBuildInputs ++ [ xorg.xcursorgen ]; 1032 - buildInputs = attrs.buildInputs ++ [ xorg.xorgproto ]; 1033 - configureFlags = [ "--with-cursordir=$(out)/share/icons" ]; 1034 - }); 1035 - 1036 xinit = 1037 (super.xinit.override { 1038 stdenv = if isDarwin then clangStdenv else stdenv;
··· 1027 xcompmgr = addMainProgram super.xcompmgr { }; 1028 xconsole = addMainProgram super.xconsole { }; 1029 1030 xinit = 1031 (super.xinit.override { 1032 stdenv = if isDarwin then clangStdenv else stdenv;
-1
pkgs/servers/x11/xorg/tarballs.list
··· 54 mirror://xorg/individual/app/xtrap-1.0.3.tar.bz2 55 mirror://xorg/individual/app/xvinfo-1.1.5.tar.xz 56 mirror://xorg/individual/app/xwd-1.0.9.tar.xz 57 - mirror://xorg/individual/data/xcursor-themes-1.0.7.tar.xz 58 mirror://xorg/individual/driver/xf86-input-evdev-2.11.0.tar.xz 59 mirror://xorg/individual/driver/xf86-input-joystick-1.6.4.tar.xz 60 mirror://xorg/individual/driver/xf86-input-keyboard-2.1.0.tar.xz
··· 54 mirror://xorg/individual/app/xtrap-1.0.3.tar.bz2 55 mirror://xorg/individual/app/xvinfo-1.1.5.tar.xz 56 mirror://xorg/individual/app/xwd-1.0.9.tar.xz 57 mirror://xorg/individual/driver/xf86-input-evdev-2.11.0.tar.xz 58 mirror://xorg/individual/driver/xf86-input-joystick-1.6.4.tar.xz 59 mirror://xorg/individual/driver/xf86-input-keyboard-2.1.0.tar.xz