18 rustPlatform.buildRustPackage rec {
22 src = fetchFromGitLab {
23 owner = "surfer-project";
26 hash = "sha256-C5jyWLs7fdEn2oW5BORZYazQwjXNxf8ketYFwlVkHpA";
27 fetchSubmodules = true;
41 # Wayland and X11 libs are required at runtime since winit uses dlopen
42 runtimeDependencies = [
52 lockFile = ./Cargo.lock;
54 "codespan-0.12.0" = "sha256-3F2006BR3hyhxcUTaQiOjzTEuRECKJKjIDyXonS/lrE=";
55 "egui_skia-0.5.0" = "sha256-dpkcIMPW+v742Ov18vjycLDwnn1JMsvbX6qdnuKOBC4=";
56 "tracing-tree-0.2.0" = "sha256-/JNeAKjAXmKPh0et8958yS7joORDbid9dhFB0VUAhZc=";
60 # Avoid the network attempt from skia. See: https://github.com/cargo2nix/cargo2nix/issues/318
64 wrapProgram $out/bin/surfer \
65 --prefix PATH : ${lib.makeBinPath [ zenity ]}
69 description = "Extensible and Snappy Waveform Viewer";
70 homepage = "https://surfer-project.org/";
71 changelog = "https://gitlab.com/surfer-project/surfer/-/releases/v${version}";
72 license = lib.licenses.eupl12;
73 maintainers = with lib.maintainers; [ hakan-demirli ];
74 platforms = lib.platforms.linux;
75 mainProgram = "surfer";