summaryrefslogtreecommitdiffstats
path: root/pkgs-temp/wlroots/default.nix
diff options
context:
space:
mode:
authorCole Mickens <cole.mickens@gmail.com>2019-02-21 13:18:43 -0800
committerCole Mickens <cole.mickens@gmail.com>2019-02-21 13:19:03 -0800
commit9126d403812828e78478aeda1d4051b1a09f10a7 (patch)
tree36ce9a4ec53e1dca9a11808b9461b4a18841482b /pkgs-temp/wlroots/default.nix
parent350ea9b0e23908a1f8aa741acfb28dfab8d52e42 (diff)
remove temp pkgs
Diffstat (limited to 'pkgs-temp/wlroots/default.nix')
-rw-r--r--pkgs-temp/wlroots/default.nix71
1 files changed, 0 insertions, 71 deletions
diff --git a/pkgs-temp/wlroots/default.nix b/pkgs-temp/wlroots/default.nix
deleted file mode 100644
index 48de890..0000000
--- a/pkgs-temp/wlroots/default.nix
+++ /dev/null
@@ -1,71 +0,0 @@
-{ stdenv, fetchFromGitHub, fetchpatch, meson, ninja, pkgconfig
-, wayland, libGL, wayland-protocols, libinput, libxkbcommon, pixman
-, xcbutilwm, libX11, libcap, xcbutilimage, xcbutilerrors, mesa_noglu
-, libpng, ffmpeg_4
-, python3Packages # TODO: Temporary
-}:
-
-let
- pname = "wlroots";
- version = "36ba56140ae325ae398229a689f20ded126608bc";
- sha256 = "0wrc67g1vp3hk340hz1xn1xcy4rhmpd3dqb9ykxg69mpicrz3mvg";
-in stdenv.mkDerivation rec {
- name = "${pname}-${version}";
- src = fetchFromGitHub {
- owner = "swaywm";
- repo = "wlroots";
- rev = version;
- sha256 = sha256;
- };
-
- # $out for the library, $bin for rootston, and $examples for the example
- # programs (in examples) AND rootston
- outputs = [ "out" "bin" "examples" ];
-
- nativeBuildInputs = [ meson ninja pkgconfig ];
-
- buildInputs = [
- wayland libGL wayland-protocols libinput libxkbcommon pixman
- xcbutilwm libX11 libcap xcbutilimage xcbutilerrors mesa_noglu
- libpng ffmpeg_4
- ];
-
- mesonFlags = [
- "-Dlibcap=enabled" "-Dlogind=enabled" "-Dxwayland=enabled" "-Dx11-backend=enabled"
- "-Dxcb-icccm=enabled" "-Dxcb-xkb=enabled" "-Dxcb-errors=enabled"
- ];
-
- postInstall = ''
- # Install rootston (the reference compositor) to $bin and $examples
- for output in "$bin" "$examples"; do
- mkdir -p $output/bin
- cp rootston/rootston $output/bin/
- mkdir $output/lib
- cp libwlroots* $output/lib/
- patchelf \
- --set-rpath "$output/lib:${stdenv.lib.makeLibraryPath buildInputs}" \
- $output/bin/rootston
- mkdir $output/etc
- cp ../rootston/rootston.ini.example $output/etc/rootston.ini
- done
- # Install ALL example programs to $examples:
- # screencopy dmabuf-capture input-inhibitor layer-shell idle-inhibit idle
- # screenshot output-layout multi-pointer rotation tablet touch pointer
- # simple
- cd ./examples
- for binary in $(find . -executable -type f -printf '%P\n' | grep -vE '\.so'); do
- patchelf \
- --set-rpath "$examples/lib:${stdenv.lib.makeLibraryPath buildInputs}" \
- "$binary"
- cp "$binary" "$examples/bin/wlroots-$binary"
- done
- '';
-
- meta = with stdenv.lib; {
- description = "A modular Wayland compositor library";
- inherit (src.meta) homepage;
- license = licenses.mit;
- platforms = platforms.linux;
- maintainers = with maintainers; [ primeos ];
- };
-}