2021-02-05 17:12:51 +00:00
|
|
|
{ lib, stdenv, fetchurl, autoreconfHook, automake, pkg-config
|
2020-04-24 23:36:52 +00:00
|
|
|
, cairo, ghostscript, ngspice, tcl, tk, xorg, zlib }:
|
|
|
|
|
|
|
|
let
|
|
|
|
version = "3.10.12";
|
|
|
|
name = "xcircuit-${version}";
|
2021-01-17 00:15:33 +00:00
|
|
|
inherit (lib) getBin;
|
2020-04-24 23:36:52 +00:00
|
|
|
|
|
|
|
in stdenv.mkDerivation {
|
|
|
|
inherit name version;
|
|
|
|
|
|
|
|
src = fetchurl {
|
|
|
|
url = "http://opencircuitdesign.com/xcircuit/archive/${name}.tgz";
|
|
|
|
sha256 = "1h1ywc3mr7plvwnhdii2zgnnv5ih2nhyl4qbdjpi83dq0aq1s2mn";
|
|
|
|
};
|
|
|
|
|
2021-02-05 17:12:51 +00:00
|
|
|
nativeBuildInputs = [ autoreconfHook automake pkg-config ];
|
2020-04-24 23:36:52 +00:00
|
|
|
hardeningDisable = [ "format" ];
|
|
|
|
|
|
|
|
configureFlags = [
|
|
|
|
"--with-tcl=${tcl}/lib"
|
|
|
|
"--with-tk=${tk}/lib"
|
|
|
|
"--with-ngspice=${getBin ngspice}/bin/ngspice"
|
|
|
|
];
|
|
|
|
|
|
|
|
buildInputs = with xorg; [ cairo ghostscript libSM libXt libICE libX11 libXpm tcl tk zlib ];
|
|
|
|
|
2021-01-15 22:18:51 +00:00
|
|
|
meta = with lib; {
|
2020-04-24 23:36:52 +00:00
|
|
|
description = "Generic drawing program tailored to circuit diagrams";
|
|
|
|
homepage = "http://opencircuitdesign.com/xcircuit";
|
|
|
|
license = licenses.gpl2;
|
|
|
|
platforms = platforms.linux;
|
|
|
|
maintainers = with maintainers; [ spacefrogg thoughtpolice ];
|
|
|
|
};
|
|
|
|
}
|