diff options
Diffstat (limited to 'pkgs/oregano')
| -rw-r--r-- | pkgs/oregano/check-cfg-gio-unix.patch (renamed from pkgs/oregano/gio-unix.patch) | 0 | ||||
| -rw-r--r-- | pkgs/oregano/default.nix | 37 |
2 files changed, 30 insertions, 7 deletions
diff --git a/pkgs/oregano/gio-unix.patch b/pkgs/oregano/check-cfg-gio-unix.patch index a20bf0d..a20bf0d 100644 --- a/pkgs/oregano/gio-unix.patch +++ b/pkgs/oregano/check-cfg-gio-unix.patch diff --git a/pkgs/oregano/default.nix b/pkgs/oregano/default.nix index 82303f4..5e2e872 100644 --- a/pkgs/oregano/default.nix +++ b/pkgs/oregano/default.nix @@ -1,18 +1,22 @@ -{ lib -, fetchFromGitHub +{ fetchFromGitHub , glib , goocanvas2 +, gnucap , groff , gtk3 , gtksourceview , intltool , libxml2 +, lib +, makeWrapper +, ngspice , perl , pkg-config -, python +, python3 , stdenv , wafHook , wrapGAppsHook +, useNgspice ? false }: let version = "0.84.43"; @@ -28,19 +32,38 @@ stdenv.mkDerivation { hash = "sha256-1GsL0N3O0clqdgkXoPKMhvW+y4Rzg4QSeOA54nH4kz4="; }; - nativeBuildInputs = [ wafHook wrapGAppsHook ]; - patches = [ ./gio-unix.patch ]; + nativeBuildInputs = [ makeWrapper wafHook wrapGAppsHook ]; + patches = [ ./check-cfg-gio-unix.patch ]; buildInputs = [ - intltool glib goocanvas2 groff gtk3 gtksourceview + intltool libxml2 perl pkg-config - python + 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 ]; + }; } |
