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
43
pkgs/development/libraries/sqlcipher/default.nix
Normal file
43
pkgs/development/libraries/sqlcipher/default.nix
Normal file
|
|
@ -0,0 +1,43 @@
|
|||
{ stdenv, lib, fetchFromGitHub, openssl, tcl, installShellFiles, buildPackages, readline, ncurses, zlib, sqlite }:
|
||||
|
||||
stdenv.mkDerivation rec {
|
||||
pname = "sqlcipher";
|
||||
version = "4.5.1";
|
||||
|
||||
src = fetchFromGitHub {
|
||||
owner = "sqlcipher";
|
||||
repo = "sqlcipher";
|
||||
rev = "v${version}";
|
||||
sha256 = "sha256-cvbR3tav6DjIdJB/x2q5Oq7ju9q63z75b6q1uHYY9bE=";
|
||||
};
|
||||
|
||||
nativeBuildInputs = [ installShellFiles tcl ];
|
||||
buildInputs = [ readline ncurses openssl zlib ];
|
||||
depsBuildBuild = [ buildPackages.stdenv.cc ];
|
||||
|
||||
configureFlags = [
|
||||
"--enable-threadsafe"
|
||||
"--with-readline-inc=-I${lib.getDev readline}/include"
|
||||
];
|
||||
|
||||
CFLAGS = [
|
||||
# We want feature parity with sqlite
|
||||
sqlite.NIX_CFLAGS_COMPILE
|
||||
"-DSQLITE_HAS_CODEC"
|
||||
];
|
||||
|
||||
BUILD_CC = "$(CC_FOR_BUILD)";
|
||||
|
||||
TCLLIBDIR = "${placeholder "out"}/lib/tcl${lib.versions.majorMinor tcl.version}";
|
||||
|
||||
postInstall = ''
|
||||
installManPage sqlcipher.1
|
||||
'';
|
||||
|
||||
meta = with lib; {
|
||||
homepage = "https://www.zetetic.net/sqlcipher/";
|
||||
description = "SQLite extension that provides 256 bit AES encryption of database files";
|
||||
platforms = platforms.unix;
|
||||
license = licenses.bsd3;
|
||||
};
|
||||
}
|
||||
Loading…
Add table
Add a link
Reference in a new issue