Files
nixpkgs/pkgs/by-name/sq/sqlcipher/package.nix
Wolfgang Walther c283f32d29 treewide: remove unused with
Auto-fixed by nixf-diagnose.
2025-10-05 10:50:41 +02:00

71 lines
1.3 KiB
Nix

{
lib,
stdenv,
fetchFromGitHub,
openssl,
tcl,
installShellFiles,
buildPackages,
readline,
ncurses,
zlib,
sqlite,
}:
stdenv.mkDerivation rec {
pname = "sqlcipher";
version = "4.6.1";
src = fetchFromGitHub {
owner = "sqlcipher";
repo = "sqlcipher";
rev = "v${version}";
hash = "sha256-VcD3NwVrC75kLOJiIgrnzVpkBPhjxTmEFyKg/87wHGc=";
};
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 = {
changelog = "https://github.com/sqlcipher/sqlcipher/blob/v${version}/CHANGELOG.md";
description = "SQLite extension that provides 256 bit AES encryption of database files";
mainProgram = "sqlcipher";
homepage = "https://www.zetetic.net/sqlcipher/";
license = lib.licenses.bsd3;
maintainers = [ ];
platforms = lib.platforms.unix;
};
}