59 rpath = lib.makeLibraryPath [
87 buildType = "Release";
90 "aarch64-linux" = "linuxarm64";
91 "x86_64-linux" = "linux64";
93 .${stdenv.hostPlatform.system} or (throw "Unsupported system: ${stdenv.hostPlatform.system}");
94 cef-bin-name = "cef_binary_120.1.10+g3ce3184+chromium-120.0.6099.129_${platform}";
95 cef-bin = stdenv.mkDerivation {
97 version = "120.0.6099.129";
102 "linuxarm64" = "sha256-iu8y2r1rd78fV2argulHoZJG+hPMPDKJ9ysnUyIgo5k=";
103 "linux64" = "sha256-FFkFMMkTSseLZIDzESFl8+h7wRhv5QGi1Uy5MViYpX8=";
106 urlName = builtins.replaceStrings [ "+" ] [ "%2B" ] cef-bin-name;
109 url = "https://cef-builds.spotifycdn.com/${urlName}.tar.bz2";
118 patchelf $out/${buildType}/libcef.so --set-rpath "${rpath}" --add-needed libudev.so
119 patchelf $out/${buildType}/libGLESv2.so --set-rpath "${rpath}" --add-needed libGL.so.1
120 patchelf $out/${buildType}/chrome-sandbox --set-interpreter $(cat $NIX_BINTOOLS/nix-support/dynamic-linker)
121 sed 's/-O0/-O2/' -i $out/cmake/cef_variables.cmake
126 description = "Simple framework for embedding Chromium-based browsers in other applications";
127 homepage = "https://cef-builds.spotifycdn.com/index.html";
128 sourceProvenance = with lib.sourceTypes; [ binaryNativeCode ];
129 license = lib.licenses.bsd3;
161 stdenv.mkDerivation {
162 pname = "linux-wallpaperengine";
163 version = "0-unstable-2024-11-8";
165 src = fetchFromGitHub {
167 repo = "linux-wallpaperengine";
168 rev = "4a063d0b84d331a0086b3f4605358ee177328d41";
169 hash = "sha256-IRTGFxHPRRRSg0J07pq8fpo1XbMT4aZC+wMVimZlH/Y=";
172 nativeBuildInputs = [
182 "-DCMAKE_BUILD_TYPE=${buildType}"
183 "-DCMAKE_INSTALL_PREFIX=${placeholder "out"}/linux-wallpaperengine"
188 mkdir -p third_party/cef/
189 ln -s ${cef-bin} third_party/cef/${cef-bin-name}
193 patchelf --set-rpath "${lib.makeLibraryPath buildInputs}:${cef-bin}" $out/linux-wallpaperengine/linux-wallpaperengine
194 find $out -exec chmod 755 {} +
196 makeWrapper $out/linux-wallpaperengine/linux-wallpaperengine $out/bin/linux-wallpaperengine
200 description = "Wallpaper Engine backgrounds for Linux";
201 homepage = "https://github.com/Almamu/linux-wallpaperengine";
202 license = lib.licenses.gpl3Plus;
203 mainProgram = "linux-wallpaperengine";
204 maintainers = with lib.maintainers; [ aucub ];