1
0
Fork 1
mirror of https://github.com/NixOS/nixpkgs.git synced 2024-11-17 19:21:04 +00:00

surfer: init at v0.2.0

This commit is contained in:
hakan-demirli 2024-07-06 17:36:26 +03:00 committed by aleksana
parent 4929fa19e6
commit be9a316660
2 changed files with 6261 additions and 0 deletions

6184
pkgs/by-name/su/surfer/Cargo.lock generated Normal file

File diff suppressed because it is too large Load diff

View file

@ -0,0 +1,77 @@
{
lib,
fetchFromGitLab,
rustPlatform,
pkg-config,
openssl,
wayland,
autoPatchelfHook,
libxkbcommon,
libGL,
libX11,
libXcursor,
libXi,
stdenv,
makeWrapper,
zenity,
}:
rustPlatform.buildRustPackage rec {
pname = "surfer";
version = "0.2.0";
src = fetchFromGitLab {
owner = "surfer-project";
repo = "surfer";
rev = "v${version}";
hash = "sha256-C5jyWLs7fdEn2oW5BORZYazQwjXNxf8ketYFwlVkHpA";
fetchSubmodules = true;
};
nativeBuildInputs = [
pkg-config
autoPatchelfHook
makeWrapper
];
buildInputs = [
openssl
stdenv.cc.cc.lib
];
# Wayland and X11 libs are required at runtime since winit uses dlopen
runtimeDependencies = [
wayland
libxkbcommon
libGL
libX11
libXcursor
libXi
];
cargoLock = {
lockFile = ./Cargo.lock;
outputHashes = {
"codespan-0.12.0" = "sha256-3F2006BR3hyhxcUTaQiOjzTEuRECKJKjIDyXonS/lrE=";
"egui_skia-0.5.0" = "sha256-dpkcIMPW+v742Ov18vjycLDwnn1JMsvbX6qdnuKOBC4=";
"tracing-tree-0.2.0" = "sha256-/JNeAKjAXmKPh0et8958yS7joORDbid9dhFB0VUAhZc=";
};
};
# Avoid the network attempt from skia. See: https://github.com/cargo2nix/cargo2nix/issues/318
doCheck = false;
postFixup = ''
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;
mainProgram = "surfer";
};
}