git.iko.soy/typeable/nixpkgs
on master help sign in
wlroots: 0.6.0 -> 0.7.0

Changelog: https://github.com/swaywm/wlroots/releases/tag/0.7.0 Rootston was removed for this release.

commitad339e91c1770d8dfdbc62d7148dea9753c34fcd authorMichael Weiss <dev.primeos@gmail.com> dateTue 27 Aug 2019, 11:09 (7 years ago) parent9760593
1 file changed+7−29
pkgs/development/libraries/wlroots/default.nix+7−29
pkgs/development/libraries/wlroots/default.nix+7−29
@@ -6,18 +6,17 @@
66
77stdenv.mkDerivation rec {
88 pname = "wlroots";
9− version = "0.6.0";
9+ version = "0.7.0";
1010
1111 src = fetchFromGitHub {
1212 owner = "swaywm";
1313 repo = "wlroots";
1414 rev = version;
15− sha256 = "1rdcmll5b8w242n6yfjpsaprq280ck2jmbz46dxndhignxgda7k4";
15+ sha256 = "0jzxa6psbc7ddxli7rbfqxmv1svxnis51l1vch4hb9fdixqm284a";
1616 };
1717
18− # $out for the library, $bin for rootston, and $examples for the example
19− # programs (in examples) AND rootston
20− outputs = [ "out" "bin" "examples" ];
18+ # $out for the library and $examples for the example programs (in examples):
19+ outputs = [ "out" "examples" ];
2120
2221 nativeBuildInputs = [ meson ninja pkgconfig ];
2322
@@ -32,31 +31,13 @@ stdenv.mkDerivation rec {
3231 "-Dxcb-icccm=enabled" "-Dxcb-errors=enabled"
3332 ];
3433
35− postPatch = ''
36− # It happens from time to time that the version wasn't updated:
37− sed -iE "s/version: '[0-9]\.[0-9]\.[0-9]'/version: '${version}.0'/" meson.build
38− '';
39−
4034 postInstall = ''
41− # Copy the library to $bin and $examples
42− for output in "$bin" "$examples"; do
43− mkdir -p $output/lib
44− cp -P libwlroots* $output/lib/
45− done
35+ # Copy the library to $examples
36+ mkdir -p $examples/lib
37+ cp -P libwlroots* $examples/lib/
4638 '';
4739
4840 postFixup = ''
49− # Install rootston (the reference compositor) to $bin and $examples (this
50− # has to be done after the fixup phase to prevent broken binaries):
51− for output in "$bin" "$examples"; do
52− mkdir -p $output/bin
53− cp rootston/rootston $output/bin/
54− patchelf \
55− --set-rpath "$(patchelf --print-rpath $output/bin/rootston | sed s,$out,$output,g)" \
56− $output/bin/rootston
57− mkdir $output/etc
58− cp ../rootston/rootston.ini.example $output/etc/rootston.ini
59− done
6041 # Install ALL example programs to $examples:
6142 # screencopy dmabuf-capture input-inhibitor layer-shell idle-inhibit idle
6243 # screenshot output-layout multi-pointer rotation tablet touch pointer
@@ -65,9 +46,6 @@ stdenv.mkDerivation rec {
6546 cd ./examples
6647 for binary in $(find . -executable -type f -printf '%P\n' | grep -vE '\.so'); do
6748 cp "$binary" "$examples/bin/wlroots-$binary"
68− patchelf \
69− --set-rpath "$(patchelf --print-rpath $output/bin/rootston | sed s,$out,$examples,g)" \
70− "$examples/bin/wlroots-$binary"
7149 done
7250 '';
7351