xcmsdb: refactor and migrate to pkgs/by-name from xorg namespace

Zitrone 90990b93 d7f86e5a

+55 -34
+51
pkgs/by-name/xc/xcmsdb/package.nix
···
··· 1 + { 2 + lib, 3 + stdenv, 4 + fetchurl, 5 + pkg-config, 6 + libx11, 7 + writeScript, 8 + }: 9 + stdenv.mkDerivation (finalAttrs: { 10 + pname = "xcmsdb"; 11 + version = "1.0.7"; 12 + 13 + src = fetchurl { 14 + url = "mirror://xorg/individual/app/xcmsdb-${finalAttrs.version}.tar.xz"; 15 + hash = "sha256-XsQGjkiBh7BeqS7hNiyWt4qQ8ZzMehhExZIdcGJrvDg="; 16 + }; 17 + 18 + strictDeps = true; 19 + 20 + nativeBuildInputs = [ pkg-config ]; 21 + 22 + buildInputs = [ libx11 ]; 23 + 24 + passthru = { 25 + updateScript = writeScript "update-${finalAttrs.pname}" '' 26 + #!/usr/bin/env nix-shell 27 + #!nix-shell -i bash -p common-updater-scripts 28 + version="$(list-directory-versions --pname ${finalAttrs.pname} \ 29 + --url https://xorg.freedesktop.org/releases/individual/app/ \ 30 + | sort -V | tail -n1)" 31 + update-source-version ${finalAttrs.pname} "$version" 32 + ''; 33 + }; 34 + 35 + meta = { 36 + description = "Device Color Characterization utility for X Color Management System"; 37 + longDescription = '' 38 + xcmsdb is used to load, query, or remove Device Color Characterization data stored in 39 + properties on the root window of the screen as specified in section 7, Device Color 40 + Characterization, of the X11 Inter-Client Communication Conventions Manual (ICCCM). 41 + ''; 42 + homepage = "https://gitlab.freedesktop.org/xorg/app/xcmsdb"; 43 + license = with lib.licenses; [ 44 + hpnd 45 + mitOpenGroup 46 + ]; 47 + mainProgram = "xcmsdb"; 48 + maintainers = [ ]; 49 + platforms = lib.platforms.unix; 50 + }; 51 + })
+2 -32
pkgs/servers/x11/xorg/default.nix
··· 22 util-macros, 23 xbitmaps, 24 xcb-proto, 25 xkeyboard-config, 26 xorg-cf-files, 27 xorg-docs, ··· 45 pixman 46 sessreg 47 xbitmaps 48 xorgproto 49 xtrans 50 ; ··· 3954 libXrender 3955 libXt 3956 ]; 3957 - passthru.tests.pkg-config = testers.testMetaPkgConfig finalAttrs.finalPackage; 3958 - meta = { 3959 - pkgConfigModules = [ ]; 3960 - platforms = lib.platforms.unix; 3961 - }; 3962 - }) 3963 - ) { }; 3964 - 3965 - # THIS IS A GENERATED FILE. DO NOT EDIT! 3966 - xcmsdb = callPackage ( 3967 - { 3968 - stdenv, 3969 - pkg-config, 3970 - fetchurl, 3971 - libX11, 3972 - testers, 3973 - }: 3974 - stdenv.mkDerivation (finalAttrs: { 3975 - pname = "xcmsdb"; 3976 - version = "1.0.7"; 3977 - builder = ./builder.sh; 3978 - src = fetchurl { 3979 - url = "mirror://xorg/individual/app/xcmsdb-1.0.7.tar.xz"; 3980 - sha256 = "0f5wddi707cjqm21hynckkqr12mpjqn3dq9fm5gb11w19270di2y"; 3981 - }; 3982 - hardeningDisable = [ 3983 - "bindnow" 3984 - "relro" 3985 - ]; 3986 - strictDeps = true; 3987 - nativeBuildInputs = [ pkg-config ]; 3988 - buildInputs = [ libX11 ]; 3989 passthru.tests.pkg-config = testers.testMetaPkgConfig finalAttrs.finalPackage; 3990 meta = { 3991 pkgConfigModules = [ ];
··· 22 util-macros, 23 xbitmaps, 24 xcb-proto, 25 + xcmsdb, 26 xkeyboard-config, 27 xorg-cf-files, 28 xorg-docs, ··· 46 pixman 47 sessreg 48 xbitmaps 49 + xcmsdb 50 xorgproto 51 xtrans 52 ; ··· 3956 libXrender 3957 libXt 3958 ]; 3959 passthru.tests.pkg-config = testers.testMetaPkgConfig finalAttrs.finalPackage; 3960 meta = { 3961 pkgConfigModules = [ ];
+2
pkgs/servers/x11/xorg/generate-expr-from-tarballs.pl
··· 307 util-macros, 308 xbitmaps, 309 xcb-proto, 310 xkeyboard-config, 311 xorg-cf-files, 312 xorg-docs, ··· 330 pixman 331 sessreg 332 xbitmaps 333 xorgproto 334 xtrans 335 ;
··· 307 util-macros, 308 xbitmaps, 309 xcb-proto, 310 + xcmsdb, 311 xkeyboard-config, 312 xorg-cf-files, 313 xorg-docs, ··· 331 pixman 332 sessreg 333 xbitmaps 334 + xcmsdb 335 xorgproto 336 xtrans 337 ;
-1
pkgs/servers/x11/xorg/overrides.nix
··· 1100 1101 xbacklight = addMainProgram super.xbacklight { }; 1102 xclock = addMainProgram super.xclock { }; 1103 - xcmsdb = addMainProgram super.xcmsdb { }; 1104 xcompmgr = addMainProgram super.xcompmgr { }; 1105 xconsole = addMainProgram super.xconsole { }; 1106 xcursorgen = addMainProgram super.xcursorgen { };
··· 1100 1101 xbacklight = addMainProgram super.xbacklight { }; 1102 xclock = addMainProgram super.xclock { }; 1103 xcompmgr = addMainProgram super.xcompmgr { }; 1104 xconsole = addMainProgram super.xconsole { }; 1105 xcursorgen = addMainProgram super.xcursorgen { };
-1
pkgs/servers/x11/xorg/tarballs.list
··· 23 mirror://xorg/individual/app/xbacklight-1.2.4.tar.xz 24 mirror://xorg/individual/app/xcalc-1.1.2.tar.xz 25 mirror://xorg/individual/app/xclock-1.1.1.tar.xz 26 - mirror://xorg/individual/app/xcmsdb-1.0.7.tar.xz 27 mirror://xorg/individual/app/xcompmgr-1.1.10.tar.xz 28 mirror://xorg/individual/app/xconsole-1.1.0.tar.xz 29 mirror://xorg/individual/app/xcursorgen-1.0.9.tar.xz
··· 23 mirror://xorg/individual/app/xbacklight-1.2.4.tar.xz 24 mirror://xorg/individual/app/xcalc-1.1.2.tar.xz 25 mirror://xorg/individual/app/xclock-1.1.1.tar.xz 26 mirror://xorg/individual/app/xcompmgr-1.1.10.tar.xz 27 mirror://xorg/individual/app/xconsole-1.1.0.tar.xz 28 mirror://xorg/individual/app/xcursorgen-1.0.9.tar.xz