blob: c51156d2c1ab117a35f2b4792e242ba9c423dd81 (
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
34
|
{ 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";
mainProgram = "xcircuit";
homepage = "http://opencircuitdesign.com/xcircuit";
license = licenses.gpl2;
platforms = platforms.linux;
maintainers = with maintainers; [ john-shaffer spacefrogg thoughtpolice ];
};
}
|