mirror of
https://github.com/NixOS/nixpkgs.git
synced 2025-01-19 11:23:29 +00:00
4f0dadbf38
After final improvements to the official formatter implementation, this commit now performs the first treewide reformat of Nix files using it. This is part of the implementation of RFC 166. Only "inactive" files are reformatted, meaning only files that aren't being touched by any PR with activity in the past 2 months. This is to avoid conflicts for PRs that might soon be merged. Later we can do a full treewide reformat to get the rest, which should not cause as many conflicts. A CI check has already been running for some time to ensure that new and already-formatted files are formatted, so the files being reformatted here should also stay formatted. This commit was automatically created and can be verified using nix-builda08b3a4d19
.tar.gz \ --argstr baseRevb32a094368
result/bin/apply-formatting $NIXPKGS_PATH
95 lines
2.1 KiB
Nix
95 lines
2.1 KiB
Nix
{
|
|
lib,
|
|
stdenv,
|
|
buildPackages,
|
|
fetchurl,
|
|
gettext,
|
|
pkg-config,
|
|
icu,
|
|
libuuid,
|
|
readline,
|
|
inih,
|
|
liburcu,
|
|
nixosTests,
|
|
}:
|
|
|
|
stdenv.mkDerivation rec {
|
|
pname = "xfsprogs";
|
|
version = "6.12.0";
|
|
|
|
src = fetchurl {
|
|
url = "mirror://kernel/linux/utils/fs/xfs/xfsprogs/${pname}-${version}.tar.xz";
|
|
hash = "sha256-CDJAckfbeRzHDe+W5+JUvW7fBD3ISoCmLzzNbj3/0yk=";
|
|
};
|
|
|
|
outputs = [
|
|
"bin"
|
|
"dev"
|
|
"out"
|
|
"doc"
|
|
];
|
|
|
|
depsBuildBuild = [ buildPackages.stdenv.cc ];
|
|
nativeBuildInputs = [
|
|
gettext
|
|
pkg-config
|
|
libuuid # codegen tool uses libuuid
|
|
liburcu # required by crc32selftest
|
|
];
|
|
buildInputs = [
|
|
readline
|
|
icu
|
|
inih
|
|
liburcu
|
|
];
|
|
propagatedBuildInputs = [ libuuid ]; # Dev headers include <uuid/uuid.h>
|
|
|
|
enableParallelBuilding = true;
|
|
# Install fails as:
|
|
# make[1]: *** No rule to make target '\', needed by 'kmem.lo'. Stop.
|
|
enableParallelInstalling = false;
|
|
|
|
# @sbindir@ is replaced with /run/current-system/sw/bin to fix dependency cycles
|
|
# and '@pkg_state_dir@' should not point to the nix store, but we cannot use the configure parameter
|
|
# because then it will try to install to /var
|
|
preConfigure = ''
|
|
for file in scrub/*.in; do
|
|
substituteInPlace "$file" \
|
|
--replace-quiet '@sbindir@' '/run/current-system/sw/bin' \
|
|
--replace-quiet '@pkg_state_dir@' '/var'
|
|
done
|
|
patchShebangs ./install-sh
|
|
'';
|
|
|
|
configureFlags = [
|
|
"--disable-lib64"
|
|
"--with-systemd-unit-dir=${placeholder "out"}/lib/systemd/system"
|
|
];
|
|
|
|
installFlags = [ "install-dev" ];
|
|
|
|
# FIXME: forbidden rpath
|
|
postInstall = ''
|
|
find . -type d -name .libs | xargs rm -rf
|
|
'';
|
|
|
|
passthru.tests = {
|
|
inherit (nixosTests.installer) lvm;
|
|
};
|
|
|
|
meta = with lib; {
|
|
homepage = "https://xfs.wiki.kernel.org";
|
|
description = "SGI XFS utilities";
|
|
license = with licenses; [
|
|
gpl2Only
|
|
lgpl21
|
|
gpl3Plus
|
|
]; # see https://git.kernel.org/pub/scm/fs/xfs/xfsprogs-dev.git/tree/debian/copyright
|
|
platforms = platforms.linux;
|
|
maintainers = with maintainers; [
|
|
dezgeg
|
|
ajs124
|
|
];
|
|
};
|
|
}
|