2020-12-29 15:07:52 +00:00
|
|
|
{ lib, buildGoModule, fetchFromGitHub }:
|
2020-04-24 23:36:52 +00:00
|
|
|
|
2020-12-29 15:07:52 +00:00
|
|
|
buildGoModule rec {
|
2020-04-24 23:36:52 +00:00
|
|
|
pname = "statik";
|
2020-12-29 15:07:52 +00:00
|
|
|
version = "0.1.7";
|
2020-04-24 23:36:52 +00:00
|
|
|
|
|
|
|
src = fetchFromGitHub {
|
|
|
|
owner = "rakyll";
|
|
|
|
repo = "statik";
|
2020-12-29 15:07:52 +00:00
|
|
|
rev = "v${version}";
|
|
|
|
sha256 = "ahsNiac/3I2+PUqc90E73Brb99M68ewh9nWXoupfE3g=";
|
2020-04-24 23:36:52 +00:00
|
|
|
};
|
|
|
|
|
2023-02-09 11:40:11 +00:00
|
|
|
vendorSha256 = null;
|
2020-12-29 15:07:52 +00:00
|
|
|
|
|
|
|
# Avoid building example
|
|
|
|
subPackages = [ "." "fs" ];
|
|
|
|
# Tests are checking that the files embeded 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; {
|
2020-04-24 23:36:52 +00:00
|
|
|
homepage = "https://github.com/rakyll/statik";
|
|
|
|
description = "Embed files into a Go executable ";
|
|
|
|
license = licenses.asl20;
|
2022-04-27 09:35:20 +00:00
|
|
|
maintainers = with maintainers; [ Madouura ];
|
2020-04-24 23:36:52 +00:00
|
|
|
};
|
|
|
|
}
|