Merge pull request #105520 from lovesegfault/ideamaker
This commit is contained in:
commit
9a925edb25
77
pkgs/applications/misc/ideamaker/default.nix
Normal file
77
pkgs/applications/misc/ideamaker/default.nix
Normal file
@ -0,0 +1,77 @@
|
|||||||
|
{ stdenv
|
||||||
|
, autoPatchelfHook
|
||||||
|
, curl
|
||||||
|
, dpkg
|
||||||
|
, fetchurl
|
||||||
|
, gcc
|
||||||
|
, lib
|
||||||
|
, libGLU
|
||||||
|
, libcork
|
||||||
|
, makeDesktopItem
|
||||||
|
, qt5
|
||||||
|
, quazip_qt4
|
||||||
|
, zlib
|
||||||
|
}:
|
||||||
|
stdenv.mkDerivation rec {
|
||||||
|
pname = "ideamaker";
|
||||||
|
version = "4.0.1";
|
||||||
|
|
||||||
|
src = fetchurl {
|
||||||
|
# N.B. Unfortunately ideamaker adds a number after the patch number in
|
||||||
|
# their release scheme which is not referenced anywhere other than in
|
||||||
|
# the download URL. Because of this, I have chosen to not use ${version}
|
||||||
|
# and just handwrite the correct values in the following URL, hopefully
|
||||||
|
# avoiding surprises for the next person that comes to update this
|
||||||
|
# package.
|
||||||
|
url = "https://download.raise3d.com/ideamaker/release/4.0.1/ideaMaker_4.0.1.4802-ubuntu_amd64.deb";
|
||||||
|
sha256 = "0a1jcakdglcr4kz0kyq692dbjk6aq2yqcp3i6gzni91k791h49hp";
|
||||||
|
};
|
||||||
|
|
||||||
|
nativeBuildInputs = [ autoPatchelfHook dpkg qt5.wrapQtAppsHook ];
|
||||||
|
buildInputs = [
|
||||||
|
curl
|
||||||
|
gcc.cc.lib
|
||||||
|
libGLU
|
||||||
|
libcork
|
||||||
|
qt5.qtbase
|
||||||
|
qt5.qtserialport
|
||||||
|
quazip_qt4
|
||||||
|
zlib
|
||||||
|
];
|
||||||
|
|
||||||
|
unpackPhase = ''
|
||||||
|
runHook preUnpack
|
||||||
|
dpkg-deb -x $src .
|
||||||
|
runHook postUnpack
|
||||||
|
'';
|
||||||
|
|
||||||
|
installPhase = ''
|
||||||
|
runHook preInstall
|
||||||
|
|
||||||
|
mkdir -p $out/{bin,share/pixmaps}
|
||||||
|
|
||||||
|
cp usr/lib/x86_64-linux-gnu/ideamaker/ideamaker $out/bin
|
||||||
|
ln -s "${desktopItem}/share/applications" $out/share/
|
||||||
|
cp usr/share/ideamaker/icons/ideamaker-icon.png $out/share/pixmaps/${pname}.png
|
||||||
|
|
||||||
|
runHook postInstall
|
||||||
|
'';
|
||||||
|
|
||||||
|
desktopItem = makeDesktopItem {
|
||||||
|
name = pname;
|
||||||
|
exec = pname;
|
||||||
|
icon = pname;
|
||||||
|
desktopName = "Ideamaker";
|
||||||
|
genericName = meta.description;
|
||||||
|
categories = "Utility;Viewer;Engineering;";
|
||||||
|
mimeType = "application/sla";
|
||||||
|
};
|
||||||
|
|
||||||
|
meta = with lib; {
|
||||||
|
homepage = "https://www.raise3d.com/ideamaker/";
|
||||||
|
description = "Raise3D's 3D slicer software";
|
||||||
|
license = licenses.unfree;
|
||||||
|
platforms = [ "x86_64-linux" ];
|
||||||
|
maintainers = with maintainers; [ lovesegfault ];
|
||||||
|
};
|
||||||
|
}
|
45
pkgs/development/libraries/libcork/default.nix
Normal file
45
pkgs/development/libraries/libcork/default.nix
Normal file
@ -0,0 +1,45 @@
|
|||||||
|
{ stdenv
|
||||||
|
, fetchFromGitHub
|
||||||
|
, cmake
|
||||||
|
, lib
|
||||||
|
, pkg-config
|
||||||
|
, check
|
||||||
|
}:
|
||||||
|
stdenv.mkDerivation rec {
|
||||||
|
pname = "libcork";
|
||||||
|
version = "1.0.0--rc3";
|
||||||
|
|
||||||
|
src = fetchFromGitHub {
|
||||||
|
owner = "dcreager";
|
||||||
|
repo = pname;
|
||||||
|
rev = version;
|
||||||
|
sha256 = "152gqnmr6wfmflf5l6447am4clmg3p69pvy3iw7yhaawjqa797sk";
|
||||||
|
};
|
||||||
|
|
||||||
|
# N.B. We need to create this file, otherwise it tries to use git to
|
||||||
|
# determine the package version, which we do not want.
|
||||||
|
#
|
||||||
|
# N.B. We disable tests by force, since their build is broken.
|
||||||
|
postPatch = ''
|
||||||
|
echo "${version}" > .version-stamp
|
||||||
|
echo "${version}" > .commit-stamp
|
||||||
|
sed -i '/add_subdirectory(tests)/d' ./CMakeLists.txt
|
||||||
|
'';
|
||||||
|
|
||||||
|
nativeBuildInputs = [ cmake pkg-config ];
|
||||||
|
buildInputs = [ check ];
|
||||||
|
|
||||||
|
doCheck = false;
|
||||||
|
|
||||||
|
postInstall = ''
|
||||||
|
ln -s $out/lib/libcork.so $out/lib/libcork.so.1
|
||||||
|
'';
|
||||||
|
|
||||||
|
meta = with lib; {
|
||||||
|
homepage = "https://github.com/dcreager/libcork";
|
||||||
|
description = "A simple, easily embeddable cross-platform C library";
|
||||||
|
license = licenses.bsd3;
|
||||||
|
platforms = platforms.unix;
|
||||||
|
maintainers = with maintainers; [ lovesegfault ];
|
||||||
|
};
|
||||||
|
}
|
@ -5364,6 +5364,8 @@ in
|
|||||||
|
|
||||||
libck = callPackage ../development/libraries/libck { };
|
libck = callPackage ../development/libraries/libck { };
|
||||||
|
|
||||||
|
libcork = callPackage ../development/libraries/libcork { };
|
||||||
|
|
||||||
libconfig = callPackage ../development/libraries/libconfig { };
|
libconfig = callPackage ../development/libraries/libconfig { };
|
||||||
|
|
||||||
libcmis = callPackage ../development/libraries/libcmis { };
|
libcmis = callPackage ../development/libraries/libcmis { };
|
||||||
@ -21853,6 +21855,8 @@ in
|
|||||||
|
|
||||||
id3v2 = callPackage ../applications/audio/id3v2 { };
|
id3v2 = callPackage ../applications/audio/id3v2 { };
|
||||||
|
|
||||||
|
ideamaker = callPackage ../applications/misc/ideamaker { };
|
||||||
|
|
||||||
ifenslave = callPackage ../os-specific/linux/ifenslave { };
|
ifenslave = callPackage ../os-specific/linux/ifenslave { };
|
||||||
|
|
||||||
ii = callPackage ../applications/networking/irc/ii {
|
ii = callPackage ../applications/networking/irc/ii {
|
||||||
|
Loading…
x
Reference in New Issue
Block a user