Clone of https://github.com/NixOS/nixpkgs.git (to stress-test knotserver)
1{
2 lib,
3 stdenv,
4 fetchFromGitHub,
5 installShellFiles,
6}:
7
8stdenv.mkDerivation (finalAttrs: {
9 pname = "wsl-open";
10 version = "2.2.1";
11
12 src = fetchFromGitHub {
13 owner = "4U6U57";
14 repo = "wsl-open";
15 tag = "v${finalAttrs.version}";
16 hash = "sha256-amqkDXdgIqGjRZMkltwco0UAI++G0RY/MxLXwtlxogE=";
17 };
18
19 nativeBuildInputs = [ installShellFiles ];
20
21 installPhase = ''
22 install -m0755 -D wsl-open.sh $out/bin/wsl-open
23 installManPage wsl-open.1
24 '';
25
26 meta = {
27 description = "Open files with xdg-open from Windows Subsystem for Linux (WSL) in Windows applications";
28 homepage = "https://gitlab.com/4U6U57/wsl-open";
29 license = lib.licenses.mit;
30 platforms = lib.platforms.all;
31 maintainers = with lib.maintainers; [ SuperSandro2000 ];
32 mainProgram = "wsl-open";
33 };
34})