depot/third_party/nixpkgs/pkgs/applications/graphics/fstl/default.nix
Default email 7e47f3658e Project import generated by Copybara.
GitOrigin-RevId: 1925c603f17fc89f4c8f6bf6f631a802ad85d784
2024-09-26 11:04:55 +00:00

33 lines
784 B
Nix

{ lib, stdenv, fetchFromGitHub, mkDerivation, cmake }:
mkDerivation rec {
pname = "fstl";
version = "0.10.0";
nativeBuildInputs = [ cmake ];
installPhase = lib.optionalString stdenv.hostPlatform.isDarwin ''
runHook preInstall
mkdir -p $out/Applications
mv fstl.app $out/Applications
runHook postInstall
'';
src = fetchFromGitHub {
owner = "fstl-app";
repo = "fstl";
rev = "v" + version;
hash = "sha256-z2X78GW/IeiPCnwkeLBCLjILhfMe2sT3V9Gbw4TSf4c=";
};
meta = with lib; {
description = "Fastest STL file viewer";
mainProgram = "fstl";
homepage = "https://github.com/fstl-app/fstl";
license = licenses.mit;
platforms = platforms.linux ++ platforms.darwin;
maintainers = with maintainers; [ tweber ];
};
}