2021-01-11 07:54:33 +00:00
|
|
|
{ lib, stdenv, fetchFromGitHub, installShellFiles }:
|
2020-11-26 13:36:28 +00:00
|
|
|
|
|
|
|
stdenv.mkDerivation rec {
|
|
|
|
pname = "wsl-open";
|
2022-07-22 13:20:22 +00:00
|
|
|
version = "2.2.1";
|
2020-11-26 13:36:28 +00:00
|
|
|
|
|
|
|
src = fetchFromGitHub {
|
|
|
|
owner = "4U6U57";
|
|
|
|
repo = "wsl-open";
|
|
|
|
rev = "v${version}";
|
2022-07-22 13:20:22 +00:00
|
|
|
sha256 = "sha256-amqkDXdgIqGjRZMkltwco0UAI++G0RY/MxLXwtlxogE=";
|
2020-11-26 13:36:28 +00:00
|
|
|
};
|
|
|
|
|
|
|
|
nativeBuildInputs = [ installShellFiles ];
|
|
|
|
|
|
|
|
installPhase = ''
|
|
|
|
install -m0755 -D wsl-open.sh $out/bin/wsl-open
|
|
|
|
installManPage wsl-open.1
|
|
|
|
'';
|
|
|
|
|
2021-01-11 07:54:33 +00:00
|
|
|
meta = with lib; {
|
2020-11-26 13:36:28 +00:00
|
|
|
description = "Open files with xdg-open from Windows Subsystem for Linux (WSL) in Windows applications";
|
|
|
|
homepage = "https://gitlab.com/4U6U57/wsl-open";
|
|
|
|
license = licenses.mit;
|
|
|
|
platforms = platforms.all;
|
|
|
|
maintainers = with maintainers; [ SuperSandro2000 ];
|
2023-11-27 01:17:53 +00:00
|
|
|
mainProgram = "wsl-open";
|
2020-11-26 13:36:28 +00:00
|
|
|
};
|
|
|
|
}
|