pj: init at 1.11.0 (#488434)

This commit is contained in:
Gaétan Lepage
2026-02-12 21:50:11 +00:00
committed by GitHub
2 changed files with 48 additions and 0 deletions
+6
View File
@@ -12924,6 +12924,12 @@
github = "jooooscha";
githubId = 57965027;
};
josephschmitt = {
name = "Joseph Schmitt";
email = "dev@joe.sh";
github = "josephschmitt";
githubId = 136007;
};
josephst = {
name = "Joseph Stahl";
email = "hello@josephstahl.com";
+42
View File
@@ -0,0 +1,42 @@
{
lib,
buildGoModule,
fetchFromGitHub,
nix-update-script,
versionCheckHook,
}:
buildGoModule (finalAttrs: {
pname = "pj";
version = "1.11.0";
src = fetchFromGitHub {
owner = "josephschmitt";
repo = "pj";
tag = "v${finalAttrs.version}";
hash = "sha256-xorBRRiG4mcXf0QtsYnEkNnEjyTemfNrpkK/aEbkOjQ=";
};
vendorHash = "sha256-rya2afSV9Y1hmUZU0wyR9NETBl3TXD/OTHv0zvVl8v8=";
ldflags = [
"-s"
"-X main.version=${finalAttrs.version}"
];
nativeInstallCheckInputs = [
versionCheckHook
];
doInstallCheck = true;
passthru.updateScript = nix-update-script { };
meta = {
description = "Fast project directory finder that searches filesystems for git repositories";
homepage = "https://github.com/josephschmitt/pj";
changelog = "https://github.com/josephschmitt/pj/blob/${finalAttrs.src.tag}/CHANGELOG.md";
license = lib.licenses.mit;
maintainers = with lib.maintainers; [ josephschmitt ];
mainProgram = "pj";
};
})