summaryrefslogtreecommitdiff
path: root/pkgs/oregano
diff options
context:
space:
mode:
authorAlejandro Soto <alejandro@34project.org>2025-08-24 18:55:06 -0600
committerAlejandro Soto <alejandro@34project.org>2025-08-24 18:55:06 -0600
commitd7ac88762db111a7962c4e14b5f4e37ab85ccac7 (patch)
tree0c2c8c4383bef74215e3b7c48a2f6b0117f084bc /pkgs/oregano
parent504589d1035f27b766bd33040b415b2725ece4ca (diff)
tree-wide: reformat using alejandra after enabling trivionomicon
Diffstat (limited to '')
-rw-r--r--pkgs/oregano/default.nix128
1 files changed, 67 insertions, 61 deletions
diff --git a/pkgs/oregano/default.nix b/pkgs/oregano/default.nix
index 5e2e872..14108d5 100644
--- a/pkgs/oregano/default.nix
+++ b/pkgs/oregano/default.nix
@@ -1,69 +1,75 @@
-{ fetchFromGitHub
-, glib
-, goocanvas2
-, gnucap
-, groff
-, gtk3
-, gtksourceview
-, intltool
-, libxml2
-, lib
-, makeWrapper
-, ngspice
-, perl
-, pkg-config
-, python3
-, stdenv
-, wafHook
-, wrapGAppsHook
-, useNgspice ? false
-}:
-let
+{
+ fetchFromGitHub,
+ glib,
+ goocanvas2,
+ gnucap,
+ groff,
+ gtk3,
+ gtksourceview,
+ intltool,
+ libxml2,
+ lib,
+ makeWrapper,
+ ngspice,
+ perl,
+ pkg-config,
+ python3,
+ stdenv,
+ wafHook,
+ wrapGAppsHook,
+ useNgspice ? false,
+}: let
version = "0.84.43";
in
-stdenv.mkDerivation {
- pname = "oregano";
- inherit version;
+ stdenv.mkDerivation {
+ pname = "oregano";
+ inherit version;
- src = fetchFromGitHub {
- owner = "drahnr";
- repo = "oregano";
- rev = "v${version}";
- hash = "sha256-1GsL0N3O0clqdgkXoPKMhvW+y4Rzg4QSeOA54nH4kz4=";
- };
+ src = fetchFromGitHub {
+ owner = "drahnr";
+ repo = "oregano";
+ rev = "v${version}";
+ hash = "sha256-1GsL0N3O0clqdgkXoPKMhvW+y4Rzg4QSeOA54nH4kz4=";
+ };
- nativeBuildInputs = [ makeWrapper wafHook wrapGAppsHook ];
- patches = [ ./check-cfg-gio-unix.patch ];
+ nativeBuildInputs = [makeWrapper wafHook wrapGAppsHook];
+ patches = [./check-cfg-gio-unix.patch];
- buildInputs = [
- glib
- goocanvas2
- groff
- gtk3
- gtksourceview
- intltool
- libxml2
- perl
- pkg-config
- python3
- ];
+ 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.
+ postFixup = ''
+ wrapProgram $out/bin/oregano \
+ --suffix PATH : ${lib.makeBinPath [
+ (
+ if useNgspice
+ then ngspice
+ else gnucap
+ )
+ ]}
'';
- homepage = "https://github.com/drahnr/oregano/";
- license = licenses.gpl2;
- platforms = lib.platforms.linux;
- maintainers = with maintainers; [ _3442 ];
- };
-}
+ 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];
+ };
+ }