mirror of
https://github.com/NixOS/nixpkgs.git
synced 2025-06-09 19:13:26 +03:00
makedepend: refactor and move to pkgs/by-name from xorg namespace
This commit is contained in:
parent
5d7e0e3583
commit
b9625e3465
5 changed files with 47 additions and 33 deletions
43
pkgs/by-name/ma/makedepend/package.nix
Normal file
43
pkgs/by-name/ma/makedepend/package.nix
Normal 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;
|
||||
};
|
||||
})
|
|
@ -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 (
|
||||
{
|
||||
|
|
|
@ -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;
|
||||
|
|
|
@ -613,7 +613,6 @@ self: super:
|
|||
};
|
||||
});
|
||||
|
||||
makedepend = addMainProgram super.makedepend { };
|
||||
mkfontscale = addMainProgram super.mkfontscale { };
|
||||
oclock = addMainProgram super.oclock { };
|
||||
smproxy = addMainProgram super.smproxy { };
|
||||
|
|
|
@ -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
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue