Skip to content

Commit

Permalink
cd: init at 5.14
Browse files Browse the repository at this point in the history
cd: init at 5.14

Move to by-name

Remove puffnfresh as a maintainer and format

Removed puffnfresh as a maintainer since the previous PR went stale and
I am not sure if they still want to maintain this package. Rather be
safe so they don't get mentioned if something with this does come up
  • Loading branch information
puffnfresh authored and Saturn745 committed Sep 12, 2024
1 parent f1df2ac commit de2b960
Showing 1 changed file with 58 additions and 0 deletions.
58 changes: 58 additions & 0 deletions pkgs/by-name/cd/cd/package.nix
Original file line number Diff line number Diff line change
@@ -0,0 +1,58 @@
{
lib,
stdenv,
fetchurl,

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

stdenv.mkDerivation rec {
pname = "cd";
version = "5.14";

src = fetchurl {
url = "mirror://sourceforge/canvasdraw/${version}/Docs%20and%20Sources/${pname}-${version}_Sources.tar.gz";
sha256 = "sha256-xE7cBBExyaakKTPIeaZE1r2CjWCyikuFWpzeYV/Fr08=";
};

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

sourceRoot = "cd/src";

makeFlags = [
"USE_PKGCONFIG=Yes"
"USE_GTK3=Yes"
"cd"
"cdgl"
"cdcontextplus"
];

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 platform-independent graphics library, aka canvasdraw";
homepage = "http://www.tecgraf.puc-rio.br/cd/";
license = lib.licenses.mit;
maintainers = [ lib.maintainers.saturn745 ];
platforms = lib.platforms.linux;
};
}

0 comments on commit de2b960

Please sign in to comment.