libfs: refactor and migrate to pkgs/by-name from xorg.libFS
This commit is contained in:
@@ -0,0 +1,56 @@
|
||||
{
|
||||
lib,
|
||||
stdenv,
|
||||
fetchurl,
|
||||
pkg-config,
|
||||
xorgproto,
|
||||
xtrans,
|
||||
writeScript,
|
||||
testers,
|
||||
}:
|
||||
stdenv.mkDerivation (finalAttrs: {
|
||||
pname = "libfs";
|
||||
version = "1.0.10";
|
||||
|
||||
src = fetchurl {
|
||||
url = "mirror://xorg/individual/lib/libFS-${finalAttrs.version}.tar.xz";
|
||||
hash = "sha256-m6u9PIYGnJhWPaBEBF/cDs5OwMk9zdLGiqdOs0tPO3c=";
|
||||
};
|
||||
|
||||
strictDeps = true;
|
||||
|
||||
nativeBuildInputs = [ pkg-config ];
|
||||
|
||||
buildInputs = [
|
||||
xorgproto
|
||||
xtrans
|
||||
];
|
||||
|
||||
configureFlags = lib.optional (
|
||||
stdenv.hostPlatform != stdenv.buildPlatform
|
||||
) "--enable-malloc0returnsnull";
|
||||
|
||||
passthru = {
|
||||
updateScript = writeScript "update-${finalAttrs.pname}" ''
|
||||
#!/usr/bin/env nix-shell
|
||||
#!nix-shell -i bash -p common-updater-scripts
|
||||
version="$(list-directory-versions --pname libFS \
|
||||
--url https://xorg.freedesktop.org/releases/individual/lib/ \
|
||||
| sort -V | tail -n1)"
|
||||
update-source-version ${finalAttrs.pname} "$version"
|
||||
'';
|
||||
tests.pkg-config = testers.testMetaPkgConfig finalAttrs.finalPackage;
|
||||
};
|
||||
|
||||
meta = {
|
||||
description = "X Font Service client library";
|
||||
homepage = "https://gitlab.freedesktop.org/xorg/lib/libfs";
|
||||
license = with lib.licenses; [
|
||||
mitOpenGroup
|
||||
hpndSellVariant
|
||||
];
|
||||
maintainers = [ ];
|
||||
pkgConfigModules = [ "libfs" ];
|
||||
platforms = lib.platforms.unix;
|
||||
};
|
||||
})
|
||||
@@ -10,6 +10,7 @@
|
||||
libapplewm,
|
||||
libdmx,
|
||||
libfontenc,
|
||||
libfs,
|
||||
libpciaccess,
|
||||
libpthread-stubs,
|
||||
libx11,
|
||||
@@ -58,6 +59,7 @@ self: with self; {
|
||||
fontalias = font-alias;
|
||||
fontutil = font-util;
|
||||
libAppleWM = libapplewm;
|
||||
libFS = libfs;
|
||||
libpthreadstubs = libpthread-stubs;
|
||||
libX11 = libx11;
|
||||
libXau = libxau;
|
||||
@@ -1705,42 +1707,6 @@ self: with self; {
|
||||
})
|
||||
) { };
|
||||
|
||||
# THIS IS A GENERATED FILE. DO NOT EDIT!
|
||||
libFS = callPackage (
|
||||
{
|
||||
stdenv,
|
||||
pkg-config,
|
||||
fetchurl,
|
||||
xorgproto,
|
||||
xtrans,
|
||||
testers,
|
||||
}:
|
||||
stdenv.mkDerivation (finalAttrs: {
|
||||
pname = "libFS";
|
||||
version = "1.0.10";
|
||||
builder = ./builder.sh;
|
||||
src = fetchurl {
|
||||
url = "mirror://xorg/individual/lib/libFS-1.0.10.tar.xz";
|
||||
sha256 = "0xrv9x5v6km7ib3d5k9xr704xkhfvigh8i507mb9i706hqybvawv";
|
||||
};
|
||||
hardeningDisable = [
|
||||
"bindnow"
|
||||
"relro"
|
||||
];
|
||||
strictDeps = true;
|
||||
nativeBuildInputs = [ pkg-config ];
|
||||
buildInputs = [
|
||||
xorgproto
|
||||
xtrans
|
||||
];
|
||||
passthru.tests.pkg-config = testers.testMetaPkgConfig finalAttrs.finalPackage;
|
||||
meta = {
|
||||
pkgConfigModules = [ "libfs" ];
|
||||
platforms = lib.platforms.unix;
|
||||
};
|
||||
})
|
||||
) { };
|
||||
|
||||
# THIS IS A GENERATED FILE. DO NOT EDIT!
|
||||
libICE = callPackage (
|
||||
{
|
||||
|
||||
@@ -39,6 +39,7 @@ $pcMap{"hwdata"} = "hwdata";
|
||||
$pcMap{"dmx"} = "libdmx";
|
||||
$pcMap{"fontenc"} = "libfontenc";
|
||||
$pcMap{"fontutil"} = "fontutil";
|
||||
$pcMap{"libfs"} = "libFS";
|
||||
$pcMap{"pciaccess"} = "libpciaccess";
|
||||
$pcMap{"pthread-stubs"} = "libpthreadstubs";
|
||||
$pcMap{"x11"} = "libX11";
|
||||
@@ -297,6 +298,7 @@ print OUT <<EOF;
|
||||
libapplewm,
|
||||
libdmx,
|
||||
libfontenc,
|
||||
libfs,
|
||||
libpciaccess,
|
||||
libpthread-stubs,
|
||||
libx11,
|
||||
@@ -345,6 +347,7 @@ self: with self; {
|
||||
fontalias = font-alias;
|
||||
fontutil = font-util;
|
||||
libAppleWM = libapplewm;
|
||||
libFS = libfs;
|
||||
libpthreadstubs = libpthread-stubs;
|
||||
libX11 = libx11;
|
||||
libXau = libxau;
|
||||
|
||||
@@ -179,9 +179,6 @@ self: super:
|
||||
libXxf86misc = super.libXxf86misc.overrideAttrs (attrs: {
|
||||
configureFlags = attrs.configureFlags or [ ] ++ malloc0ReturnsNullCrossFlag;
|
||||
});
|
||||
libFS = super.libFS.overrideAttrs (attrs: {
|
||||
configureFlags = attrs.configureFlags or [ ] ++ malloc0ReturnsNullCrossFlag;
|
||||
});
|
||||
libWindowsWM = super.libWindowsWM.overrideAttrs (attrs: {
|
||||
configureFlags = attrs.configureFlags or [ ] ++ malloc0ReturnsNullCrossFlag;
|
||||
});
|
||||
|
||||
@@ -153,7 +153,6 @@ mirror://xorg/individual/font/font-sony-misc-1.0.4.tar.xz
|
||||
mirror://xorg/individual/font/font-sun-misc-1.0.4.tar.xz
|
||||
mirror://xorg/individual/font/font-winitzki-cyrillic-1.0.4.tar.xz
|
||||
mirror://xorg/individual/font/font-xfree86-type1-1.0.5.tar.xz
|
||||
mirror://xorg/individual/lib/libFS-1.0.10.tar.xz
|
||||
mirror://xorg/individual/lib/libICE-1.1.2.tar.xz
|
||||
mirror://xorg/individual/lib/libSM-1.2.6.tar.xz
|
||||
mirror://xorg/individual/lib/libWindowsWM-1.0.1.tar.bz2
|
||||
|
||||
Reference in New Issue
Block a user