btrbk: add mainProgram
[NixPkgs.git] / pkgs / by-name / st / statik / package.nix
blob5dec08d0d6e6eb22c2488df2473c697e46706d77
1 { lib, buildGoModule, fetchFromGitHub }:
3 buildGoModule rec {
4   pname = "statik";
5   version = "0.1.7";
7   src = fetchFromGitHub {
8     owner = "rakyll";
9     repo = "statik";
10     rev = "v${version}";
11     sha256 = "ahsNiac/3I2+PUqc90E73Brb99M68ewh9nWXoupfE3g=";
12   };
14   vendorHash = null;
16   # Avoid building example
17   subPackages = [ "." "fs" ];
18   # Tests are checking that the files embedded are preserving
19   # their meta data like dates etc, but it assumes to be in 2048
20   # which is not the case once entered the nix store
21   doCheck = false;
23   meta = with lib; {
24     homepage = "https://github.com/rakyll/statik";
25     description = "Embed files into a Go executable";
26     mainProgram = "statik";
27     license = licenses.asl20;
28     maintainers = with maintainers; [ Madouura ];
29   };