1{
2 lib,
3 rustPlatform,
4 fetchFromGitHub,
5 pkg-config-rs,
6 webkitgtk_4_1,
7}:
8rustPlatform.buildRustPackage rec {
9 pname = "sidecar";
10 version = "1.0.0";
11
12 src = fetchFromGitHub {
13 owner = "runtimed";
14 repo = "runtimed";
15 rev = "${pname}-v${version}";
16 hash = "sha256-iykPYOKHrYcK6K5IqtHD2WLxpcrBuYXj27eAhESOsgs=";
17 };
18
19 patches = [./wayland.patch];
20
21 cargoLock = {
22 lockFile = ./Cargo.lock;
23 };
24
25 postPatch = ''
26 ln -s ${./Cargo.lock} Cargo.lock
27 '';
28
29 cargoBuildFlags = ["-p" pname];
30
31 nativeBuildInputs = [
32 pkg-config-rs
33 ];
34
35 buildInputs = [
36 webkitgtk_4_1
37 ];
38
39 meta = {
40 description = "Jupyter Notebook Viewer";
41 homepage = "https://github.com/runtimed/runtimed/";
42 license = lib.licenses.bsd3;
43 maintainers = with lib.maintainers; [noverby];
44 mainProgram = "sidecar";
45 };
46}