2021-01-19 06:50:56 +00:00
|
|
|
{ lib, stdenv, fetchurl, autoreconfHook, automake, pkg-config
|
2018-06-13 12:21:34 +01:00
|
|
|
, cairo, ghostscript, ngspice, tcl, tk, xorg, zlib }:
|
|
|
|
|
|
|
|
let
|
2020-03-25 22:43:53 +00:00
|
|
|
version = "3.10.12";
|
2018-06-13 12:21:34 +01:00
|
|
|
name = "xcircuit-${version}";
|
2021-01-15 13:21:58 +00:00
|
|
|
inherit (lib) getBin;
|
2018-06-13 12:21:34 +01:00
|
|
|
|
|
|
|
in stdenv.mkDerivation {
|
|
|
|
inherit name version;
|
|
|
|
|
|
|
|
src = fetchurl {
|
|
|
|
url = "http://opencircuitdesign.com/xcircuit/archive/${name}.tgz";
|
2020-03-25 22:43:53 +00:00
|
|
|
sha256 = "1h1ywc3mr7plvwnhdii2zgnnv5ih2nhyl4qbdjpi83dq0aq1s2mn";
|
2018-06-13 12:21:34 +01:00
|
|
|
};
|
|
|
|
|
2021-01-19 06:50:56 +00:00
|
|
|
nativeBuildInputs = [ autoreconfHook automake pkg-config ];
|
2018-06-13 12:21:34 +01:00
|
|
|
hardeningDisable = [ "format" ];
|
|
|
|
|
2018-07-25 22:44:21 +01:00
|
|
|
configureFlags = [
|
|
|
|
"--with-tcl=${tcl}/lib"
|
|
|
|
"--with-tk=${tk}/lib"
|
|
|
|
"--with-ngspice=${getBin ngspice}/bin/ngspice"
|
|
|
|
];
|
2018-06-13 12:21:34 +01:00
|
|
|
|
|
|
|
buildInputs = with xorg; [ cairo ghostscript libSM libXt libICE libX11 libXpm tcl tk zlib ];
|
|
|
|
|
2021-01-11 07:54:33 +00:00
|
|
|
meta = with lib; {
|
2018-06-13 12:21:34 +01:00
|
|
|
description = "Generic drawing program tailored to circuit diagrams";
|
2020-04-01 02:11:51 +01:00
|
|
|
homepage = "http://opencircuitdesign.com/xcircuit";
|
2018-06-13 12:21:34 +01:00
|
|
|
license = licenses.gpl2;
|
|
|
|
platforms = platforms.linux;
|
2020-03-25 22:43:53 +00:00
|
|
|
maintainers = with maintainers; [ spacefrogg thoughtpolice ];
|
2018-06-13 12:21:34 +01:00
|
|
|
};
|
|
|
|
}
|