depot/third_party/nixpkgs/pkgs/development/tools/build-managers/knit/default.nix
Default email bcb2f287e1 Project import generated by Copybara.
GitOrigin-RevId: d603719ec6e294f034936c0d0dc06f689d91b6c3
2024-06-20 20:27:18 +05:30

37 lines
818 B
Nix

{ lib
, buildGoModule
, fetchFromGitHub
}:
buildGoModule rec {
pname = "knit";
version = "1.1.1";
src = fetchFromGitHub {
owner = "zyedidia";
repo = "knit";
rev = "v${version}";
hash = "sha256-zxwEJnQZpOEJhV7jx2ClS3XmMfGBiq8AHR26TOIBJVw=";
};
vendorHash = "sha256-+IZFydwchHIMIvYmIgZ0uJKjW4aVBFuj3SQk58I0z/g=";
subPackages = [
"cmd/knit"
];
ldflags = [
"-s"
"-w"
"-X github.com/zyedidia/knit/info.Version=${version}"
];
meta = with lib; {
description = "Simple and flexible build tool using Lua, similar to make/mk";
mainProgram = "knit";
homepage = "https://github.com/zyedidia/knit";
changelog = "https://github.com/zyedidia/knit/releases/tag/v${version}";
license = licenses.mit;
maintainers = with maintainers; [ DrSensor ];
};
}