Files
nixpkgs/pkgs/by-name/xc/xcircuit/package.nix
Dark Steveneq 646b892680
Some checks failed
Periodic Merges (6h) / master → staging-nixos (push) Failing after 12m50s
Periodic Merges (6h) / master → staging-next (push) Failing after 12m54s
Periodic Merges (24h) / merge-base(master,staging) → haskell-updates (push) Failing after 11m54s
Periodic Merges (6h) / staging-next → staging (push) Failing after 12m13s
Periodic Merges (24h) / staging-next-25.05 → staging-25.05 (push) Failing after 13m24s
Periodic Merges (24h) / release-25.05 → staging-next-25.05 (push) Failing after 14m28s
push sheeet
2025-10-09 14:15:47 +02:00

72 lines
1.2 KiB
Nix

{
lib,
stdenv,
fetchFromGitHub,
autoreconfHook,
automake,
pkg-config,
cairo,
ghostscript,
ngspice,
tcl,
tk,
xorg,
zlib,
}:
stdenv.mkDerivation {
version = "3.10.37";
pname = "xcircuit";
src = fetchFromGitHub {
owner = "RTimothyEdwards";
repo = "XCircuit";
rev = "0056213308c92bec909e8469a0fa1515b72fc3d2";
sha256 = "sha256-LXU5VEkLF1aKYz9ynI1qQjJUwt/zKFMPYj153OgJOOI=";
};
nativeBuildInputs = [
autoreconfHook
automake
pkg-config
];
hardeningDisable = [ "format" ];
configureFlags = [
"--with-tcl=${tcl}/lib"
"--with-tk=${tk}/lib"
"--with-ngspice=${lib.getBin ngspice}/bin/ngspice"
];
patches = [
# fix compilation with GCC 14
./declare-missing-prototype.patch
];
buildInputs = with xorg; [
cairo
ghostscript
libSM
libXt
libICE
libX11
libXpm
tcl
tk
zlib
];
meta = with lib; {
description = "Generic drawing program tailored to circuit diagrams";
mainProgram = "xcircuit";
homepage = "http://opencircuitdesign.com/xcircuit";
license = licenses.gpl2;
platforms = platforms.linux;
maintainers = with maintainers; [
john-shaffer
spacefrogg
thoughtpolice
];
};
}