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
70
pkgs/applications/misc/pwsafe/default.nix
Normal file
70
pkgs/applications/misc/pwsafe/default.nix
Normal file
|
|
@ -0,0 +1,70 @@
|
|||
{ lib, stdenv, fetchFromGitHub
|
||||
, cmake, pkg-config, zip, gettext, perl
|
||||
, wxGTK30, libXext, libXi, libXt, libXtst, xercesc
|
||||
, qrencode, libuuid, libyubikey, yubikey-personalization
|
||||
, curl, openssl, file
|
||||
}:
|
||||
|
||||
stdenv.mkDerivation rec {
|
||||
pname = "pwsafe";
|
||||
version = "1.14.0"; # do NOT update to 3.x Windows releases
|
||||
# nixpkgs-update: no auto update
|
||||
|
||||
src = fetchFromGitHub {
|
||||
owner = pname;
|
||||
repo = pname;
|
||||
rev = version;
|
||||
hash = "sha256-s3IXe4gTwUOzQslNfWrcN/srrG9Jv02zfkGgiZN3C1s=";
|
||||
};
|
||||
|
||||
nativeBuildInputs = [
|
||||
cmake gettext perl pkg-config zip
|
||||
];
|
||||
buildInputs = [
|
||||
libXext libXi libXt libXtst wxGTK30
|
||||
curl qrencode libuuid openssl xercesc
|
||||
libyubikey yubikey-personalization
|
||||
file
|
||||
];
|
||||
|
||||
cmakeFlags = [
|
||||
"-DNO_GTEST=ON"
|
||||
"-DCMAKE_CXX_FLAGS=-I${yubikey-personalization}/include/ykpers-1"
|
||||
];
|
||||
|
||||
postPatch = ''
|
||||
# Fix perl scripts used during the build.
|
||||
for f in $(find . -type f -name '*.pl') ; do
|
||||
patchShebangs $f
|
||||
done
|
||||
|
||||
# Fix hard coded paths.
|
||||
for f in $(grep -Rl /usr/share/ src install/desktop) ; do
|
||||
substituteInPlace $f --replace /usr/share/ $out/share/
|
||||
done
|
||||
|
||||
# Fix hard coded zip path.
|
||||
substituteInPlace help/Makefile.linux --replace /usr/bin/zip ${zip}/bin/zip
|
||||
|
||||
for f in $(grep -Rl /usr/bin/ .) ; do
|
||||
substituteInPlace $f --replace /usr/bin/ ""
|
||||
done
|
||||
'';
|
||||
|
||||
installFlags = [ "PREFIX=${placeholder "out"}" ];
|
||||
|
||||
meta = with lib; {
|
||||
description = "A password database utility";
|
||||
longDescription = ''
|
||||
Password Safe is a password database utility. Like many other
|
||||
such products, commercial and otherwise, it stores your
|
||||
passwords in an encrypted file, allowing you to remember only
|
||||
one password (the "safe combination"), instead of all the
|
||||
username/password combinations that you use.
|
||||
'';
|
||||
homepage = "https://pwsafe.org/";
|
||||
maintainers = with maintainers; [ c0bw3b pjones ];
|
||||
platforms = platforms.linux;
|
||||
license = licenses.artistic2;
|
||||
};
|
||||
}
|
||||
Loading…
Add table
Add a link
Reference in a new issue