summary refs log tree commit diff
path: root/pkgs/applications/science/electronics/qucs/default.nix
blob: eeb10b3a5a1dc139475a97abb58bedc46d57837d (plain) (blame)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
{lib, stdenv, fetchFromGitHub, flex, bison, qt4, libX11, cmake, gperf, adms }:

stdenv.mkDerivation rec {
  version = "0.0.19";
  pname = "qucs";

  src = fetchFromGitHub {
    owner = "Qucs";
    repo = "qucs";
    rev = "qucs-${version}";
    sha256 = "106h3kjyg7c0hkmzkin7h8fcl32n60835121b2qqih8ixi6r5id6";
  };

  QTDIR=qt4;

  patches = [
    ./cmakelists.patch
  ];

  nativeBuildInputs = [ cmake flex bison ];
  buildInputs = [ qt4 libX11 gperf adms ];

  meta = {
    description = "Integrated circuit simulator";
    homepage = "https://qucs.sourceforge.net";
    license = lib.licenses.gpl2Plus;
    maintainers = with lib.maintainers; [viric];
    platforms = with lib.platforms; linux;
  };
}