depot/third_party/nixpkgs/pkgs/applications/science/electronics/xcircuit/default.nix
Default email 8ac5e011d6 Project import generated by Copybara.
GitOrigin-RevId: 2c3273caa153ee8eb5786bc8141b85b859e7efd7
2020-04-24 19:36:52 -04:00

35 lines
1 KiB
Nix

{ stdenv, fetchurl, autoreconfHook, automake, pkgconfig
, cairo, ghostscript, ngspice, tcl, tk, xorg, zlib }:
let
version = "3.10.12";
name = "xcircuit-${version}";
inherit (stdenv.lib) getBin;
in stdenv.mkDerivation {
inherit name version;
src = fetchurl {
url = "http://opencircuitdesign.com/xcircuit/archive/${name}.tgz";
sha256 = "1h1ywc3mr7plvwnhdii2zgnnv5ih2nhyl4qbdjpi83dq0aq1s2mn";
};
nativeBuildInputs = [ autoreconfHook automake pkgconfig ];
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 ];
meta = with stdenv.lib; {
description = "Generic drawing program tailored to circuit diagrams";
homepage = "http://opencircuitdesign.com/xcircuit";
license = licenses.gpl2;
platforms = platforms.linux;
maintainers = with maintainers; [ spacefrogg thoughtpolice ];
};
}