mirror of
https://github.com/NixOS/nixpkgs.git
synced 2025-01-15 17:34:04 +00:00
4f0dadbf38
After final improvements to the official formatter implementation, this commit now performs the first treewide reformat of Nix files using it. This is part of the implementation of RFC 166. Only "inactive" files are reformatted, meaning only files that aren't being touched by any PR with activity in the past 2 months. This is to avoid conflicts for PRs that might soon be merged. Later we can do a full treewide reformat to get the rest, which should not cause as many conflicts. A CI check has already been running for some time to ensure that new and already-formatted files are formatted, so the files being reformatted here should also stay formatted. This commit was automatically created and can be verified using nix-builda08b3a4d19
.tar.gz \ --argstr baseRevb32a094368
result/bin/apply-formatting $NIXPKGS_PATH
104 lines
2.0 KiB
Nix
104 lines
2.0 KiB
Nix
{
|
|
lib,
|
|
stdenv,
|
|
fetchFromGitHub,
|
|
cmake,
|
|
pkg-config,
|
|
wrapGAppsHook3,
|
|
at-spi2-core,
|
|
cairo,
|
|
dbus,
|
|
eigen,
|
|
freetype,
|
|
fontconfig,
|
|
glew,
|
|
gtkmm3,
|
|
json_c,
|
|
libdatrie,
|
|
libepoxy,
|
|
libGLU,
|
|
libpng,
|
|
libselinux,
|
|
libsepol,
|
|
libspnav,
|
|
libthai,
|
|
libxkbcommon,
|
|
pangomm,
|
|
pcre,
|
|
util-linuxMinimal, # provides libmount
|
|
xorg,
|
|
zlib,
|
|
}:
|
|
|
|
stdenv.mkDerivation rec {
|
|
pname = "solvespace";
|
|
version = "3.1";
|
|
|
|
src = fetchFromGitHub {
|
|
owner = pname;
|
|
repo = pname;
|
|
rev = "v${version}";
|
|
hash = "sha256-sSDht8pBrOG1YpsWfC/CLTTWh2cI5pn2PXGH900Z0yA=";
|
|
fetchSubmodules = true;
|
|
};
|
|
|
|
nativeBuildInputs = [
|
|
cmake
|
|
pkg-config
|
|
wrapGAppsHook3
|
|
];
|
|
|
|
buildInputs = [
|
|
at-spi2-core
|
|
cairo
|
|
dbus
|
|
eigen
|
|
freetype
|
|
fontconfig
|
|
glew
|
|
gtkmm3
|
|
json_c
|
|
libdatrie
|
|
libepoxy
|
|
libGLU
|
|
libpng
|
|
libselinux
|
|
libsepol
|
|
libspnav
|
|
libthai
|
|
libxkbcommon
|
|
pangomm
|
|
pcre
|
|
util-linuxMinimal
|
|
xorg.libpthreadstubs
|
|
xorg.libXdmcp
|
|
xorg.libXtst
|
|
zlib
|
|
];
|
|
|
|
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)
|
|
+set(GIT_COMMIT_HASH $version)
|
|
EOF
|
|
'';
|
|
|
|
cmakeFlags = [ "-DENABLE_OPENMP=ON" ];
|
|
|
|
meta = with lib; {
|
|
description = "Parametric 3d CAD program";
|
|
license = licenses.gpl3Plus;
|
|
maintainers = [ maintainers.edef ];
|
|
platforms = platforms.linux;
|
|
homepage = "https://solvespace.com";
|
|
changelog = "https://github.com/solvespace/solvespace/raw/v${version}/CHANGELOG.md";
|
|
};
|
|
}
|