7 stdenv.mkDerivation rec {
11 src = fetchFromGitHub {
12 owner = "michaelforney";
15 hash = "sha256-RPY3MFlnSDBZ5LOkdWnMiR/CZIBdqIFo9uLU+SAKPBI=";
18 makeFlags = [ "DESTDIR=" "PREFIX=${placeholder "out"}" ];
21 # NULL pointer dereference in writefile() in util.c; remove this at the next
24 name = "CVE-2021-30218.patch";
25 url = "https://github.com/michaelforney/samurai/commit/e84b6d99c85043fa1ba54851ee500540ec206918.patch";
26 sha256 = "sha256-hyndwj6st4rwOJ35Iu0qL12dR5E6CBvsulvR27PYKMw=";
28 # NULL pointer dereference in printstatus() in build.c; remove this at the
31 name = "CVE-2021-30219.patch";
32 url = "https://github.com/michaelforney/samurai/commit/d2af3bc375e2a77139c3a28d6128c60cd8d08655.patch";
33 sha256 = "sha256-rcdwKjHeq5Oaga9wezdHSg/7ljkynfbnkBc2ciMW5so=";
38 description = "ninja-compatible build tool written in C";
40 samurai is a ninja-compatible build tool with a focus on simplicity,
41 speed, and portability.
43 It is written in C99, requires various POSIX.1-2008 interfaces, and
44 nowadays implements ninja build language through version 1.9.0 except for
45 Microsoft (R) Visual C++ (TM) dependency handling (deps = msvc).
47 It is feature-complete (but not bug-compatible) and supports most of the
48 same options as ninja, using the same format for .ninja_log and
49 .ninja_deps as the original ninja tool, currently version 5 and 4
52 homepage = "https://github.com/michaelforney/samurai";
53 license = with licenses; [ mit asl20 ]; # see LICENSE
54 maintainers = with maintainers; [ dtzWill AndersonTorres ];
56 platforms = platforms.all;