nixpkgs/pkgs/development/tools/statik/default.nix

30 lines
801 B
Nix
Raw Normal View History

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
};
2020-12-28 18:18:03 +00:00
vendorSha256 = "pQpattmS9VmO3ZIQUFn66az8GSmB4IvYhTTCFn6SUmo=";
# 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; {
2019-03-23 06:16:14 +00:00
homepage = "https://github.com/rakyll/statik";
description = "Embed files into a Go executable ";
license = licenses.asl20;
maintainers = with maintainers; [ chiiruno ];
};
}