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