xcursor-themes: refactor, move to pkgs/by-name and rename from xorg.xcursorthemes
This commit is contained in:
@@ -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;
|
||||
};
|
||||
})
|
||||
@@ -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 (
|
||||
{
|
||||
|
||||
@@ -329,6 +329,7 @@ print OUT <<EOF;
|
||||
xcb-proto,
|
||||
xcmsdb,
|
||||
xcursorgen,
|
||||
xcursor-themes,
|
||||
xdriinfo,
|
||||
xkeyboard-config,
|
||||
xlsatoms,
|
||||
@@ -397,6 +398,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;
|
||||
|
||||
@@ -1027,12 +1027,6 @@ self: super:
|
||||
xcompmgr = addMainProgram super.xcompmgr { };
|
||||
xconsole = addMainProgram super.xconsole { };
|
||||
|
||||
xcursorthemes = super.xcursorthemes.overrideAttrs (attrs: {
|
||||
nativeBuildInputs = attrs.nativeBuildInputs ++ [ xorg.xcursorgen ];
|
||||
buildInputs = attrs.buildInputs ++ [ xorg.xorgproto ];
|
||||
configureFlags = [ "--with-cursordir=$(out)/share/icons" ];
|
||||
});
|
||||
|
||||
xinit =
|
||||
(super.xinit.override {
|
||||
stdenv = if isDarwin then clangStdenv else stdenv;
|
||||
|
||||
@@ -54,7 +54,6 @@ mirror://xorg/individual/app/xstdcmap-1.0.5.tar.xz
|
||||
mirror://xorg/individual/app/xtrap-1.0.3.tar.bz2
|
||||
mirror://xorg/individual/app/xvinfo-1.1.5.tar.xz
|
||||
mirror://xorg/individual/app/xwd-1.0.9.tar.xz
|
||||
mirror://xorg/individual/data/xcursor-themes-1.0.7.tar.xz
|
||||
mirror://xorg/individual/driver/xf86-input-evdev-2.11.0.tar.xz
|
||||
mirror://xorg/individual/driver/xf86-input-joystick-1.6.4.tar.xz
|
||||
mirror://xorg/individual/driver/xf86-input-keyboard-2.1.0.tar.xz
|
||||
|
||||
Reference in New Issue
Block a user