Skip to content

Commit

Permalink
iup: init at 3.31
Browse files Browse the repository at this point in the history
Move to by-name

Remove puffnfresh as a maintainer and format
  • Loading branch information
puffnfresh authored and Saturn745 committed Sep 12, 2024
1 parent 30e4a47 commit 12f5c51
Showing 1 changed file with 74 additions and 0 deletions.
74 changes: 74 additions & 0 deletions pkgs/by-name/iu/iup/package.nix
Original file line number Diff line number Diff line change
@@ -0,0 +1,74 @@
{
lib,
stdenv,
fetchurl,

lsb-release,
which,
pkg-config,
gtk3,
cd,
libGLU,
ftgl,
im,
}:

stdenv.mkDerivation rec {
pname = "iup";
version = "3.31";

src = fetchurl {
url = "mirror://sourceforge/iup/${version}/Docs%20and%20Sources/${pname}-${version}_Sources.tar.gz";
sha256 = "sha256-rYL2KweC5G/31KsWdl3yHLF+Z6xrjnLFDMhVH/VKFHQ=";
};

buildInputs = [
lsb-release
which
pkg-config
gtk3
cd
libGLU
ftgl
im
];

makeFlags = [
"USE_PKGCONFIG=Yes"
"USE_GTK3=Yes"
"USE_STATIC="
"LINK_CAIRO=Yes"

"iup"
"iupgtk"
"iupcd"
"iupcontrols"
"iupgl"
"iup_plot"
"iup_mglplot"
"iupglcontrols"
"iupim"
"iupole"
"iup_scintilla"
"iupim"
"iuptuio"
"iupimglib"
"ledc"
"iupview"
];

installPhase = ''
install -m755 -d "$out/lib"
install -m644 lib/*/lib*.so "$out/lib"
install -m755 -d "$out/include"
install -m644 include/* "$out/include"
'';

meta = {
description = "C cross platform GUI toolkit";
homepage = "https://www.tecgraf.puc-rio.br/iup/";
license = lib.licenses.mit;
maintainers = [ lib.maintainers.saturn745 ];
platforms = lib.platforms.linux;
};
}

0 comments on commit 12f5c51

Please sign in to comment.