-
-
Save sirkha/ed02c3fed14287f8dcc546b8693ca7ea to your computer and use it in GitHub Desktop.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
{stdenv, pkgconfig, fetchgit, gnome3, glib, goocanvas, groff, libxml2, intltool, python3, waf, makeWrapper}: | |
stdenv.mkDerivation rec { | |
version = "v0.84.21"; | |
name = "oregeno-${version}"; | |
src = fetchgit { | |
url = "git://github.com/drahnr/oregano"; | |
rev = "refs/tags/${version}"; | |
sha256 = "1y4pskcf595llkf22ggcj26p651i6s4x2x8qn6hkd2syip89flj5"; | |
}; | |
nativeBuildInputs = [ | |
pkgconfig | |
intltool | |
]; | |
buildInputs = [ | |
gnome3.gtk | |
glib | |
gnome3.gtksourceview | |
goocanvas | |
groff | |
libxml2 | |
python3 | |
]; | |
NIX_CFLAGS_COMPILE = "-I${glib.dev}/include/gio-unix-2.0"; | |
buildPhase = '' | |
./waf configure build --release --prefix="$out" | |
''; | |
installPhase = '' | |
./waf install | |
wrapProgram $out/bin/oregano --prefix XDG_DATA_DIRS : "$out/share" | |
''; | |
meta = with stdenv.lib; { | |
description = "An electrical engineering tool"; | |
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 = platforms.linux; | |
}; | |
} |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment