nixpkgs/pkgs/by-name/sq/sqlcipher/package.nix

Ignoring revisions in .git-blame-ignore-revs. Click here to bypass and see the normal blame view.

70 lines
1.3 KiB
Nix
Raw Normal View History

2022-12-25 08:42:34 +00:00
{ lib
, stdenv
, fetchFromGitHub
, openssl
, tcl
, installShellFiles
, buildPackages
, readline
, ncurses
, zlib
, sqlite
}:
2014-07-02 10:18:27 +01:00
2016-08-18 00:19:45 +01:00
stdenv.mkDerivation rec {
pname = "sqlcipher";
2024-08-20 17:38:07 +01:00
version = "4.6.1";
2014-07-02 10:18:27 +01:00
2016-08-18 00:19:45 +01:00
src = fetchFromGitHub {
owner = "sqlcipher";
repo = "sqlcipher";
rev = "v${version}";
2024-08-20 17:38:07 +01:00
hash = "sha256-VcD3NwVrC75kLOJiIgrnzVpkBPhjxTmEFyKg/87wHGc=";
2014-07-02 10:18:27 +01:00
};
2022-12-25 08:42:34 +00:00
nativeBuildInputs = [
installShellFiles
tcl
];
buildInputs = [
readline
ncurses
openssl
zlib
];
depsBuildBuild = [
buildPackages.stdenv.cc
];
2014-07-02 10:18:27 +01:00
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"
];
2014-07-02 10:18:27 +01:00
2021-08-04 00:10:25 +01:00
BUILD_CC = "$(CC_FOR_BUILD)";
2014-07-02 10:18:27 +01:00
TCLLIBDIR = "${placeholder "out"}/lib/tcl${lib.versions.majorMinor tcl.version}";
2020-05-24 10:20:00 +01:00
postInstall = ''
installManPage sqlcipher.1
'';
meta = with lib; {
2022-12-25 08:42:34 +00:00
changelog = "https://github.com/sqlcipher/sqlcipher/blob/v${version}/CHANGELOG.md";
2020-05-24 10:20:00 +01:00
description = "SQLite extension that provides 256 bit AES encryption of database files";
mainProgram = "sqlcipher";
2022-12-25 08:42:34 +00:00
homepage = "https://www.zetetic.net/sqlcipher/";
2016-08-18 00:19:45 +01:00
license = licenses.bsd3;
maintainers = [ ];
2022-12-25 08:42:34 +00:00
platforms = platforms.unix;
2014-07-02 10:18:27 +01:00
};
}