2020-12-28 18:18:03 +00:00
|
|
|
{ lib, buildGoModule, fetchFromGitHub }:
|
2019-03-23 06:16:14 +00:00
|
|
|
|
2020-12-28 18:18:03 +00:00
|
|
|
buildGoModule rec {
|
2019-08-23 06:57:23 +00:00
|
|
|
pname = "statik";
|
2020-12-28 18:18:03 +00:00
|
|
|
version = "0.1.7";
|
2019-03-23 06:16:14 +00:00
|
|
|
|
|
|
|
src = fetchFromGitHub {
|
|
|
|
owner = "rakyll";
|
|
|
|
repo = "statik";
|
2020-12-28 18:18:03 +00:00
|
|
|
rev = "v${version}";
|
|
|
|
sha256 = "ahsNiac/3I2+PUqc90E73Brb99M68ewh9nWXoupfE3g=";
|
2019-03-23 06:16:14 +00:00
|
|
|
};
|
|
|
|
|
2023-02-03 05:06:34 +00:00
|
|
|
vendorSha256 = null;
|
2020-12-28 18:18:03 +00:00
|
|
|
|
|
|
|
# Avoid building example
|
|
|
|
subPackages = [ "." "fs" ];
|
2023-05-08 17:59:48 +00:00
|
|
|
# Tests are checking that the files embedded are preserving
|
2020-12-28 18:18:03 +00:00
|
|
|
# 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; {
|
2019-03-23 06:16:14 +00:00
|
|
|
homepage = "https://github.com/rakyll/statik";
|
|
|
|
description = "Embed files into a Go executable ";
|
|
|
|
license = licenses.asl20;
|
2022-04-17 23:13:36 +00:00
|
|
|
maintainers = with maintainers; [ Madouura ];
|
2019-03-23 06:16:14 +00:00
|
|
|
};
|
|
|
|
}
|