mirror of
https://github.com/NixOS/nixpkgs.git
synced 2024-12-03 04:13:01 +00:00
37 lines
734 B
Nix
37 lines
734 B
Nix
{
|
|
lib,
|
|
fetchFromGitHub,
|
|
buildGoModule,
|
|
}:
|
|
|
|
buildGoModule rec {
|
|
pname = "pipet";
|
|
version = "0.3.0";
|
|
|
|
src = fetchFromGitHub {
|
|
owner = "bjesus";
|
|
repo = "pipet";
|
|
rev = version;
|
|
hash = "sha256-pu+2sHdLz9TvYHBwvGTtFr/oAD+CreOR8io82YQANxc=";
|
|
};
|
|
|
|
vendorHash = "sha256-jNIjF5jxcpNLAjuWo7OG/Ac4l6NpQNCKzYUgdAoL+C4=";
|
|
|
|
ldflags = [
|
|
"-s"
|
|
"-w"
|
|
"-X main.version=${version}"
|
|
"-X main.currentSha=${src.rev}"
|
|
];
|
|
|
|
doCheck = false; # Requires network
|
|
|
|
meta = {
|
|
homepage = "https://github.com/bjesus/pipet";
|
|
description = "Scraping and extracting data from online assets";
|
|
license = lib.licenses.mit;
|
|
maintainers = with lib.maintainers; [ bjesus ];
|
|
mainProgram = "pipet";
|
|
};
|
|
}
|