2021-01-15 22:18:51 +00:00
|
|
|
{ lib, stdenv, fetchFromGitHub, installShellFiles }:
|
2020-12-07 07:45:13 +00:00
|
|
|
|
|
|
|
stdenv.mkDerivation rec {
|
|
|
|
pname = "wsl-open";
|
2022-08-12 12:06:08 +00:00
|
|
|
version = "2.2.1";
|
2020-12-07 07:45:13 +00:00
|
|
|
|
|
|
|
src = fetchFromGitHub {
|
|
|
|
owner = "4U6U57";
|
|
|
|
repo = "wsl-open";
|
|
|
|
rev = "v${version}";
|
2022-08-12 12:06:08 +00:00
|
|
|
sha256 = "sha256-amqkDXdgIqGjRZMkltwco0UAI++G0RY/MxLXwtlxogE=";
|
2020-12-07 07:45:13 +00:00
|
|
|
};
|
|
|
|
|
|
|
|
nativeBuildInputs = [ installShellFiles ];
|
|
|
|
|
|
|
|
installPhase = ''
|
|
|
|
install -m0755 -D wsl-open.sh $out/bin/wsl-open
|
|
|
|
installManPage wsl-open.1
|
|
|
|
'';
|
|
|
|
|
2021-01-15 22:18:51 +00:00
|
|
|
meta = with lib; {
|
2020-12-07 07:45:13 +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 ];
|
2024-01-02 11:29:13 +00:00
|
|
|
mainProgram = "wsl-open";
|
2020-12-07 07:45:13 +00:00
|
|
|
};
|
|
|
|
}
|