Files
nixpkgs/pkgs/by-name/su/surfer/package.nix
Dark Steveneq 646b892680
Some checks failed
Periodic Merges (6h) / master → staging-nixos (push) Failing after 12m50s
Periodic Merges (6h) / master → staging-next (push) Failing after 12m54s
Periodic Merges (24h) / merge-base(master,staging) → haskell-updates (push) Failing after 11m54s
Periodic Merges (6h) / staging-next → staging (push) Failing after 12m13s
Periodic Merges (24h) / staging-next-25.05 → staging-25.05 (push) Failing after 13m24s
Periodic Merges (24h) / release-25.05 → staging-next-25.05 (push) Failing after 14m28s
push sheeet
2025-10-09 14:15:47 +02:00

71 lines
1.6 KiB
Nix

{
lib,
fetchFromGitLab,
rustPlatform,
pkg-config,
openssl,
wayland,
autoPatchelfHook,
libxkbcommon,
libGL,
libX11,
libXcursor,
libXi,
stdenv,
makeWrapper,
zenity,
}:
rustPlatform.buildRustPackage rec {
pname = "surfer";
version = "0.3.0";
src = fetchFromGitLab {
owner = "surfer-project";
repo = "surfer";
rev = "v${version}";
hash = "sha256-mvHyljAEVi1FMkEbKsPmCNx2Cg0/Ydw3ZQCZsowEKGc=";
fetchSubmodules = true;
};
nativeBuildInputs = lib.optionals stdenv.hostPlatform.isLinux [
pkg-config
autoPatchelfHook
makeWrapper
];
buildInputs = lib.optionals stdenv.hostPlatform.isLinux [
openssl
(lib.getLib stdenv.cc.cc)
];
# Wayland and X11 libs are required at runtime since winit uses dlopen
runtimeDependencies = lib.optionals stdenv.hostPlatform.isLinux [
wayland
libxkbcommon
libGL
libX11
libXcursor
libXi
];
cargoHash = "sha256-89pkHS0YQ77PmQfT8epdu2tPRNAenYGgtoiJVuuVYiI=";
# Avoid the network attempt from skia. See: https://github.com/cargo2nix/cargo2nix/issues/318
doCheck = false;
postFixup = lib.optionalString stdenv.hostPlatform.isLinux ''
wrapProgram $out/bin/surfer \
--prefix PATH : ${lib.makeBinPath [ zenity ]}
'';
meta = {
description = "Extensible and Snappy Waveform Viewer";
homepage = "https://surfer-project.org/";
changelog = "https://gitlab.com/surfer-project/surfer/-/releases/v${version}";
license = lib.licenses.eupl12;
maintainers = with lib.maintainers; [ hakan-demirli ];
platforms = lib.platforms.linux ++ lib.platforms.darwin;
mainProgram = "surfer";
};
}