2021-02-05 17:12:51 +00:00
|
|
|
{ lib, stdenv, fetchFromGitHub }:
|
2020-04-24 23:36:52 +00:00
|
|
|
|
|
|
|
stdenv.mkDerivation rec {
|
|
|
|
pname = "samurai";
|
2021-02-13 14:23:35 +00:00
|
|
|
version = "1.2";
|
2020-04-24 23:36:52 +00:00
|
|
|
|
|
|
|
src = fetchFromGitHub {
|
|
|
|
owner = "michaelforney";
|
|
|
|
repo = pname;
|
|
|
|
rev = version;
|
2021-02-13 14:23:35 +00:00
|
|
|
sha256 = "sha256-RPY3MFlnSDBZ5LOkdWnMiR/CZIBdqIFo9uLU+SAKPBI=";
|
2020-04-24 23:36:52 +00:00
|
|
|
};
|
|
|
|
|
|
|
|
makeFlags = [ "DESTDIR=" "PREFIX=${placeholder "out"}" ];
|
|
|
|
|
2021-02-05 17:12:51 +00:00
|
|
|
meta = with lib; {
|
2020-04-24 23:36:52 +00:00
|
|
|
description = "ninja-compatible build tool written in C";
|
|
|
|
homepage = "https://github.com/michaelforney/samurai";
|
|
|
|
license = with licenses; [ mit asl20 ]; # see LICENSE
|
|
|
|
maintainers = with maintainers; [ dtzWill ];
|
|
|
|
};
|
|
|
|
}
|
|
|
|
|