nixpkgs/pkgs/by-name/xc/xcircuit/package.nix

Ignoring revisions in .git-blame-ignore-revs. Click here to bypass and see the normal blame view.

35 lines
1.0 KiB
Nix
Raw Normal View History

2022-12-03 01:22:26 +00:00
{ lib, stdenv, fetchFromGitHub, autoreconfHook, automake, pkg-config
2018-06-13 11:21:34 +00:00
, cairo, ghostscript, ngspice, tcl, tk, xorg, zlib }:
2022-03-07 11:37:20 +00:00
stdenv.mkDerivation rec {
2022-12-03 01:22:26 +00:00
version = "3.10.37";
2022-03-07 11:37:20 +00:00
pname = "xcircuit";
2018-06-13 11:21:34 +00:00
2022-12-03 01:22:26 +00:00
src = fetchFromGitHub {
owner = "RTimothyEdwards";
repo = "XCircuit";
rev = "0056213308c92bec909e8469a0fa1515b72fc3d2";
sha256 = "sha256-LXU5VEkLF1aKYz9ynI1qQjJUwt/zKFMPYj153OgJOOI=";
2018-06-13 11:21:34 +00:00
};
nativeBuildInputs = [ autoreconfHook automake pkg-config ];
2018-06-13 11:21:34 +00:00
hardeningDisable = [ "format" ];
2018-07-25 21:44:21 +00:00
configureFlags = [
"--with-tcl=${tcl}/lib"
"--with-tk=${tk}/lib"
2022-03-07 11:37:20 +00:00
"--with-ngspice=${lib.getBin ngspice}/bin/ngspice"
2018-07-25 21:44:21 +00:00
];
2018-06-13 11:21:34 +00:00
buildInputs = with xorg; [ cairo ghostscript libSM libXt libICE libX11 libXpm tcl tk zlib ];
meta = with lib; {
2018-06-13 11:21:34 +00:00
description = "Generic drawing program tailored to circuit diagrams";
mainProgram = "xcircuit";
homepage = "http://opencircuitdesign.com/xcircuit";
2018-06-13 11:21:34 +00:00
license = licenses.gpl2;
platforms = platforms.linux;
2022-12-03 01:22:26 +00:00
maintainers = with maintainers; [ john-shaffer spacefrogg thoughtpolice ];
2018-06-13 11:21:34 +00:00
};
}