Skip to content

Commit

Permalink
openscad-snapshot: init at 2023.08.25.ai16051
Browse files Browse the repository at this point in the history
last version with working offscreen rendering
  • Loading branch information
FliegendeWurst committed Oct 3, 2023
1 parent 42b33a8 commit de07d62
Show file tree
Hide file tree
Showing 2 changed files with 26 additions and 0 deletions.
1 change: 1 addition & 0 deletions default.nix
Original file line number Diff line number Diff line change
Expand Up @@ -17,6 +17,7 @@
diskgraph = pkgs.callPackage ./pkgs/diskgraph { };
freqtop = pkgs.callPackage ./pkgs/freqtop { };
map = pkgs.callPackage ./pkgs/map { };
openscad-snapshot = pkgs.callPackage ./pkgs/openscad-snapshot { };
q = pkgs.callPackage ./pkgs/q { };
# TODO: fix dependency specification
#raspi-oled = pkgs.callPackage ./pkgs/raspi-oled { };
Expand Down
25 changes: 25 additions & 0 deletions pkgs/openscad-snapshot/default.nix
Original file line number Diff line number Diff line change
@@ -0,0 +1,25 @@
{ lib, fetchurl, appimageTools, openscad, makeWrapper }:

let
pname = "openscad";
version = "2023.08.25.ai16051";
src = fetchurl {
url = "https://files.openscad.org/snapshots/OpenSCAD-${version}-x86_64.AppImage";
sha256 = "sha256-mEGmkL2lL7JxK0nRPLtnfg4vxtkK3URz351eyuRHZPE=";
};
appimageContents = appimageTools.extractType2 { inherit pname version src; };
in
appimageTools.wrapType2 {
inherit pname version src;

extraInstallCommands = ''
source "${makeWrapper}/nix-support/setup-hook"
wrapProgram $out/bin/${pname}-${version} \
--unset QT_PLUGIN_PATH
'';

meta = with lib; {
inherit (openscad.meta);
maintainers = with maintainers; [ fliegendewurst ];
};
}

0 comments on commit de07d62

Please sign in to comment.