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
62
pkgs/tools/security/pass/extensions/import.nix
Normal file
62
pkgs/tools/security/pass/extensions/import.nix
Normal file
|
|
@ -0,0 +1,62 @@
|
|||
{ lib
|
||||
, fetchFromGitHub
|
||||
, fetchpatch
|
||||
, python3Packages
|
||||
, gnupg
|
||||
, pass
|
||||
, makeWrapper
|
||||
}:
|
||||
|
||||
python3Packages.buildPythonApplication rec {
|
||||
pname = "pass-import";
|
||||
version = "3.2";
|
||||
|
||||
src = fetchFromGitHub {
|
||||
owner = "roddhjav";
|
||||
repo = "pass-import";
|
||||
rev = "v${version}";
|
||||
sha256 = "0hrpg7yiv50xmbajfy0zdilsyhbj5iv0qnlrgkfv99q1dvd5qy56";
|
||||
};
|
||||
|
||||
propagatedBuildInputs = with python3Packages; [
|
||||
cryptography
|
||||
defusedxml
|
||||
pyaml
|
||||
pykeepass
|
||||
python-magic # similar API to "file-magic", but already in nixpkgs.
|
||||
secretstorage
|
||||
];
|
||||
|
||||
checkInputs = [
|
||||
gnupg
|
||||
pass
|
||||
python3Packages.pytestCheckHook
|
||||
];
|
||||
|
||||
disabledTests = [
|
||||
"test_import_gnome_keyring" # requires dbus, which pytest doesn't support
|
||||
];
|
||||
|
||||
postInstall = ''
|
||||
mkdir -p $out/lib/password-store/extensions
|
||||
cp ${src}/import.bash $out/lib/password-store/extensions/import.bash
|
||||
wrapProgram $out/lib/password-store/extensions/import.bash \
|
||||
--prefix PATH : "${python3Packages.python.withPackages (_: propagatedBuildInputs)}/bin" \
|
||||
--prefix PYTHONPATH : "$out/${python3Packages.python.sitePackages}" \
|
||||
--run "export PREFIX"
|
||||
cp -r ${src}/share $out/
|
||||
'';
|
||||
|
||||
postCheck = ''
|
||||
$out/bin/pimport --list-exporters --list-importers
|
||||
'';
|
||||
|
||||
meta = with lib; {
|
||||
description = "Pass extension for importing data from existing password managers";
|
||||
homepage = "https://github.com/roddhjav/pass-import";
|
||||
changelog = "https://github.com/roddhjav/pass-import/blob/v${version}/CHANGELOG.rst";
|
||||
license = licenses.gpl3Plus;
|
||||
maintainers = with maintainers; [ lovek323 fpletz tadfisher ];
|
||||
platforms = platforms.unix;
|
||||
};
|
||||
}
|
||||
Loading…
Add table
Add a link
Reference in a new issue