mirror of
https://github.com/NixOS/nixpkgs.git
synced 2024-12-24 10:56:56 +00:00
9bb3fccb5b
continuation of #109595 pkgconfig was aliased in 2018, however, it remained in all-packages.nix due to its wide usage. This cleans up the remaining references to pkgs.pkgsconfig and moves the entry to aliases.nix. python3Packages.pkgconfig remained unchanged because it's the canonical name of the upstream package on pypi.
36 lines
1 KiB
Nix
36 lines
1 KiB
Nix
{ lib, stdenv, fetchurl, autoreconfHook, automake, pkg-config
|
|
, cairo, ghostscript, ngspice, tcl, tk, xorg, zlib }:
|
|
|
|
let
|
|
version = "3.10.12";
|
|
name = "xcircuit-${version}";
|
|
inherit (lib) getBin;
|
|
|
|
in stdenv.mkDerivation {
|
|
inherit name version;
|
|
|
|
src = fetchurl {
|
|
url = "http://opencircuitdesign.com/xcircuit/archive/${name}.tgz";
|
|
sha256 = "1h1ywc3mr7plvwnhdii2zgnnv5ih2nhyl4qbdjpi83dq0aq1s2mn";
|
|
};
|
|
|
|
nativeBuildInputs = [ autoreconfHook automake pkg-config ];
|
|
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 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 ];
|
|
};
|
|
}
|