about summary refs log tree commit diff
path: root/nixpkgs/pkgs/applications/science/electronics/xcircuit/default.nix
blob: 61b63ff1d7a46d36b63adf7d9302e2717f0db9b0 (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
31
32
33
{ lib, stdenv, fetchFromGitHub, autoreconfHook, automake, pkg-config
, cairo, ghostscript, ngspice, tcl, tk, xorg, zlib }:

stdenv.mkDerivation rec {
  version = "3.10.37";
  pname = "xcircuit";

  src = fetchFromGitHub {
    owner = "RTimothyEdwards";
    repo = "XCircuit";
    rev = "0056213308c92bec909e8469a0fa1515b72fc3d2";
    sha256 = "sha256-LXU5VEkLF1aKYz9ynI1qQjJUwt/zKFMPYj153OgJOOI=";
  };

  nativeBuildInputs = [ autoreconfHook automake pkg-config ];
  hardeningDisable = [ "format" ];

  configureFlags = [
    "--with-tcl=${tcl}/lib"
    "--with-tk=${tk}/lib"
    "--with-ngspice=${lib.getBin ngspice}/bin/ngspice"
  ];

  buildInputs = with xorg; [ cairo ghostscript libSM libXt libICE libX11 libXpm tcl tk zlib ];

  meta = with lib; {
    description = "Generic drawing program tailored to circuit diagrams";
    homepage = "http://opencircuitdesign.com/xcircuit";
    license = licenses.gpl2;
    platforms = platforms.linux;
    maintainers = with maintainers; [ john-shaffer spacefrogg thoughtpolice ];
  };
}