about summary refs log tree commit diff
path: root/nixpkgs/pkgs/development/tools/build-managers/knit/default.nix
blob: df2898239b78957e0d7f10fe05efbc27aea82d77 (plain) (blame)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
{ 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 = "A simple and flexible build tool using Lua, similar to make/mk";
    homepage = "https://github.com/zyedidia/knit";
    changelog = "https://github.com/zyedidia/knit/releases/tag/v${version}";
    license = licenses.mit;
    maintainers = with maintainers; [ DrSensor ];
  };
}