11 , enableX11 ? true, xorg
14 rustPlatform.buildRustPackage rec {
15 pname = "centerpiece";
18 src = fetchFromGitHub {
22 hash = "sha256-1sKUGTBS9aTCQPuhkwv9fZ8F3N6yn98927fpp1e4fBU=";
25 cargoHash = "sha256-b7gI6Z5fiOA/Q2BbsmmGrKHgMzbICKPeK2i6YjlLnDo=";
27 nativeBuildInputs = [ pkg-config ];
34 ] ++ lib.optionals enableX11 (with xorg; [
41 postFixup = lib.optional stdenv.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";