depot/third_party/nixpkgs/pkgs/applications/graphics/fstl/default.nix
Default email 23b612e36f Project import generated by Copybara.
GitOrigin-RevId: ae5c332cbb5827f6b1f02572496b141021de335f
2024-01-25 23:12:00 +09:00

32 lines
749 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 = "The fastest STL file viewer";
homepage = "https://github.com/fstl-app/fstl";
license = licenses.mit;
platforms = platforms.linux ++ platforms.darwin;
maintainers = with maintainers; [ tweber ];
};
}