2024-10-23 10:52:34 +00:00
|
|
|
{ lib, fetchurl, appimageTools, openscad, makeDesktopItem }:
|
2023-10-03 11:39:21 +00:00
|
|
|
|
|
|
|
let
|
|
|
|
pname = "openscad";
|
2024-10-23 10:52:34 +00:00
|
|
|
version = "2024.10.23.ai20994";
|
2023-10-03 11:39:21 +00:00
|
|
|
src = fetchurl {
|
|
|
|
url = "https://files.openscad.org/snapshots/OpenSCAD-${version}-x86_64.AppImage";
|
2024-10-23 10:52:34 +00:00
|
|
|
hash = "sha256-2iltY9JcyfCn6IvoSRBlZy3ugt8UWjchYp3B7nW8hMo=";
|
2023-10-03 11:39:21 +00:00
|
|
|
};
|
2023-10-16 06:42:28 +00:00
|
|
|
|
|
|
|
desktopItem = makeDesktopItem {
|
|
|
|
name = "OpenSCAD";
|
|
|
|
exec = "${pname}-${version} %f";
|
|
|
|
comment = "The Programmers Solid 3D CAD Modeller (development snapshot)";
|
|
|
|
icon = "openscad-nightly";
|
|
|
|
desktopName = "OpenSCAD";
|
|
|
|
genericName = "OpenSCAD";
|
|
|
|
mimeTypes = [ "application/x-openscad" ];
|
|
|
|
categories = [ "Graphics" "3DGraphics" "Engineering" ];
|
|
|
|
keywords = [ "3d" "solid" "geometry" "csg" "model" "stl"];
|
|
|
|
};
|
|
|
|
|
2023-10-03 11:39:21 +00:00
|
|
|
appimageContents = appimageTools.extractType2 { inherit pname version src; };
|
|
|
|
in
|
|
|
|
appimageTools.wrapType2 {
|
|
|
|
inherit pname version src;
|
|
|
|
|
|
|
|
extraInstallCommands = ''
|
2023-10-16 06:42:28 +00:00
|
|
|
mkdir -p $out/share
|
|
|
|
cp -rt $out/share ${desktopItem}/share/applications ${appimageContents}/usr/share/icons
|
2023-10-03 11:39:21 +00:00
|
|
|
'';
|
|
|
|
|
|
|
|
meta = with lib; {
|
2023-10-19 10:05:32 +00:00
|
|
|
inherit (openscad.meta) description longDescription homepage license;
|
|
|
|
platforms = [ "x86_64-linux" ];
|
2023-10-03 11:39:21 +00:00
|
|
|
maintainers = with maintainers; [ fliegendewurst ];
|
|
|
|
};
|
|
|
|
}
|