1{ lib, buildGoModule, fetchFromGitHub }:
2
3buildGoModule rec {
4 pname = "statik";
5 version = "0.1.7";
6
7 src = fetchFromGitHub {
8 owner = "rakyll";
9 repo = "statik";
10 rev = "v${version}";
11 sha256 = "ahsNiac/3I2+PUqc90E73Brb99M68ewh9nWXoupfE3g=";
12 };
13
14 vendorSha256 = null;
15
16 # Avoid building example
17 subPackages = [ "." "fs" ];
18 # Tests are checking that the files embedded are preserving
19 # their meta data like dates etc, but it assumes to be in 2048
20 # which is not the case once entered the nix store
21 doCheck = false;
22
23 meta = with lib; {
24 homepage = "https://github.com/rakyll/statik";
25 description = "Embed files into a Go executable ";
26 license = licenses.asl20;
27 maintainers = with maintainers; [ Madouura ];
28 };
29}