mirror of
https://github.com/NixOS/nixpkgs.git
synced 2024-12-29 09:04:17 +00:00
571c71e6f7
We are migrating packages that meet below requirements: 1. using `callPackage` 2. called path is a directory 3. overriding set is empty (`{ }`) 4. not containing path expressions other than relative path (to makenixpkgs-vet happy) 5. not referenced by nix files outside of the directory, other than`pkgs/top-level/all-packages.nix` 6. not referencing nix files outside of the directory 7. not referencing `default.nix` (since it's changed to `package.nix`) 8. `outPath` doesn't change after migration The tool is here: https://github.com/Aleksanaa/by-name-migrate.
35 lines
1.0 KiB
Nix
35 lines
1.0 KiB
Nix
{ lib, stdenv, fetchFromGitHub, autoreconfHook, automake, pkg-config
|
|
, cairo, ghostscript, ngspice, tcl, tk, xorg, zlib }:
|
|
|
|
stdenv.mkDerivation rec {
|
|
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"
|
|
];
|
|
|
|
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 ];
|
|
};
|
|
}
|