appres: refactor and move to pkgs/by-name from xorg namespace (#436276)
This commit is contained in:
@@ -0,0 +1,60 @@
|
||||
{
|
||||
lib,
|
||||
stdenv,
|
||||
fetchurl,
|
||||
pkg-config,
|
||||
meson,
|
||||
ninja,
|
||||
xorgproto,
|
||||
libx11,
|
||||
libxt,
|
||||
writeScript,
|
||||
}:
|
||||
stdenv.mkDerivation (finalAttrs: {
|
||||
pname = "appres";
|
||||
version = "1.0.7";
|
||||
|
||||
src = fetchurl {
|
||||
url = "mirror://xorg/individual/app/appres-${finalAttrs.version}.tar.xz";
|
||||
hash = "sha256-ERSxiSOf2HqNHbQz7ctEhjRtKZEhMrkeru5WZ/E7gZ8=";
|
||||
};
|
||||
|
||||
strictDeps = true;
|
||||
|
||||
nativeBuildInputs = [
|
||||
pkg-config
|
||||
meson
|
||||
ninja
|
||||
];
|
||||
|
||||
buildInputs = [
|
||||
xorgproto
|
||||
libx11
|
||||
libxt
|
||||
];
|
||||
|
||||
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 = "Utility to list X application resource database";
|
||||
longDescription = ''
|
||||
The appres program prints the resources seen by an application (or subhierarchy of an
|
||||
application) with the specified class and instance names.
|
||||
It can be used to determine which resources a particular program will load.
|
||||
'';
|
||||
homepage = "https://gitlab.freedesktop.org/xorg/app/appres";
|
||||
license = lib.licenses.mitOpenGroup;
|
||||
mainProgram = "appres";
|
||||
maintainers = [ ];
|
||||
platforms = lib.platforms.unix;
|
||||
};
|
||||
})
|
||||
@@ -1,6 +1,7 @@
|
||||
# THIS IS A GENERATED FILE. DO NOT EDIT!
|
||||
{
|
||||
lib,
|
||||
appres,
|
||||
bdftopcf,
|
||||
font-adobe-100dpi,
|
||||
font-adobe-75dpi,
|
||||
@@ -113,6 +114,7 @@
|
||||
self: with self; {
|
||||
|
||||
inherit
|
||||
appres
|
||||
bdftopcf
|
||||
gccmakedep
|
||||
ico
|
||||
@@ -222,44 +224,6 @@ self: with self; {
|
||||
xorgdocs = xorg-docs;
|
||||
xorgsgmldoctools = xorg-sgml-doctools;
|
||||
|
||||
# THIS IS A GENERATED FILE. DO NOT EDIT!
|
||||
appres = callPackage (
|
||||
{
|
||||
stdenv,
|
||||
pkg-config,
|
||||
fetchurl,
|
||||
libX11,
|
||||
xorgproto,
|
||||
libXt,
|
||||
testers,
|
||||
}:
|
||||
stdenv.mkDerivation (finalAttrs: {
|
||||
pname = "appres";
|
||||
version = "1.0.7";
|
||||
builder = ./builder.sh;
|
||||
src = fetchurl {
|
||||
url = "mirror://xorg/individual/app/appres-1.0.7.tar.xz";
|
||||
sha256 = "17w17gqnfmpfmqgbjci1j4lnsd468k5yscxl3n6pmn4z4f4v250i";
|
||||
};
|
||||
hardeningDisable = [
|
||||
"bindnow"
|
||||
"relro"
|
||||
];
|
||||
strictDeps = true;
|
||||
nativeBuildInputs = [ pkg-config ];
|
||||
buildInputs = [
|
||||
libX11
|
||||
xorgproto
|
||||
libXt
|
||||
];
|
||||
passthru.tests.pkg-config = testers.testMetaPkgConfig finalAttrs.finalPackage;
|
||||
meta = {
|
||||
pkgConfigModules = [ ];
|
||||
platforms = lib.platforms.unix;
|
||||
};
|
||||
})
|
||||
) { };
|
||||
|
||||
# THIS IS A GENERATED FILE. DO NOT EDIT!
|
||||
bitmap = callPackage (
|
||||
{
|
||||
|
||||
@@ -324,6 +324,7 @@ print OUT <<EOF;
|
||||
# THIS IS A GENERATED FILE. DO NOT EDIT!
|
||||
{
|
||||
lib,
|
||||
appres,
|
||||
bdftopcf,
|
||||
font-adobe-100dpi,
|
||||
font-adobe-75dpi,
|
||||
@@ -436,6 +437,7 @@ print OUT <<EOF;
|
||||
self: with self; {
|
||||
|
||||
inherit
|
||||
appres
|
||||
bdftopcf
|
||||
gccmakedep
|
||||
ico
|
||||
|
||||
@@ -112,16 +112,6 @@ self: super:
|
||||
)
|
||||
) { };
|
||||
|
||||
appres = super.appres.overrideAttrs (attrs: {
|
||||
nativeBuildInputs = attrs.nativeBuildInputs ++ [
|
||||
meson
|
||||
ninja
|
||||
];
|
||||
meta = attrs.meta // {
|
||||
mainProgram = "appres";
|
||||
};
|
||||
});
|
||||
|
||||
bitmap = addMainProgram super.bitmap { };
|
||||
|
||||
editres = super.editres.overrideAttrs (attrs: {
|
||||
|
||||
@@ -1,4 +1,3 @@
|
||||
mirror://xorg/individual/app/appres-1.0.7.tar.xz
|
||||
mirror://xorg/individual/app/bitmap-1.1.1.tar.xz
|
||||
mirror://xorg/individual/app/editres-1.0.9.tar.xz
|
||||
mirror://xorg/individual/app/fonttosfnt-1.2.4.tar.xz
|
||||
|
||||
Reference in New Issue
Block a user