Skip to content

Instantly share code, notes, and snippets.

@punzik
Created February 21, 2022 13:25
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save punzik/17891b0993c5479ce011076e01a1e28c to your computer and use it in GitHub Desktop.
Save punzik/17891b0993c5479ce011076e01a1e28c to your computer and use it in GitHub Desktop.
QUCS-S 0.0.23 derivation
{ stdenv, lib, fetchFromGitHub, flex, bison, qtbase, qtscript, libX11, cmake, gperf, adms,
ngspice, wrapQtAppsHook, kernels ? [ ngspice ] }:
stdenv.mkDerivation rec {
pname = "qucs-s";
version = "0.0.23";
src = fetchFromGitHub {
owner = "ra3xdh";
repo = "qucs_s";
rev = version;
sha256 = "1zbqwvmsgxygiryn5qr7zgicfjzq4qq8gc0vmpzy23zgpzf4px0j";
};
nativeBuildInputs = [ wrapQtAppsHook cmake ];
buildInputs = [ flex bison qtbase qtscript libX11 gperf adms ] ++ kernels;
qtWrapperArgs = [ "--prefix PATH : ${lib.makeBinPath kernels}" ];
doInstallCheck = true;
installCheck = ''
$out/bin/qucs-s --version
'';
meta = with lib; {
description = "Spin-off of Qucs that allows custom simulation kernels";
longDescription = ''
Spin-off of Qucs that allows custom simulation kernels.
Default version is installed with ngspice.
'';
homepage = "https://ra3xdh.github.io/";
license = licenses.gpl2Plus;
maintainers = with maintainers; [ mazurel ];
platforms = with platforms; linux;
};
}
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment