@@ -1,18 +1,26 @@
1−{ stdenv, buildGoPackage, fetchFromGitHub }:
1+{ lib, buildGoModule, fetchFromGitHub }:
22
3−buildGoPackage {
3+buildGoModule rec {
44 pname = "statik";
5− version = "unstable-2019-07-31";
6− goPackagePath = "github.com/rakyll/statik";
5+ version = "0.1.7";
76
87 src = fetchFromGitHub {
98 owner = "rakyll";
109 repo = "statik";
11− rev = "925a23bda946b50bb0804894f340c5da2b95603b";
12− sha256 = "15wwgrprfq36pa13b9anp7097q1fqcad28hirvivybmc011p0fri";
10+ rev = "v${version}";
11+ sha256 = "ahsNiac/3I2+PUqc90E73Brb99M68ewh9nWXoupfE3g=";
1312 };
1413
15− meta = with stdenv.lib; {
14+ vendorSha256 = "pQpattmS9VmO3ZIQUFn66az8GSmB4IvYhTTCFn6SUmo=";
15+
16+ # Avoid building example
17+ subPackages = [ "." "fs" ];
18+ # Tests are checking that the files embeded 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; {
1624 homepage = "https://github.com/rakyll/statik";
1725 description = "Embed files into a Go executable ";
1826 license = licenses.asl20;