mirror of
https://github.com/NixOS/nixpkgs.git
synced 2024-12-24 14:43:37 +00:00
736acf668f
Since b2f9cd34e7
("gobject-introspection: use wrapper.nix for the
native package too so we can propagate the dev output"),
gobject-introspection doesn't need to be included in buildInputs when
it's in nativeBuildInputs, as it's propagated from the setup hook.
Removing the build input fixes evaluation in buildPackages when
cross-compiling to platforms that gobject-introspection is unsupported
on, like ghcjs.
Tested building natively on x86_64-linux, in
pkgsCross.aarch64-multiplatform, and in pkgsCross.ghcjs.buildPackages.
98 lines
1.9 KiB
Nix
98 lines
1.9 KiB
Nix
{ 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 = [
|
|
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[@]}")
|
|
'';
|
|
|
|
nativeCheckInputs = 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 ];
|
|
};
|
|
}
|