Skip to content

Instantly share code, notes, and snippets.

@cyber-murmel
Last active April 23, 2024 15:27
Show Gist options
  • Save cyber-murmel/a859aa995243c466f8a85ad19f64941d to your computer and use it in GitHub Desktop.
Save cyber-murmel/a859aa995243c466f8a85ad19f64941d to your computer and use it in GitHub Desktop.
Nix expression to build @shapeforge IceSL modeler and slicer https://icesl.loria.fr/
# build with `nix-build IceSL.nix`
{ pkgs ? import
(builtins.fetchGit {
name = "nixos-22.11-2023_01_01";
url = "https://github.com/nixos/nixpkgs/";
ref = "refs/heads/nixos-22.11";
rev = "913a47cd064cc06440ea84e5e0452039a85781f0";
})
{ }
}:
with pkgs;
stdenv.mkDerivation rec {
name = "IceSL-${version}";
version = "2.5.0";
src = fetchurl {
url = "https://icesl.loria.fr/assets/other/download.php?build=${version}&version=stable&os=amd64";
hash = "sha256-yz8M6beyHnIaXn8Op9uJV+3Q8sLCVEArEA40VKKo7ic=";
};
buildInputs = [
unzip
autoPatchelfHook
glfw
libGLU
];
phases = [
"unpackPhase"
"installPhase"
"fixupPhase"
];
unpackPhase = ''
unzip $src
'';
installPhase = ''
mkdir -p $out/
cp -r icesl/* $out/
'';
}
@Myrkskog
Copy link

Thank you for the module. I changed the url to fetch the 2.5.3-beta5 version of the software changing the hash.
I added openssl_1_1 to the pkgs and it builds.

When I attempt to run IceSL I get gluX - loading extension GL_ARB_shader_objects (triggered by glCreateProgramObjectARB) Segmentation fault (core dumped).

Did I do something wrong when building, or is this an issue with openGL on my machine?

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment