about summary refs log tree commit diff
path: root/nixpkgs/pkgs/development/tools/statik/default.nix
blob: e77cf8f3bb0b1ca0fd9c6132ed3b90bd8868ef12 (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
{ lib, buildGoModule, fetchFromGitHub }:

buildGoModule rec {
  pname = "statik";
  version = "0.1.7";

  src = fetchFromGitHub {
    owner = "rakyll";
    repo = "statik";
    rev = "v${version}";
    sha256 = "ahsNiac/3I2+PUqc90E73Brb99M68ewh9nWXoupfE3g=";
  };

  vendorHash = null;

  # Avoid building example
  subPackages = [ "." "fs" ];
  # Tests are checking that the files embedded are preserving
  # their meta data like dates etc, but it assumes to be in 2048
  # which is not the case once entered the nix store
  doCheck = false;

  meta = with lib; {
    homepage = "https://github.com/rakyll/statik";
    description = "Embed files into a Go executable ";
    license = licenses.asl20;
    maintainers = with maintainers; [ Madouura ];
  };
}