nixpkgs/pkgs/by-name/pi/pipet/package.nix

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

37 lines
734 B
Nix
Raw Normal View History

2024-09-22 14:37:56 +00:00
{
lib,
fetchFromGitHub,
buildGoModule,
}:
buildGoModule rec {
pname = "pipet";
2024-10-20 07:14:55 +00:00
version = "0.3.0";
2024-09-22 14:37:56 +00:00
src = fetchFromGitHub {
owner = "bjesus";
repo = "pipet";
rev = version;
2024-10-20 07:14:55 +00:00
hash = "sha256-pu+2sHdLz9TvYHBwvGTtFr/oAD+CreOR8io82YQANxc=";
2024-09-22 14:37:56 +00:00
};
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";
};
}