summary refs log tree commit diff
path: root/pkgs/applications
diff options
context:
space:
mode:
authorspacefrogg <spacefrogg-github@meterriblecrew.net>2018-06-13 13:21:34 +0200
committerxeji <36407913+xeji@users.noreply.github.com>2018-06-13 13:21:34 +0200
commit0cc43968185f947d1ea9b499e207629d65416ee4 (patch)
tree58f1da1476d4cf8572f4c60aa5b8f2d29108f41b /pkgs/applications
parent99bce98dd6f26295b22b9fb91af1ae429473d57d (diff)
downloadnixpkgs-0cc43968185f947d1ea9b499e207629d65416ee4.tar
nixpkgs-0cc43968185f947d1ea9b499e207629d65416ee4.tar.gz
nixpkgs-0cc43968185f947d1ea9b499e207629d65416ee4.tar.bz2
nixpkgs-0cc43968185f947d1ea9b499e207629d65416ee4.tar.lz
nixpkgs-0cc43968185f947d1ea9b499e207629d65416ee4.tar.xz
nixpkgs-0cc43968185f947d1ea9b499e207629d65416ee4.tar.zst
nixpkgs-0cc43968185f947d1ea9b499e207629d65416ee4.zip
xcircuit: init at 3.9.73 (#41891)
Diffstat (limited to 'pkgs/applications')
-rw-r--r--pkgs/applications/science/electronics/xcircuit/default.nix31
1 files changed, 31 insertions, 0 deletions
diff --git a/pkgs/applications/science/electronics/xcircuit/default.nix b/pkgs/applications/science/electronics/xcircuit/default.nix
new file mode 100644
index 00000000000..ba2a170e625
--- /dev/null
+++ b/pkgs/applications/science/electronics/xcircuit/default.nix
@@ -0,0 +1,31 @@
+{ stdenv, fetchurl, autoreconfHook, automake, pkgconfig
+, cairo, ghostscript, ngspice, tcl, tk, xorg, zlib }:
+
+let
+  version = "3.9.73";
+  name = "xcircuit-${version}";
+  inherit (stdenv.lib) getBin;
+
+in stdenv.mkDerivation {
+  inherit name version;
+
+  src = fetchurl {
+    url = "http://opencircuitdesign.com/xcircuit/archive/${name}.tgz";
+    sha256 = "1kj9hayipplzm4960kx48vxddqj154qnxkccaqj9cnkp62b7q3jg";
+  };
+
+  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 = [ maintainers.spacefrogg ];
+  };
+}