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

Ignoring revisions in .git-blame-ignore-revs. Click here to bypass and see the normal blame view.

30 lines
758 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
};
vendorHash = null;
2020-12-28 18:18:03 +00:00
# Avoid building example
subPackages = [ "." "fs" ];
# 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;
maintainers = with maintainers; [ Madouura ];
2019-03-23 06:16:14 +00:00
};
}