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
|
|
@ -0,0 +1,46 @@
|
|||
{ rustPlatform
|
||||
, cloud-utils
|
||||
, fetchFromGitHub
|
||||
, lib
|
||||
, llvmPackages
|
||||
, pkg-config
|
||||
, util-linux
|
||||
, zfs
|
||||
}:
|
||||
rustPlatform.buildRustPackage rec {
|
||||
pname = "zpool-auto-expand-partitions";
|
||||
version = "0.1.0";
|
||||
|
||||
src = fetchFromGitHub {
|
||||
owner = "DeterminateSystems";
|
||||
repo = "zpool-auto-expand-partitions";
|
||||
rev = "v${version}";
|
||||
hash = "sha256-LA6YO6vv7VCXwFfayQVxVR80niSCo89sG0hqh0wDEh8=";
|
||||
};
|
||||
|
||||
cargoHash = "sha256-5v0fqp8aro+QD/f5VudMREc8RvKQapNAoArcCKMN1Sw=";
|
||||
|
||||
preBuild = ''
|
||||
substituteInPlace src/grow.rs \
|
||||
--replace '"growpart"' '"${cloud-utils}/bin/growpart"'
|
||||
substituteInPlace src/lsblk.rs \
|
||||
--replace '"lsblk"' '"${util-linux}/bin/lsblk"'
|
||||
'';
|
||||
|
||||
nativeBuildInputs = [
|
||||
pkg-config
|
||||
rustPlatform.bindgenHook
|
||||
];
|
||||
|
||||
buildInputs = [
|
||||
util-linux
|
||||
zfs
|
||||
];
|
||||
|
||||
meta = with lib; {
|
||||
description = "A tool that aims to expand all partitions in a specified zpool to fill the available space";
|
||||
homepage = "https://github.com/DeterminateSystems/zpool-auto-expand-partitions";
|
||||
license = licenses.asl20;
|
||||
maintainers = teams.determinatesystems.members;
|
||||
};
|
||||
}
|
||||
Loading…
Add table
Add a link
Reference in a new issue