uboot: (firmwareOdroidC2/C4) don't invoke patch tool, use patches = [] instead
https://github.com/NixOS/nixpkgs/blob/master/pkgs/stdenv/generic/setup.sh#L948 this can do it nicely. Signed-off-by: Anton Arapov <anton@deadbeef.mx>
This commit is contained in:
commit
56de2bcd43
30691 changed files with 3076956 additions and 0 deletions
55
pkgs/tools/filesystems/xfsprogs/default.nix
Normal file
55
pkgs/tools/filesystems/xfsprogs/default.nix
Normal file
|
|
@ -0,0 +1,55 @@
|
|||
{ lib, stdenv, buildPackages, fetchurl, autoconf, automake, gettext, libtool, pkg-config
|
||||
, icu, libuuid, readline, inih, liburcu
|
||||
}:
|
||||
|
||||
stdenv.mkDerivation rec {
|
||||
pname = "xfsprogs";
|
||||
version = "5.16.0";
|
||||
|
||||
src = fetchurl {
|
||||
url = "mirror://kernel/linux/utils/fs/xfs/xfsprogs/${pname}-${version}.tar.xz";
|
||||
hash = "sha256-eLjImZmb1pBEHLU9fAKrZxKUlAMZxpT/fILiPo5Gu58=";
|
||||
};
|
||||
|
||||
outputs = [ "bin" "dev" "out" "doc" ];
|
||||
|
||||
depsBuildBuild = [ buildPackages.stdenv.cc ];
|
||||
nativeBuildInputs = [
|
||||
autoconf automake libtool gettext pkg-config
|
||||
libuuid # codegen tool uses libuuid
|
||||
];
|
||||
buildInputs = [ readline icu inih liburcu ];
|
||||
propagatedBuildInputs = [ libuuid ]; # Dev headers include <uuid/uuid.h>
|
||||
|
||||
enableParallelBuilding = true;
|
||||
|
||||
# @sbindir@ is replaced with /run/current-system/sw/bin to fix dependency cycles
|
||||
preConfigure = ''
|
||||
for file in scrub/{xfs_scrub_all.cron.in,xfs_scrub@.service.in,xfs_scrub_all.service.in}; do
|
||||
substituteInPlace "$file" \
|
||||
--replace '@sbindir@' '/run/current-system/sw/bin'
|
||||
done
|
||||
make configure
|
||||
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
|
||||
'';
|
||||
|
||||
meta = with lib; {
|
||||
homepage = "https://xfs.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 ];
|
||||
};
|
||||
}
|
||||
Loading…
Add table
Add a link
Reference in a new issue