Skip to content

Commit

Permalink
opener: init at 0.1.5 (NixOS#364141)
Browse files Browse the repository at this point in the history
  • Loading branch information
drupol authored Dec 21, 2024
2 parents 6550401 + e443609 commit 44bccf4
Showing 1 changed file with 43 additions and 0 deletions.
43 changes: 43 additions & 0 deletions pkgs/by-name/op/opener/package.nix
Original file line number Diff line number Diff line change
@@ -0,0 +1,43 @@
{
lib,
fetchFromGitHub,
buildGoModule,
versionCheckHook,

Check failure on line 5 in pkgs/by-name/op/opener/package.nix

View workflow job for this annotation

GitHub Actions / exp-nixf-tidy-check

sema-unused-def-lambda-noarg-formal

attribute `versionCheckHook` of argument is not used
nix-update-script,
}:

buildGoModule rec {
pname = "opener";
version = "0.1.5";

src = fetchFromGitHub {
owner = "superbrothers";
repo = "opener";
tag = "v${version}";
hash = "sha256-pp2jn4J6gYyZky5rVBaai9sVVqvPgM+fGryseM58WEI=";
};

vendorHash = "sha256-xwMRWEwrG12QevVVTMC9OTdjIBoxR1AHkoa6OErPpF4=";

postPatch = ''
substituteInPlace opener.go \
--replace-fail \
'var version string' \
'var version string = "${version}"'
'';

__darwinAllowLocalNetworking = true;

passthru = {
updateScript = nix-update-script { };
};

meta = {
description = "Open URL in your local web browser from the SSH-connected remote environment";
homepage = "https://github.com/superbrothers/opener";
changelog = "https://github.com/superbrothers/opener/releases/tag/${src.tag}";
license = lib.licenses.mit;
maintainers = with lib.maintainers; [ genga898 ];
mainProgram = "opener";
};
}

0 comments on commit 44bccf4

Please sign in to comment.