mirror of
https://github.com/NixOS/nixpkgs.git
synced 2024-11-16 06:45:16 +01:00
543cd40ecc
Done using `grep -rP 'description\s+=\s+"[^"]+[ ]";' | cut -d ':' -f 1 | xargs -i nvim {}` and sorting the opened files by hand, avoiding generated packages list
30 lines
785 B
Nix
30 lines
785 B
Nix
{ lib, buildGoModule, fetchFromGitHub }:
|
|
|
|
buildGoModule rec {
|
|
pname = "statik";
|
|
version = "0.1.7";
|
|
|
|
src = fetchFromGitHub {
|
|
owner = "rakyll";
|
|
repo = "statik";
|
|
rev = "v${version}";
|
|
sha256 = "ahsNiac/3I2+PUqc90E73Brb99M68ewh9nWXoupfE3g=";
|
|
};
|
|
|
|
vendorHash = null;
|
|
|
|
# Avoid building example
|
|
subPackages = [ "." "fs" ];
|
|
# Tests are checking that the files embedded 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; {
|
|
homepage = "https://github.com/rakyll/statik";
|
|
description = "Embed files into a Go executable";
|
|
mainProgram = "statik";
|
|
license = licenses.asl20;
|
|
maintainers = with maintainers; [ Madouura ];
|
|
};
|
|
}
|