3
0
Fork 0
forked from mirrors/nixpkgs
nixpkgs/pkgs/applications/science/electronics/xcircuit/default.nix

36 lines
1 KiB
Nix
Raw Normal View History

2018-06-13 12:21:34 +01:00
{ stdenv, fetchurl, autoreconfHook, automake, pkgconfig
, cairo, ghostscript, ngspice, tcl, tk, xorg, zlib }:
let
version = "3.10.12";
2018-06-13 12:21:34 +01:00
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";
2018-06-13 12:21:34 +01:00
};
nativeBuildInputs = [ autoreconfHook automake pkgconfig ];
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 ];
meta = with stdenv.lib; {
description = "Generic drawing program tailored to circuit diagrams";
homepage = "http://opencircuitdesign.com/xcircuit";
2018-06-13 12:21:34 +01:00
license = licenses.gpl2;
platforms = platforms.linux;
maintainers = with maintainers; [ spacefrogg thoughtpolice ];
2018-06-13 12:21:34 +01:00
};
}