Some checks failed
Periodic Merges (6h) / master → staging-nixos (push) Failing after 12m50s
Periodic Merges (6h) / master → staging-next (push) Failing after 12m54s
Periodic Merges (24h) / merge-base(master,staging) → haskell-updates (push) Failing after 11m54s
Periodic Merges (6h) / staging-next → staging (push) Failing after 12m13s
Periodic Merges (24h) / staging-next-25.05 → staging-25.05 (push) Failing after 13m24s
Periodic Merges (24h) / release-25.05 → staging-next-25.05 (push) Failing after 14m28s
35 lines
815 B
Nix
35 lines
815 B
Nix
{
|
|
lib,
|
|
stdenv,
|
|
fetchFromGitHub,
|
|
installShellFiles,
|
|
}:
|
|
|
|
stdenv.mkDerivation (finalAttrs: {
|
|
pname = "wsl-open";
|
|
version = "2.2.1";
|
|
|
|
src = fetchFromGitHub {
|
|
owner = "4U6U57";
|
|
repo = "wsl-open";
|
|
tag = "v${finalAttrs.version}";
|
|
hash = "sha256-amqkDXdgIqGjRZMkltwco0UAI++G0RY/MxLXwtlxogE=";
|
|
};
|
|
|
|
nativeBuildInputs = [ installShellFiles ];
|
|
|
|
installPhase = ''
|
|
install -m0755 -D wsl-open.sh $out/bin/wsl-open
|
|
installManPage wsl-open.1
|
|
'';
|
|
|
|
meta = {
|
|
description = "Open files with xdg-open from Windows Subsystem for Linux (WSL) in Windows applications";
|
|
homepage = "https://gitlab.com/4U6U57/wsl-open";
|
|
license = lib.licenses.mit;
|
|
platforms = lib.platforms.all;
|
|
maintainers = with lib.maintainers; [ SuperSandro2000 ];
|
|
mainProgram = "wsl-open";
|
|
};
|
|
})
|