From 30a4e6db2a30994ce66c45599370b98eaed25f33 Mon Sep 17 00:00:00 2001 From: Ben Gamari Date: Thu, 22 Aug 2024 18:32:14 -0400 Subject: [PATCH 1/2] ffts: init at unstable-2019-03-19 Co-Authored-By: Hans Baier --- pkgs/by-name/ff/ffts/package.nix | 30 ++++++++++++++++++++++++++++++ 1 file changed, 30 insertions(+) create mode 100644 pkgs/by-name/ff/ffts/package.nix diff --git a/pkgs/by-name/ff/ffts/package.nix b/pkgs/by-name/ff/ffts/package.nix new file mode 100644 index 000000000000..50ea6c26d21b --- /dev/null +++ b/pkgs/by-name/ff/ffts/package.nix @@ -0,0 +1,30 @@ +{ + stdenv, + lib, + cmake, + fetchFromGitHub, +}: + +stdenv.mkDerivation rec { + pname = "ffts"; + version = "0-unstable-2019-03-19"; + + src = fetchFromGitHub { + owner = "linkotec"; + repo = "ffts"; + rev = "2c8da4877588e288ff4cd550f14bec2dc7bf668c"; + hash = "sha256-Cj0n7fwFAu6+3ojgczL0Unobdx/XzGNFvNVMXdyHXE4="; + }; + + nativeBuildInputs = [ cmake ]; + + cmakeFlags = [ "-DENABLE_SHARED=ON" ]; + + meta = { + description = "The Fastest Fourier Transform in the South"; + homepage = "https://github.com/linkotec/ffts"; + license = lib.licenses.mit; + maintainers = with lib.maintainers; [ bgamari ]; + platforms = lib.platforms.linux; + }; +} From 05c82673cae335c0c881f13a99e0a3bf8bec9a53 Mon Sep 17 00:00:00 2001 From: Ben Gamari Date: Thu, 22 Aug 2024 18:31:33 -0400 Subject: [PATCH 2/2] scopehal-apps: init at unstable-2024-08-22 Co-Authored-By: Hans Baier --- pkgs/by-name/sc/scopehal-apps/package.nix | 79 +++++++++++++++++++++++ 1 file changed, 79 insertions(+) create mode 100644 pkgs/by-name/sc/scopehal-apps/package.nix diff --git a/pkgs/by-name/sc/scopehal-apps/package.nix b/pkgs/by-name/sc/scopehal-apps/package.nix new file mode 100644 index 000000000000..9b13dcf52be5 --- /dev/null +++ b/pkgs/by-name/sc/scopehal-apps/package.nix @@ -0,0 +1,79 @@ +{ + stdenv, + lib, + fetchFromGitHub, + cmake, + pkg-config, + gtkmm3, + cairomm, + yaml-cpp, + glfw, + libtirpc, + liblxi, + libsigcxx, + glew, + zstd, + wrapGAppsHook4, + shaderc, + vulkan-headers, + vulkan-loader, + vulkan-tools, + glslang, + spirv-tools, + ffts, +}: + +stdenv.mkDerivation rec { + pname = "scopehal-apps"; + version = "0-unstable-2024-09-16"; + + src = fetchFromGitHub { + owner = "ngscopeclient"; + repo = "scopehal-apps"; + rev = "d2a1a2f17e9398a3f60c99483dd2f6dbc2e62efc"; + hash = "sha256-FQoaTuL6mEqnH8oNXwHpDcOEAPGExqj6lhrUhZ9VAQ4="; + fetchSubmodules = true; + }; + + strictDeps = true; + + nativeBuildInputs = [ + cmake + pkg-config + shaderc + spirv-tools + wrapGAppsHook4 + ]; + + buildInputs = [ + cairomm + ffts + glew + glfw + glslang + gtkmm3 + liblxi + libsigcxx + libtirpc + vulkan-headers + vulkan-loader + vulkan-tools + yaml-cpp + zstd + ]; + + # Targets InitializeSearchPaths + postPatch = '' + substituteInPlace lib/scopehal/scopehal.cpp \ + --replace-fail '"/share/' '"/../share/' + ''; + + meta = { + description = "Advanced test & measurement remote control and analysis suite"; + homepage = "https://www.ngscopeclient.org/"; + license = lib.licenses.bsd3; + mainProgram = "ngscopeclient"; + maintainers = with lib.maintainers; [ bgamari ]; + platforms = lib.platforms.linux; + }; +}