nur-packages

My NUR packages
git clone git://git.sikmir.ru/nur-packages
Log | Files | Refs | README | LICENSE

commit 73cc270b9e35c5ae712e47a2f64346008355a506
parent b1a183d0af033c85809986d29adaa531153f931f
Author: Nikolay Korotkiy <sikmir@disroot.org>
Date:   Sun, 16 Apr 2023 22:01:44 +0400

Add serial-studio

Diffstat:
Mpkgs/default.nix | 2++
Apkgs/misc/serial-studio/bin.nix | 32++++++++++++++++++++++++++++++++
Apkgs/misc/serial-studio/default.nix | 27+++++++++++++++++++++++++++
3 files changed, 61 insertions(+), 0 deletions(-)

diff --git a/pkgs/default.nix b/pkgs/default.nix @@ -354,6 +354,8 @@ lib.makeScope newScope ( repolocli = callPackage ./misc/repolocli { }; rst2txt = callPackage ./misc/rst2txt { }; sdorfehs = callPackage ./misc/sdorfehs { }; + serial-studio = libsForQt5.callPackage ./misc/serial-studio { }; + serial-studio-bin = callPackage ./misc/serial-studio/bin.nix { }; serverpp = callPackage ./misc/serverpp { }; taskcoach = callPackage ./misc/taskcoach { }; tcvt = callPackage ./misc/tcvt { }; diff --git a/pkgs/misc/serial-studio/bin.nix b/pkgs/misc/serial-studio/bin.nix @@ -0,0 +1,32 @@ +{ lib, stdenv, fetchfromgh, unzip }: + +stdenv.mkDerivation (finalAttrs: { + pname = "serial-studio-bin"; + version = "1.1.7"; + + src = fetchfromgh { + owner = "Serial-Studio"; + repo = "Serial-Studio"; + name = "SerialStudio-${finalAttrs.version}-macOS.zip"; + hash = "sha256-Hl3HoBfDum4APCXpKwQTkrCdTu3UyCnbzHn1omxc9Nc="; + version = "v${finalAttrs.version}"; + }; + + sourceRoot = "."; + + nativeBuildInputs = [ unzip ]; + + installPhase = '' + mkdir -p $out/Applications + cp -r *.app $out/Applications + ''; + + meta = with lib; { + description = "Multi-purpose serial data visualization & processing program"; + homepage = "https://serial-studio.github.io/"; + license = licenses.mit; + maintainers = [ maintainers.sikmir ]; + platforms = [ "aarch64-darwin" "x86_64-darwin" ]; + skip.ci = true; + }; +}) diff --git a/pkgs/misc/serial-studio/default.nix b/pkgs/misc/serial-studio/default.nix @@ -0,0 +1,27 @@ +{ lib, stdenv, fetchFromGitHub, qmake, qtquickcontrols2, qtserialport, qtsvg, wrapQtAppsHook }: + +stdenv.mkDerivation rec { + pname = "serial-studio"; + version = "1.1.7"; + + src = fetchFromGitHub { + owner = "Serial-Studio"; + repo = "Serial-Studio"; + rev = "v${version}"; + hash = "sha256-Tsd1PGB7cO8h3HDifOtB8jsnj+fS4a/o5nfLoohVLM4="; + fetchSubmodules = true; + }; + + nativeBuildInputs = [ qmake wrapQtAppsHook ]; + + buildInputs = [ qtquickcontrols2 qtserialport qtsvg ]; + + meta = with lib; { + description = "Multi-purpose serial data visualization & processing program"; + homepage = "https://serial-studio.github.io/"; + license = licenses.mit; + maintainers = [ maintainers.sikmir ]; + platforms = platforms.unix; + broken = stdenv.isDarwin; + }; +}