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
69
pkgs/tools/misc/partition-manager/default.nix
Normal file
69
pkgs/tools/misc/partition-manager/default.nix
Normal file
|
|
@ -0,0 +1,69 @@
|
|||
{ mkDerivation, fetchurl, lib
|
||||
, extra-cmake-modules, kdoctools, wrapGAppsHook
|
||||
, kconfig, kcrash, kinit, kpmcore, polkit-qt
|
||||
, cryptsetup, lvm2, mdadm, smartmontools, systemdMinimal, util-linux
|
||||
, btrfs-progs, dosfstools, e2fsprogs, exfat, f2fs-tools, fatresize, hfsprogs
|
||||
, jfsutils, nilfs-utils, ntfs3g, reiser4progs, reiserfsprogs, udftools, xfsprogs, zfs
|
||||
}:
|
||||
|
||||
let
|
||||
# External programs are resolved by `partition-manager` and then
|
||||
# invoked by `kpmcore_externalcommand` from `kpmcore` as root.
|
||||
# So these packages should be in PATH of `partition-manager`.
|
||||
# https://github.com/KDE/kpmcore/blob/06f15334ecfbe871730a90dbe2b694ba060ee998/src/util/externalcommand_whitelist.h
|
||||
runtimeDeps = lib.makeBinPath [
|
||||
cryptsetup
|
||||
lvm2
|
||||
mdadm
|
||||
smartmontools
|
||||
systemdMinimal
|
||||
util-linux
|
||||
|
||||
btrfs-progs
|
||||
dosfstools
|
||||
e2fsprogs
|
||||
exfat
|
||||
f2fs-tools
|
||||
fatresize
|
||||
hfsprogs
|
||||
jfsutils
|
||||
nilfs-utils
|
||||
ntfs3g
|
||||
reiser4progs
|
||||
reiserfsprogs
|
||||
udftools
|
||||
xfsprogs
|
||||
zfs
|
||||
|
||||
# FIXME: Missing command: tune.exfat hfsck hformat fsck.nilfs2 {fsck,mkfs,debugfs,tunefs}.ocfs2
|
||||
];
|
||||
|
||||
in mkDerivation rec {
|
||||
pname = "partitionmanager";
|
||||
# NOTE: When changing this version, also change the version of `kpmcore`.
|
||||
version = "22.04.0";
|
||||
|
||||
src = fetchurl {
|
||||
url = "mirror://kde/stable/release-service/${version}/src/${pname}-${version}.tar.xz";
|
||||
hash = "sha256-eChn3OkdLHC9pedDBBwszTeTj2l7ky2W79INqvjrkBo=";
|
||||
};
|
||||
|
||||
nativeBuildInputs = [ extra-cmake-modules kdoctools wrapGAppsHook ];
|
||||
|
||||
propagatedBuildInputs = [ kconfig kcrash kinit kpmcore polkit-qt ];
|
||||
|
||||
dontWrapGApps = true;
|
||||
preFixup = ''
|
||||
qtWrapperArgs+=(
|
||||
"''${gappsWrapperArgs[@]}"
|
||||
--prefix PATH : "${runtimeDeps}"
|
||||
)
|
||||
'';
|
||||
|
||||
meta = with lib; {
|
||||
description = "KDE Partition Manager";
|
||||
license = with licenses; [ cc-by-40 cc0 gpl3Plus lgpl3Plus mit ];
|
||||
homepage = "https://www.kde.org/applications/system/kdepartitionmanager/";
|
||||
maintainers = with maintainers; [ peterhoeg oxalica ];
|
||||
};
|
||||
}
|
||||
Loading…
Add table
Add a link
Reference in a new issue