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
51
pkgs/tools/filesystems/nilfs-utils/default.nix
Normal file
51
pkgs/tools/filesystems/nilfs-utils/default.nix
Normal file
|
|
@ -0,0 +1,51 @@
|
|||
{ lib, stdenv, fetchFromGitHub, fetchpatch, autoreconfHook, libuuid, libselinux
|
||||
, e2fsprogs }:
|
||||
|
||||
stdenv.mkDerivation rec {
|
||||
pname = "nilfs-utils";
|
||||
version = "2.2.8";
|
||||
|
||||
src = fetchFromGitHub {
|
||||
owner = "nilfs-dev";
|
||||
repo = pname;
|
||||
rev = "v${version}";
|
||||
sha256 = "094mw7dsyppyiyzfdnf3f5hlkrh4bidk1kvvpn1kcvw5vn2xpfk7";
|
||||
};
|
||||
|
||||
nativeBuildInputs = [ autoreconfHook ];
|
||||
|
||||
buildInputs = [ libuuid libselinux ];
|
||||
|
||||
postPatch = ''
|
||||
# Fix up hardcoded paths.
|
||||
substituteInPlace lib/cleaner_exec.c --replace /sbin/ $out/bin/
|
||||
substituteInPlace sbin/mkfs/mkfs.c --replace /sbin/ ${lib.getBin e2fsprogs}/bin/
|
||||
'';
|
||||
|
||||
# According to upstream, libmount should be detected automatically but the
|
||||
# build system fails to do this. This is likely a bug with their build system
|
||||
# hence it is explicitly enabled here.
|
||||
configureFlags = [ "--with-libmount" ];
|
||||
|
||||
installFlags = [
|
||||
"sysconfdir=${placeholder "out"}/etc"
|
||||
"root_sbindir=${placeholder "out"}/sbin"
|
||||
];
|
||||
|
||||
# FIXME: https://github.com/NixOS/patchelf/pull/98 is in, but stdenv
|
||||
# still doesn't use it
|
||||
#
|
||||
# To make sure patchelf doesn't mistakenly keep the reference via
|
||||
# build directory
|
||||
postInstall = ''
|
||||
find . -name .libs -exec rm -rf -- {} +
|
||||
'';
|
||||
|
||||
meta = with lib; {
|
||||
description = "NILFS utilities";
|
||||
maintainers = [ maintainers.raskin ];
|
||||
platforms = platforms.linux;
|
||||
license = with licenses; [ gpl2 lgpl21 ];
|
||||
downloadPage = "http://nilfs.sourceforge.net/en/download.html";
|
||||
};
|
||||
}
|
||||
Loading…
Add table
Add a link
Reference in a new issue