@ -1,27 +1,77 @@
{ lib , stdenv , fetchFromGitHub , cmake , pkg-config , zlib , libpng , cairo , freetype
, json_c , fontconfig , gtkmm3 , pangomm , glew , libGLU , xorg , pcre , wrapGAppsHook
{ lib
, stdenv
, fetchFromGitHub
, cmake
, pkg-config
, wrapGAppsHook
, at-spi2-core
, cairo
, dbus
, freetype
, fontconfig
, glew
, gtkmm3
, json_c
, libdatrie
, libepoxy
, libGLU
, libpng
, libselinux
, libsepol
, libthai
, libxkbcommon
, pangomm
, pcre
, util-linuxMinimal # provides libmount
, xorg
, zlib
} :
stdenv . mkDerivation rec {
pname = " s o l v e s p a c e " ;
version = " v 3 . 0 " ;
version = " 3 . 0 " ;
src = fetchFromGitHub {
owner = pname ;
repo = pname ;
rev = version ;
sha256 = " 0 4 a y m p d s j p 3 7 v p 0 p 1 3 m b 8 n w k c 0 8 0 h p 9 c d r j p y y 5 m 1 m h w k m 8 j m 9 k 9 " ;
rev = " v ${ version } " ;
hash = " s h a 2 5 6 - a a Y q U Z 0 c 1 l C L 9 1 f m x t K F A A E 2 u U W r j n D B 3 W d c q d u t X h E = " ;
fetchSubmodules = true ;
} ;
nativeBuildInputs = [
pkg-config cmake wrapGAppsHook
cmake
pkg-config
wrapGAppsHook
] ;
buildInputs = [
zlib libpng cairo freetype
json_c fontconfig gtkmm3 pangomm glew libGLU
xorg . libpthreadstubs xorg . libXdmcp pcre
at-spi2-core
cairo
dbus
freetype
fontconfig
glew
gtkmm3
json_c
libdatrie
libepoxy
libGLU
libpng
libselinux
libsepol
libthai
libxkbcommon
pangomm
pcre
util-linuxMinimal
xorg . libpthreadstubs
xorg . libXdmcp
xorg . libXtst
zlib
] ;
preConfigure = ''
postPatch = ''
patch CMakeLists . txt < < EOF
@ @ -20 , 9 + 20 , 9 @ @
# NOTE TO PACKAGERS: The embedded git commit hash is critical for rapid bug triage when the builds
@ -35,16 +85,14 @@ stdenv.mkDerivation rec {
EOF
'' ;
postInstall = ''
substituteInPlace $ out/share/applications/solvespace.desktop \
- - replace /usr/bin / $ out/bin /
'' ;
cmakeFlags = [ " - D E N A B L E _ O P E N M P = O N " ] ;
meta = with lib ; {
description = " A p a r a m e t r i c 3 d C A D p r o g r a m " ;
license = licenses . gpl3Plus ;
maintainers = [ maintainers . edef ] ;
platforms = platforms . linux ;
homepage = " h t t p : / / s o l v e s p a c e . c o m " ;
homepage = " h t t p s : / / s o l v e s p a c e . c o m " ;
changelog = " h t t p s : / / g i t h u b . c o m / s o l v e s p a c e / s o l v e s p a c e / r a w / v ${ version } / C H A N G E L O G . m d " ;
} ;
}