xstdcmap: refactor and move to pkgs/by-name from xorg namespace
This commit is contained in:
@@ -0,0 +1,55 @@
|
||||
{
|
||||
lib,
|
||||
stdenv,
|
||||
fetchurl,
|
||||
pkg-config,
|
||||
xorgproto,
|
||||
libx11,
|
||||
libxmu,
|
||||
writeScript,
|
||||
}:
|
||||
stdenv.mkDerivation (finalAttrs: {
|
||||
pname = "xstdcmap";
|
||||
version = "1.0.5";
|
||||
|
||||
src = fetchurl {
|
||||
url = "mirror://xorg/individual/app/xstdcmap-${finalAttrs.version}.tar.xz";
|
||||
hash = "sha256-NlhH43k5hJnsmtmimcxHoNbn/rqVRt/U5bQiIEtawYA=";
|
||||
};
|
||||
|
||||
strictDeps = true;
|
||||
|
||||
nativeBuildInputs = [ pkg-config ];
|
||||
|
||||
buildInputs = [
|
||||
xorgproto
|
||||
libx11
|
||||
libxmu
|
||||
];
|
||||
|
||||
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/app/ \
|
||||
| sort -V | tail -n1)"
|
||||
update-source-version ${finalAttrs.pname} "$version"
|
||||
'';
|
||||
};
|
||||
|
||||
meta = {
|
||||
description = "X standard colormap utility";
|
||||
longDescription = ''
|
||||
The xstdcmap utility can be used to selectively define standard colormap properties.
|
||||
It is intended to be run from a user's X startup script to create standard colormap
|
||||
definitions in order to facilitate sharing of scarce colormap resources among clients using
|
||||
PseudoColor visuals.
|
||||
'';
|
||||
homepage = "https://gitlab.freedesktop.org/xorg/app/xstdcmap";
|
||||
license = lib.licenses.mitOpenGroup;
|
||||
mainProgram = "xstdcmap";
|
||||
maintainers = [ ];
|
||||
platforms = lib.platforms.unix;
|
||||
};
|
||||
})
|
||||
@@ -85,6 +85,7 @@
|
||||
xset,
|
||||
xsetroot,
|
||||
xsm,
|
||||
xstdcmap,
|
||||
xtrans,
|
||||
xvinfo,
|
||||
xwininfo,
|
||||
@@ -132,6 +133,7 @@ self: with self; {
|
||||
xset
|
||||
xsetroot
|
||||
xsm
|
||||
xstdcmap
|
||||
xtrans
|
||||
xvinfo
|
||||
xwininfo
|
||||
@@ -5438,44 +5440,6 @@ self: with self; {
|
||||
})
|
||||
) { };
|
||||
|
||||
# THIS IS A GENERATED FILE. DO NOT EDIT!
|
||||
xstdcmap = callPackage (
|
||||
{
|
||||
stdenv,
|
||||
pkg-config,
|
||||
fetchurl,
|
||||
libX11,
|
||||
libXmu,
|
||||
xorgproto,
|
||||
testers,
|
||||
}:
|
||||
stdenv.mkDerivation (finalAttrs: {
|
||||
pname = "xstdcmap";
|
||||
version = "1.0.5";
|
||||
builder = ./builder.sh;
|
||||
src = fetchurl {
|
||||
url = "mirror://xorg/individual/app/xstdcmap-1.0.5.tar.xz";
|
||||
sha256 = "1061b95j08mlwpadyilmpbzfgmm08z69k8nrkbn9k11rg7ilfn1n";
|
||||
};
|
||||
hardeningDisable = [
|
||||
"bindnow"
|
||||
"relro"
|
||||
];
|
||||
strictDeps = true;
|
||||
nativeBuildInputs = [ pkg-config ];
|
||||
buildInputs = [
|
||||
libX11
|
||||
libXmu
|
||||
xorgproto
|
||||
];
|
||||
passthru.tests.pkg-config = testers.testMetaPkgConfig finalAttrs.finalPackage;
|
||||
meta = {
|
||||
pkgConfigModules = [ ];
|
||||
platforms = lib.platforms.unix;
|
||||
};
|
||||
})
|
||||
) { };
|
||||
|
||||
# THIS IS A GENERATED FILE. DO NOT EDIT!
|
||||
xtrap = callPackage (
|
||||
{
|
||||
|
||||
@@ -401,6 +401,7 @@ print OUT <<EOF;
|
||||
xset,
|
||||
xsetroot,
|
||||
xsm,
|
||||
xstdcmap,
|
||||
xtrans,
|
||||
xvinfo,
|
||||
xwininfo,
|
||||
@@ -448,6 +449,7 @@ self: with self; {
|
||||
xset
|
||||
xsetroot
|
||||
xsm
|
||||
xstdcmap
|
||||
xtrans
|
||||
xvinfo
|
||||
xwininfo
|
||||
|
||||
@@ -982,7 +982,6 @@ self: super:
|
||||
};
|
||||
});
|
||||
|
||||
xstdcmap = addMainProgram super.xstdcmap { };
|
||||
xwd = addMainProgram super.xwd { };
|
||||
|
||||
# convert Type1 vector fonts to OpenType fonts
|
||||
|
||||
@@ -33,7 +33,6 @@ mirror://xorg/individual/app/xmessage-1.0.7.tar.xz
|
||||
mirror://xorg/individual/app/xmore-1.0.4.tar.xz
|
||||
mirror://xorg/individual/app/xpr-1.2.0.tar.xz
|
||||
mirror://xorg/individual/app/xrdb-1.2.2.tar.xz
|
||||
mirror://xorg/individual/app/xstdcmap-1.0.5.tar.xz
|
||||
mirror://xorg/individual/app/xtrap-1.0.3.tar.bz2
|
||||
mirror://xorg/individual/app/xwd-1.0.9.tar.xz
|
||||
mirror://xorg/individual/driver/xf86-input-evdev-2.11.0.tar.xz
|
||||
|
||||
Reference in New Issue
Block a user