depot/third_party/nixpkgs/pkgs/applications/graphics/fstl/default.nix
Default email bcb2f287e1 Project import generated by Copybara.
GitOrigin-RevId: d603719ec6e294f034936c0d0dc06f689d91b6c3
2024-06-20 20:27:18 +05:30

33 lines
771 B
Nix

{ lib, stdenv, fetchFromGitHub, mkDerivation, cmake }:
mkDerivation rec {
pname = "fstl";
version = "0.10.0";
nativeBuildInputs = [ cmake ];
installPhase = lib.optionalString stdenv.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 ];
};
}