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:
Anton Arapov 2021-04-03 12:58:10 +02:00 committed by Alan Daniels
commit 56de2bcd43
30691 changed files with 3076956 additions and 0 deletions

View file

@ -0,0 +1,98 @@
{ lib
, asciidoc
, fetchFromGitHub
, gobject-introspection
, gtk3
, installShellFiles
, libappindicator-gtk3
, libnotify
, librsvg
, python3
, udisks2
, wrapGAppsHook
}:
python3.pkgs.buildPythonApplication rec {
pname = "udiskie";
version = "2.4.2";
format = "setuptools";
src = fetchFromGitHub {
owner = "coldfix";
repo = "udiskie";
rev = "v${version}";
hash = "sha256-lQMJVSY3JeZYYOFDyV29Ye2j8r+ngE/ta2wQYipy4hU=";
};
patches = [
./locale-path.patch
];
postPatch = ''
substituteInPlace udiskie/locale.py --subst-var out
'';
nativeBuildInputs = [
asciidoc # Man page
gobject-introspection
installShellFiles
wrapGAppsHook
];
dontWrapGApps = true;
buildInputs = [
gobject-introspection
gtk3
libappindicator-gtk3
libnotify
librsvg # SVG icons
udisks2
];
propagatedBuildInputs = with python3.pkgs; [
docopt
keyutils
pygobject3
pyyaml
];
postBuild = ''
make -C doc
'';
postInstall = ''
installManPage doc/udiskie.8
'';
preFixup = ''
makeWrapperArgs+=("''${gappsWrapperArgs[@]}")
'';
checkInputs = with python3.pkgs; [
pytestCheckHook
];
meta = with lib; {
homepage = "https://github.com/coldfix/udiskie";
changelog = "https://github.com/coldfix/udiskie/blob/${src.rev}/CHANGES.rst";
description = "Removable disk automounter for udisks";
longDescription = ''
udiskie is a udisks2 front-end that allows to manage removeable media such
as CDs or flash drives from userspace.
Its features include:
- automount removable media
- notifications
- tray icon
- command line tools for manual un-/mounting
- LUKS encrypted devices
- unlocking with keyfiles (requires udisks 2.6.4)
- loop devices (mounting iso archives)
- password caching (requires python keyutils 0.3)
'';
license = licenses.mit;
maintainers = with maintainers; [ AndersonTorres dotlambda ];
};
}

View file

@ -0,0 +1,17 @@
diff --git a/udiskie/locale.py b/udiskie/locale.py
index f12bea9..450e38b 100644
--- a/udiskie/locale.py
+++ b/udiskie/locale.py
@@ -10,10 +10,8 @@ from gettext import translation
testdirs = [
# manual override:
os.environ.get('TEXTDOMAINDIR'),
- # editable installation:
- os.path.join(os.path.dirname(__file__), '../build/locale'),
- # user or virtualenv installation:
- os.path.join(sys.prefix, 'share/locale'),
+ # Nix installation:
+ os.path.join('@out@', 'share/locale'),
]
testfile = 'en_US/LC_MESSAGES/udiskie.mo'
localedir = next(