diff options
author | Yegor Timoshenko <yegortimoshenko@riseup.net> | 2018-05-22 23:44:05 +0300 |
---|---|---|
committer | Yegor Timoshenko <yegortimoshenko@riseup.net> | 2018-05-22 23:44:28 +0300 |
commit | 25ec13a4f0f2a05000635c1d36dae99fe220a40b (patch) | |
tree | b658628a65b721701b31ce33262abb6269b900c6 /pkgs | |
parent | 57200f58f476b2c7e8b1cce69f0ef069754e9231 (diff) |
sqlite: with stdenv.lib, add downloadPage, add version attribute
Diffstat (limited to 'pkgs')
-rw-r--r-- | pkgs/development/libraries/sqlite/default.nix | 21 |
1 files changed, 13 insertions, 8 deletions
diff --git a/pkgs/development/libraries/sqlite/default.nix b/pkgs/development/libraries/sqlite/default.nix index ff2de38f98bc3..ce666dc9c93fb 100644 --- a/pkgs/development/libraries/sqlite/default.nix +++ b/pkgs/development/libraries/sqlite/default.nix @@ -1,10 +1,14 @@ -{ lib, stdenv, fetchurl, zlib, interactive ? false, readline ? null, ncurses ? null }: +{ stdenv, fetchurl, zlib, interactive ? false, readline ? null, ncurses ? null }: assert interactive -> readline != null && ncurses != null; -stdenv.mkDerivation { - name = "sqlite-3.23.1"; +with stdenv.lib; +stdenv.mkDerivation rec { + name = "sqlite-${version}"; + version = "3.23.1"; + + # NB! Make sure to update analyzer.nix src (in the same directory). src = fetchurl { url = https://sqlite.org/2018/sqlite-autoconf-3230100.tar.gz; sha256 = "09ggapjhqjb2pzk0wkfczil77plijg3d77m2bpzlwx2y7ql2p14j"; @@ -13,9 +17,9 @@ stdenv.mkDerivation { outputs = [ "bin" "dev" "out" ]; separateDebugInfo = stdenv.isLinux; - buildInputs = [ zlib ] ++ lib.optionals interactive [ readline ncurses ]; + buildInputs = [ zlib ] ++ optionals interactive [ readline ncurses ]; - configureFlags = [ "--enable-threadsafe" ] ++ lib.optional interactive "--enable-readline"; + configureFlags = [ "--enable-threadsafe" ] ++ optional interactive "--enable-readline"; NIX_CFLAGS_COMPILE = [ "-DSQLITE_ENABLE_COLUMN_METADATA" @@ -59,9 +63,10 @@ stdenv.mkDerivation { ''; meta = { - homepage = http://www.sqlite.org/; description = "A self-contained, serverless, zero-configuration, transactional SQL database engine"; - platforms = stdenv.lib.platforms.unix; - maintainers = with stdenv.lib.maintainers; [ eelco np ]; + downloadPage = http://sqlite.org/download.html; + homepage = http://www.sqlite.org/; + maintainers = with maintainers; [ eelco np ]; + platforms = platforms.unix; }; } |