nixpkgs/pkgs/by-name/so/solvespace/package.nix

Ignoring revisions in .git-blame-ignore-revs. Click here to bypass and see the normal blame view.

103 lines
2.0 KiB
Nix
Raw Normal View History

{ lib
, stdenv
, fetchFromGitHub
, cmake
, pkg-config
, wrapGAppsHook3
, at-spi2-core
, cairo
, dbus
2022-06-04 21:35:59 +00:00
, eigen
, freetype
, fontconfig
, glew
, gtkmm3
, json_c
, libdatrie
, libepoxy
, libGLU
, libpng
, libselinux
, libsepol
2022-06-04 21:35:59 +00:00
, libspnav
, libthai
, libxkbcommon
, pangomm
, pcre
, util-linuxMinimal # provides libmount
, xorg
, zlib
2017-05-06 23:16:57 +00:00
}:
2017-05-06 23:16:57 +00:00
stdenv.mkDerivation rec {
2021-02-24 17:51:39 +00:00
pname = "solvespace";
2022-06-04 21:35:59 +00:00
version = "3.1";
2021-02-24 17:51:39 +00:00
src = fetchFromGitHub {
owner = pname;
repo = pname;
rev = "v${version}";
2022-06-04 21:35:59 +00:00
hash = "sha256-sSDht8pBrOG1YpsWfC/CLTTWh2cI5pn2PXGH900Z0yA=";
2017-05-06 23:16:57 +00:00
fetchSubmodules = true;
};
2017-12-09 16:31:56 +00:00
nativeBuildInputs = [
cmake
pkg-config
wrapGAppsHook3
2017-12-09 16:31:56 +00:00
];
buildInputs = [
at-spi2-core
cairo
dbus
2022-06-04 21:35:59 +00:00
eigen
freetype
fontconfig
glew
gtkmm3
json_c
libdatrie
libepoxy
libGLU
libpng
libselinux
libsepol
2022-06-04 21:35:59 +00:00
libspnav
libthai
libxkbcommon
pangomm
pcre
util-linuxMinimal
xorg.libpthreadstubs
xorg.libXdmcp
xorg.libXtst
zlib
];
2017-05-06 23:16:57 +00:00
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
# can come from a variety of sources. If you are mirroring the sources or otherwise build when
# the .git directory is not present, please comment the following line:
-include(GetGitCommitHash)
+# include(GetGitCommitHash)
# and instead uncomment the following, adding the complete git hash of the checkout you are using:
-# set(GIT_COMMIT_HASH 0000000000000000000000000000000000000000)
2021-02-24 17:51:39 +00:00
+set(GIT_COMMIT_HASH $version)
EOF
'';
cmakeFlags = [ "-DENABLE_OPENMP=ON" ];
meta = with lib; {
2014-11-11 13:20:43 +00:00
description = "Parametric 3d CAD program";
2021-02-25 05:42:20 +00:00
license = licenses.gpl3Plus;
2017-12-09 16:31:56 +00:00
maintainers = [ maintainers.edef ];
platforms = platforms.linux;
homepage = "https://solvespace.com";
changelog = "https://github.com/solvespace/solvespace/raw/v${version}/CHANGELOG.md";
};
}