11 , withInternalSqlite ? true
19 stdenv.mkDerivation (finalAttrs: {
24 url = "https://www.fossil-scm.org/home/tarball/version-${finalAttrs.version}/fossil-${finalAttrs.version}.tar.gz";
25 hash = "sha256-lc08F2g1vrm4lwdvpYFx/jCwspH2OHu1R0nvvfqWL0w=";
28 # required for build time tool `./tools/translate.c`
29 depsBuildBuild = [ buildPackages.stdenv.cc ];
31 nativeBuildInputs = [ installShellFiles tcl tclPackages.tcllib ];
33 buildInputs = [ zlib openssl readline which ed ]
34 ++ lib.optional stdenv.hostPlatform.isDarwin libiconv
35 ++ lib.optional (!withInternalSqlite) sqlite;
37 enableParallelBuilding = true;
39 doCheck = stdenv.buildPlatform.canExecute stdenv.hostPlatform;
42 lib.optional (!withInternalSqlite) "--disable-internal-sqlite"
43 ++ lib.optional withJson "--json";
47 url = "https://fossil-scm.org/home/vpatch?from=8be0372c10510437&to=5ad708085a90365f";
49 hash = "sha256-KxF40wiEY3R1RFM0/YOmdNiedQHzs+vyMXslnqLtqQ4=";
50 name = "fossil-disable-tests.patch";
53 url = "https://fossil-scm.org/home/vpatch?from=fb4e90b662803e47&to=17c01c549e73c6b8";
55 hash = "sha256-b0JSDWEBTlLWFr5rO+g0biPzUfVsdeAw71DR7/WQKzU=";
56 name = "fossil-fix-json-test.patch";
59 url = "https://fossil-scm.org/home/vpatch?from=5ad708085a90365f&to=fb4e90b662803e47";
61 hash = "sha256-bbWUrlhPxC/DQQDeC3gG0jGfxQ6F7YkxINqg3baf+j0=";
62 name = "fossil-comment-utf-tests.patch";
67 export USER=nonexistent-but-specified-user
72 INSTALLDIR=$out/bin make install
74 installManPage fossil.1
75 installShellCompletion --name fossil.bash tools/fossil-autocomplete.bash
79 description = "Simple, high-reliability, distributed software configuration management";
81 Fossil is a software configuration management system. Fossil is
82 software that is designed to control and track the development of a
83 software project and to record the history of the project. There are
84 many such systems in use today. Fossil strives to distinguish itself
85 from the others by being extremely simple to setup and operate.
87 homepage = "https://www.fossil-scm.org/";
88 license = licenses.bsd2;
89 maintainers = with maintainers; [ maggesi ];
90 platforms = platforms.all;
91 mainProgram = "fossil";