mirror of
https://github.com/NixOS/nixpkgs.git
synced 2025-07-12 13:18:57 +03:00
roomarranger: init at 10.0.1
This commit is contained in:
parent
2d1f829b29
commit
d6521f5503
1 changed files with 91 additions and 0 deletions
91
pkgs/by-name/ro/roomarranger/package.nix
Normal file
91
pkgs/by-name/ro/roomarranger/package.nix
Normal file
|
@ -0,0 +1,91 @@
|
||||||
|
{
|
||||||
|
autoPatchelfHook,
|
||||||
|
copyDesktopItems,
|
||||||
|
fetchurl,
|
||||||
|
gtk3,
|
||||||
|
lib,
|
||||||
|
makeDesktopItem,
|
||||||
|
qt6,
|
||||||
|
stdenv,
|
||||||
|
}:
|
||||||
|
|
||||||
|
let
|
||||||
|
desktopItem = makeDesktopItem {
|
||||||
|
type = "Application";
|
||||||
|
exec = "roomarranger";
|
||||||
|
name = "roomarranger";
|
||||||
|
desktopName = "Room Arranger";
|
||||||
|
genericName = "Design your room, office, apartment, house.";
|
||||||
|
icon = "roomarranger-icon";
|
||||||
|
terminal = false;
|
||||||
|
categories = [ "Graphics" ];
|
||||||
|
mimeTypes = [
|
||||||
|
"application/com.roomarranger.project"
|
||||||
|
"application/com.roomarranger.object"
|
||||||
|
];
|
||||||
|
};
|
||||||
|
in
|
||||||
|
|
||||||
|
stdenv.mkDerivation {
|
||||||
|
pname = "roomarranger";
|
||||||
|
version = "10.0.1";
|
||||||
|
|
||||||
|
src = fetchurl {
|
||||||
|
url = "https://f000.backblazeb2.com/file/rooarr/rooarr1001-linux64.tar.gz";
|
||||||
|
hash = "sha256-OwJSOfyTQinVKzrJftpFa5NN1kGweBezedpL2aE4LbE=";
|
||||||
|
};
|
||||||
|
|
||||||
|
nativeBuildInputs = [
|
||||||
|
autoPatchelfHook
|
||||||
|
copyDesktopItems
|
||||||
|
qt6.wrapQtAppsHook
|
||||||
|
];
|
||||||
|
|
||||||
|
buildInputs = [
|
||||||
|
gtk3
|
||||||
|
qt6.qt3d
|
||||||
|
qt6.qtwayland
|
||||||
|
];
|
||||||
|
|
||||||
|
installPhase = ''
|
||||||
|
runHook preInstall
|
||||||
|
|
||||||
|
mkdir -p $out/lib $out/bin
|
||||||
|
cp -r rooarr-bin/* $out/lib/
|
||||||
|
|
||||||
|
# Delete bundled dynamic libraries that reference major Qt version 6
|
||||||
|
rm -f $out/lib/*.6
|
||||||
|
|
||||||
|
ln -s $out/lib/RoomArranger $out/bin/roomarranger
|
||||||
|
|
||||||
|
# Install application icons
|
||||||
|
icon_resolutions="16x16 32x32 48x48 64x64 128x128 256x256 512x512"
|
||||||
|
for res in $icon_resolutions; do
|
||||||
|
mkdir -p $out/share/icons/hicolor/$res/apps
|
||||||
|
cp rooarr-bin/icons/icon_$res.png $out/share/icons/hicolor/$res/apps/roomarranger-icon.png
|
||||||
|
done
|
||||||
|
mkdir -p $out/share/icons/hicolor/32x32/mimetypes
|
||||||
|
cp rooarr-bin/icons/raFileIcon32.png $out/share/icons/hicolor/32x32/mimetypes/application-com.roomarranger.project.png
|
||||||
|
cp rooarr-bin/icons/raFileObjectIcon32.png $out/share/icons/hicolor/32x32/mimetypes/application-com.roomarranger.object.png
|
||||||
|
|
||||||
|
runHook postInstall
|
||||||
|
'';
|
||||||
|
|
||||||
|
desktopItems = [ desktopItem ];
|
||||||
|
|
||||||
|
meta = {
|
||||||
|
description = "3D room planning software";
|
||||||
|
longDescription = ''
|
||||||
|
Room Arranger is a 3D room / apartment / floor planner with a simple user interface.
|
||||||
|
Free for 30 days. Updates are free.
|
||||||
|
'';
|
||||||
|
homepage = "https://www.roomarranger.com/";
|
||||||
|
license = lib.licenses.unfree;
|
||||||
|
platforms = [ "x86_64-linux" ];
|
||||||
|
maintainers = with lib.maintainers; [ bellackn ];
|
||||||
|
mainProgram = "roomarranger";
|
||||||
|
sourceProvenance = [
|
||||||
|
lib.sourceTypes.binaryNativeCode
|
||||||
|
];
|
||||||
|
};
|
||||||
|
}
|
Loading…
Add table
Add a link
Reference in a new issue