11 , enableX11 ? true, xorg
14 rustPlatform.buildRustPackage rec {
15 pname = "centerpiece";
18 src = fetchFromGitHub {
22 hash = "sha256-tZNwMPL1ITWVvoywojsd5j0GIVQt6pOKFLwi7jwqLKg=";
25 cargoHash = "sha256-d5qGuQ8EnIkE/PhI9t4JxtnNbvh3rse9NpowZ+ESZuU=";
27 nativeBuildInputs = [ pkg-config ];
34 ] ++ lib.optionals enableX11 (with xorg; [
41 postFixup = lib.optional stdenv.hostPlatform.isLinux ''
42 rpath=$(patchelf --print-rpath $out/bin/centerpiece)
43 patchelf --set-rpath "$rpath:${
50 }" $out/bin/centerpiece
54 homepage = "https://github.com/friedow/centerpiece";
55 description = "Your trusty omnibox search";
56 license = licenses.mit;
57 maintainers = with maintainers; [ a-kenji friedow ];
58 platforms = platforms.linux;
59 mainProgram = "centerpiece";