diff options
author | Alyssa Ross <hi@alyssa.is> | 2024-01-06 02:12:23 +0100 |
---|---|---|
committer | Alyssa Ross <hi@alyssa.is> | 2024-01-06 02:12:23 +0100 |
commit | f34a1b70eb86e4a63cfb88ea460345bb1aed88e3 (patch) | |
tree | 32834d23912250e0c4b86aa4420baacf8091c0fe /nixpkgs/pkgs/by-name/xw/xwayland-run/package.nix | |
parent | 003ab91dd67b093890db1dd0bab564345db6e496 (diff) | |
parent | 7a7cfff8915e06365bc2365ff33d4d413184fa9f (diff) | |
download | nixlib-f34a1b70eb86e4a63cfb88ea460345bb1aed88e3.tar nixlib-f34a1b70eb86e4a63cfb88ea460345bb1aed88e3.tar.gz nixlib-f34a1b70eb86e4a63cfb88ea460345bb1aed88e3.tar.bz2 nixlib-f34a1b70eb86e4a63cfb88ea460345bb1aed88e3.tar.lz nixlib-f34a1b70eb86e4a63cfb88ea460345bb1aed88e3.tar.xz nixlib-f34a1b70eb86e4a63cfb88ea460345bb1aed88e3.tar.zst nixlib-f34a1b70eb86e4a63cfb88ea460345bb1aed88e3.zip |
Merge branch 'nixos-unstable-small' of https://github.com/NixOS/nixpkgs
Conflicts: nixpkgs/pkgs/build-support/go/module.nix
Diffstat (limited to 'nixpkgs/pkgs/by-name/xw/xwayland-run/package.nix')
-rw-r--r-- | nixpkgs/pkgs/by-name/xw/xwayland-run/package.nix | 58 |
1 files changed, 58 insertions, 0 deletions
diff --git a/nixpkgs/pkgs/by-name/xw/xwayland-run/package.nix b/nixpkgs/pkgs/by-name/xw/xwayland-run/package.nix new file mode 100644 index 000000000000..580af8afa8d0 --- /dev/null +++ b/nixpkgs/pkgs/by-name/xw/xwayland-run/package.nix @@ -0,0 +1,58 @@ +{ cage +, fetchFromGitLab +, gnome +, lib +, meson +, ninja +, python3 +, weston +, xorg +, xwayland +, withMutter ? false +, withCage ? false +}: +let + compositors = [ weston ] + ++ lib.optional withMutter gnome.mutter + ++ lib.optional withCage cage + ; +in +python3.pkgs.buildPythonApplication rec { + pname = "xwayland-run"; + version = "0.0.2"; + + src = fetchFromGitLab { + domain = "gitlab.freedesktop.org"; + owner = "ofourdan"; + repo = "xwayland-run"; + rev = version; + hash = "sha256-+HdRLIizEdtKWD8HadQQf750e2t1AWa14U/Xwu3xPK4="; + }; + + pyproject = false; + + outputs = [ "out" "man" ]; + + nativeBuildInputs = [ + meson + ninja + ]; + + + postInstall = '' + wrapProgram $out/bin/wlheadless-run \ + --prefix PATH : ${lib.makeBinPath compositors} + wrapProgram $out/bin/xwayland-run \ + --prefix PATH : ${lib.makeBinPath [ xwayland xorg.xauth ]} + wrapProgram $out/bin/xwfb-run \ + --prefix PATH : ${lib.makeBinPath (compositors ++ [ xwayland xorg.xauth ])} + ''; + + meta = with lib; { + description = "A set of small utilities revolving around running Xwayland and various Wayland compositor headless"; + homepage = "https://gitlab.freedesktop.org/ofourdan/xwayland-run"; + license = licenses.gpl2Only; + maintainers = with maintainers; [ arthsmn ]; + platforms = platforms.linux; + }; +} |