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-10-09 19:29:22 +00:00
|
|
|
vendorHash = null;
|
2020-12-29 15:07:52 +00:00
|
|
|
|
|
|
|
# Avoid building example
|
|
|
|
subPackages = [ "." "fs" ];
|
2023-05-24 13:37:59 +00:00
|
|
|
# Tests are checking that the files embedded are preserving
|
2020-12-29 15:07:52 +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; {
|
2020-04-24 23:36:52 +00:00
|
|
|
homepage = "https://github.com/rakyll/statik";
|
2024-07-27 06:49:29 +00:00
|
|
|
description = "Embed files into a Go executable";
|
2024-04-21 15:54:59 +00:00
|
|
|
mainProgram = "statik";
|
2020-04-24 23:36:52 +00:00
|
|
|
license = licenses.asl20;
|
2022-04-27 09:35:20 +00:00
|
|
|
maintainers = with maintainers; [ Madouura ];
|
2020-04-24 23:36:52 +00:00
|
|
|
};
|
|
|
|
}
|