makedepend: refactor and move to pkgs/by-name from xorg namespace

This commit is contained in:
Zitrone 2025-04-11 15:25:08 +02:00
parent 5d7e0e3583
commit b9625e3465
No known key found for this signature in database
5 changed files with 47 additions and 33 deletions

View file

@ -0,0 +1,43 @@
{
lib,
stdenv,
fetchurl,
pkg-config,
writeScript,
}:
stdenv.mkDerivation (finalAttrs: {
pname = "makedepend";
version = "1.0.9";
src = fetchurl {
url = "mirror://xorg/individual/util/makedepend-${finalAttrs.version}.tar.xz";
hash = "sha256-ktDetln/9tjdvB0n/EyozrK22+Fdc/CgTtwJ8cV4LdQ=";
};
strictDeps = true;
nativeBuildInputs = [ pkg-config ];
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/util/ \
| sort -V | tail -n1)"
update-source-version ${finalAttrs.pname} "$version"
'';
};
meta = {
description = "parse C sources to make dependency lists for Makefiles";
homepage = "https://gitlab.freedesktop.org/xorg/util/makedepend";
license = with lib.licenses; [
mitOpenGroup
hpnd
];
mainProgram = "makedepend";
maintainers = [ ];
platforms = lib.platforms.unix;
};
})

View file

@ -8,6 +8,7 @@
libpthread-stubs,
libxcvt,
luit,
makedepend,
pixman,
}:
@ -18,6 +19,7 @@ self: with self; {
libpciaccess
libxcvt
luit
makedepend
pixman
;
fontalias = font-alias;
@ -3419,37 +3421,6 @@ self: with self; {
})
) { };
# THIS IS A GENERATED FILE. DO NOT EDIT!
makedepend = callPackage (
{
stdenv,
pkg-config,
fetchurl,
testers,
}:
stdenv.mkDerivation (finalAttrs: {
pname = "makedepend";
version = "1.0.9";
builder = ./builder.sh;
src = fetchurl {
url = "mirror://xorg/individual/util/makedepend-1.0.9.tar.xz";
sha256 = "1m1dg32z22fw9shg0wsxw7dvdcnfm16gq9qxpkfxixpzb6vdxl4j";
};
hardeningDisable = [
"bindnow"
"relro"
];
strictDeps = true;
nativeBuildInputs = [ pkg-config ];
buildInputs = [ ];
passthru.tests.pkg-config = testers.testMetaPkgConfig finalAttrs.finalPackage;
meta = {
pkgConfigModules = [ ];
platforms = lib.platforms.unix;
};
})
) { };
# THIS IS A GENERATED FILE. DO NOT EDIT!
mkfontscale = callPackage (
{

View file

@ -270,6 +270,7 @@ print OUT <<EOF;
libpthread-stubs,
libxcvt,
luit,
makedepend,
pixman,
}:
@ -280,6 +281,7 @@ self: with self; {
libpciaccess
libxcvt
luit
makedepend
pixman
;
fontalias = font-alias;

View file

@ -613,7 +613,6 @@ self: super:
};
});
makedepend = addMainProgram super.makedepend { };
mkfontscale = addMainProgram super.mkfontscale { };
oclock = addMainProgram super.oclock { };
smproxy = addMainProgram super.smproxy { };

View file

@ -208,7 +208,6 @@ 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/makedepend-1.0.9.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