10 , withInternalSqlite ? true
18 stdenv.mkDerivation (finalAttrs: {
23 url = "https://www.fossil-scm.org/home/tarball/version-${finalAttrs.version}/fossil-${finalAttrs.version}.tar.gz";
24 hash = "sha256-dfgI6BNRAYqXFnRtnvGh/huxkEcz6LQYZDiB04GYhZM=";
27 # required for build time tool `./tools/translate.c`
28 depsBuildBuild = [ buildPackages.stdenv.cc ];
30 nativeBuildInputs = [ installShellFiles tcl tcllib ];
32 buildInputs = [ zlib openssl readline which ed ]
33 ++ lib.optional stdenv.isDarwin libiconv
34 ++ lib.optional (!withInternalSqlite) sqlite;
36 enableParallelBuilding = true;
38 doCheck = stdenv.hostPlatform == stdenv.buildPlatform;
41 lib.optional (!withInternalSqlite) "--disable-internal-sqlite"
42 ++ lib.optional withJson "--json";
45 export USER=nonexistent-but-specified-user
50 INSTALLDIR=$out/bin make install
52 installManPage fossil.1
53 installShellCompletion --name fossil.bash tools/fossil-autocomplete.bash
57 description = "Simple, high-reliability, distributed software configuration management";
59 Fossil is a software configuration management system. Fossil is
60 software that is designed to control and track the development of a
61 software project and to record the history of the project. There are
62 many such systems in use today. Fossil strives to distinguish itself
63 from the others by being extremely simple to setup and operate.
65 homepage = "https://www.fossil-scm.org/";
66 license = licenses.bsd2;
67 maintainers = with maintainers; [ maggesi viric ];
68 platforms = platforms.all;
69 mainProgram = "fossil";