1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
|
{
fetchFromGitHub,
glib,
goocanvas2,
gnucap,
groff,
gtk3,
gtksourceview,
intltool,
libxml2,
lib,
makeWrapper,
ngspice,
perl,
pkg-config,
python3,
stdenv,
wafHook,
wrapGAppsHook3,
useNgspice ? false,
}: let
version = "0.84.43";
in
stdenv.mkDerivation {
pname = "oregano";
inherit version;
src = fetchFromGitHub {
owner = "drahnr";
repo = "oregano";
rev = "v${version}";
hash = "sha256-1GsL0N3O0clqdgkXoPKMhvW+y4Rzg4QSeOA54nH4kz4=";
};
nativeBuildInputs = [makeWrapper wafHook wrapGAppsHook3];
patches = [./check-cfg-gio-unix.patch];
buildInputs = [
glib
goocanvas2
groff
gtk3
gtksourceview
intltool
libxml2
perl
pkg-config
python3
];
postFixup = ''
wrapProgram $out/bin/oregano \
--suffix PATH : ${lib.makeBinPath [
(
if useNgspice
then ngspice
else gnucap
)
]}
'';
meta = with lib; {
description = "Schematic capture and circuit simulator";
longDescription = ''
Oregano is an application for schematic capture and simulation of
electronic circuits. The actual simulation is performed by Berkeley
Spice, GNUcap or the new generation ngspice.
'';
homepage = "https://github.com/drahnr/oregano/";
license = licenses.gpl2;
platforms = lib.platforms.linux;
maintainers = with maintainers; [_3442];
};
}
|