1
0
Fork 1
mirror of https://github.com/NixOS/nixpkgs.git synced 2024-12-04 19:45:54 +00:00
nixpkgs/pkgs/applications/graphics/solvespace/default.nix

51 lines
1.6 KiB
Nix
Raw Normal View History

2021-02-24 17:51:39 +00:00
{ lib, stdenv, fetchFromGitHub, cmake, pkg-config, zlib, libpng, cairo, freetype
, json_c, fontconfig, gtkmm3, pangomm, glew, libGLU, xorg, pcre, wrapGAppsHook
2017-05-07 00:16:57 +01:00
}:
stdenv.mkDerivation rec {
2021-02-24 17:51:39 +00:00
pname = "solvespace";
version = "v3.0.rc2";
src = fetchFromGitHub {
owner = pname;
repo = pname;
rev = version;
sha256 = "1z0873gwcr0hybrpqy4hwislir6k2zb4s62lbsivq5nbkizy7gjm";
2017-05-07 00:16:57 +01:00
fetchSubmodules = true;
};
2017-12-09 16:31:56 +00:00
nativeBuildInputs = [
pkg-config cmake wrapGAppsHook
2017-12-09 16:31:56 +00:00
];
buildInputs = [
2017-12-09 16:31:56 +00:00
zlib libpng cairo freetype
json_c fontconfig gtkmm3 pangomm glew libGLU
2018-03-13 10:16:03 +00:00
xorg.libpthreadstubs xorg.libXdmcp pcre
];
2017-05-07 00:16:57 +01:00
preConfigure = ''
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
'';
postInstall = ''
substituteInPlace $out/share/applications/solvespace.desktop \
--replace /usr/bin/ $out/bin/
'';
meta = with lib; {
2014-11-11 13:20:43 +00:00
description = "A parametric 3d CAD program";
2017-12-09 16:31:56 +00:00
license = licenses.gpl3;
maintainers = [ maintainers.edef ];
platforms = platforms.linux;
homepage = "http://solvespace.com";
};
}