From d6521f550362f4fa46bc389548acef0e66584c31 Mon Sep 17 00:00:00 2001 From: Nico Bellack Date: Mon, 24 Feb 2025 14:51:04 +0100 Subject: [PATCH 1/2] roomarranger: init at 10.0.1 --- pkgs/by-name/ro/roomarranger/package.nix | 91 ++++++++++++++++++++++++ 1 file changed, 91 insertions(+) create mode 100644 pkgs/by-name/ro/roomarranger/package.nix diff --git a/pkgs/by-name/ro/roomarranger/package.nix b/pkgs/by-name/ro/roomarranger/package.nix new file mode 100644 index 000000000000..4b0e2630dadd --- /dev/null +++ b/pkgs/by-name/ro/roomarranger/package.nix @@ -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 + ]; + }; +} From e9c38f777d45fb14902dce1632f310fbf0349caf Mon Sep 17 00:00:00 2001 From: Nico Bellack Date: Mon, 24 Feb 2025 14:51:34 +0100 Subject: [PATCH 2/2] maintainers: add bellackn --- maintainers/maintainer-list.nix | 7 +++++++ 1 file changed, 7 insertions(+) diff --git a/maintainers/maintainer-list.nix b/maintainers/maintainer-list.nix index 80e3caf4990a..ed1abfa22922 100644 --- a/maintainers/maintainer-list.nix +++ b/maintainers/maintainer-list.nix @@ -2830,6 +2830,13 @@ github = "beezow"; githubId = 42082156; }; + bellackn = { + name = "Nico Bellack"; + email = "blcknc@pm.me"; + github = "bellackn"; + githubId = 32039602; + keys = [ { fingerprint = "2B46 58FF 887A 8366 F88B BE92 CF83 0BB3 B973 9A6A"; } ]; + }; ben9986 = { name = "Ben Carmichael"; email = "ben9986.unvmn@passinbox.com";