mirror of
https://github.com/NixOS/nixpkgs.git
synced 2025-06-09 19:13:26 +03:00
util-macros: refactor, move to pkgs/by-name and rename from xorg.utilmacros
This commit is contained in:
parent
b9625e3465
commit
521809e86f
5 changed files with 59 additions and 41 deletions
55
pkgs/by-name/ut/util-macros/package.nix
Normal file
55
pkgs/by-name/ut/util-macros/package.nix
Normal file
|
@ -0,0 +1,55 @@
|
|||
{
|
||||
lib,
|
||||
stdenv,
|
||||
fetchurl,
|
||||
pkg-config,
|
||||
automake,
|
||||
autoconf,
|
||||
libtool,
|
||||
testers,
|
||||
writeScript,
|
||||
}:
|
||||
stdenv.mkDerivation (finalAttrs: {
|
||||
pname = "util-macros";
|
||||
version = "1.20.2";
|
||||
|
||||
src = fetchurl {
|
||||
url = "mirror://xorg/individual/util/util-macros-${finalAttrs.version}.tar.xz";
|
||||
hash = "sha256-msJp66JPZy19ezV05L5fMz0T8Ep3EjA7GCGypRrILo4=";
|
||||
};
|
||||
|
||||
strictDeps = true;
|
||||
|
||||
nativeBuildInputs = [ pkg-config ];
|
||||
|
||||
# not needed for releases, we propagate the needed tools
|
||||
propagatedNativeBuildInputs = [
|
||||
automake
|
||||
autoconf
|
||||
libtool
|
||||
];
|
||||
|
||||
passthru = {
|
||||
tests.pkg-config = testers.testMetaPkgConfig finalAttrs.finalPackage;
|
||||
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/util/ \
|
||||
| sort -V | tail -n1)"
|
||||
update-source-version ${finalAttrs.pname} "$version"
|
||||
'';
|
||||
};
|
||||
|
||||
meta = {
|
||||
description = "GNU autoconf macros shared across X.Org projects";
|
||||
homepage = "https://gitlab.freedesktop.org/xorg/util/macros";
|
||||
license = with lib.licenses; [
|
||||
hpndSellVariant
|
||||
mit
|
||||
];
|
||||
maintainers = [ ];
|
||||
pkgConfigModules = [ "xorg-macros" ];
|
||||
platforms = lib.platforms.unix;
|
||||
};
|
||||
})
|
|
@ -10,6 +10,7 @@
|
|||
luit,
|
||||
makedepend,
|
||||
pixman,
|
||||
util-macros,
|
||||
}:
|
||||
|
||||
self: with self; {
|
||||
|
@ -25,6 +26,7 @@ self: with self; {
|
|||
fontalias = font-alias;
|
||||
fontutil = font-util;
|
||||
libpthreadstubs = libpthread-stubs;
|
||||
utilmacros = util-macros;
|
||||
|
||||
# THIS IS A GENERATED FILE. DO NOT EDIT!
|
||||
appres = callPackage (
|
||||
|
@ -3701,37 +3703,6 @@ self: with self; {
|
|||
})
|
||||
) { };
|
||||
|
||||
# THIS IS A GENERATED FILE. DO NOT EDIT!
|
||||
utilmacros = callPackage (
|
||||
{
|
||||
stdenv,
|
||||
pkg-config,
|
||||
fetchurl,
|
||||
testers,
|
||||
}:
|
||||
stdenv.mkDerivation (finalAttrs: {
|
||||
pname = "util-macros";
|
||||
version = "1.20.2";
|
||||
builder = ./builder.sh;
|
||||
src = fetchurl {
|
||||
url = "mirror://xorg/individual/util/util-macros-1.20.2.tar.xz";
|
||||
sha256 = "13ifr0dabci130xk04kp9bq16g9kbyzf8x1mgdyjsrsglbmnkhls";
|
||||
};
|
||||
hardeningDisable = [
|
||||
"bindnow"
|
||||
"relro"
|
||||
];
|
||||
strictDeps = true;
|
||||
nativeBuildInputs = [ pkg-config ];
|
||||
buildInputs = [ ];
|
||||
passthru.tests.pkg-config = testers.testMetaPkgConfig finalAttrs.finalPackage;
|
||||
meta = {
|
||||
pkgConfigModules = [ "xorg-macros" ];
|
||||
platforms = lib.platforms.unix;
|
||||
};
|
||||
})
|
||||
) { };
|
||||
|
||||
# THIS IS A GENERATED FILE. DO NOT EDIT!
|
||||
viewres = callPackage (
|
||||
{
|
||||
|
|
|
@ -272,6 +272,7 @@ print OUT <<EOF;
|
|||
luit,
|
||||
makedepend,
|
||||
pixman,
|
||||
util-macros,
|
||||
}:
|
||||
|
||||
self: with self; {
|
||||
|
@ -287,6 +288,7 @@ self: with self; {
|
|||
fontalias = font-alias;
|
||||
fontutil = font-util;
|
||||
libpthreadstubs = libpthread-stubs;
|
||||
utilmacros = util-macros;
|
||||
|
||||
EOF
|
||||
|
||||
|
|
|
@ -618,15 +618,6 @@ self: super:
|
|||
smproxy = addMainProgram super.smproxy { };
|
||||
transset = addMainProgram super.transset { };
|
||||
|
||||
utilmacros = super.utilmacros.overrideAttrs (attrs: {
|
||||
# not needed for releases, we propagate the needed tools
|
||||
propagatedNativeBuildInputs = attrs.propagatedNativeBuildInputs or [ ] ++ [
|
||||
automake
|
||||
autoconf
|
||||
libtool
|
||||
];
|
||||
});
|
||||
|
||||
viewres = addMainProgram super.viewres { };
|
||||
|
||||
x11perf = super.x11perf.overrideAttrs (attrs: {
|
||||
|
|
|
@ -208,6 +208,5 @@ mirror://xorg/individual/proto/xorgproto-2024.1.tar.xz
|
|||
mirror://xorg/individual/util/bdftopcf-1.1.2.tar.xz
|
||||
mirror://xorg/individual/util/imake-1.0.10.tar.xz
|
||||
mirror://xorg/individual/util/lndir-1.0.5.tar.xz
|
||||
mirror://xorg/individual/util/util-macros-1.20.2.tar.xz
|
||||
mirror://xorg/individual/util/xorg-cf-files-1.0.8.tar.xz
|
||||
mirror://xorg/individual/xserver/xorg-server-21.1.16.tar.xz
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue