mirror of
https://github.com/NixOS/nixpkgs.git
synced 2024-12-04 12:53:05 +00:00
90edbf1dd4
* fstl: 0.9.4 -> 0.10.0 Note that https://github.com/mkeeter/fstl now redirects to https://github.com/fstl-app/fstl. It would appear the old repo is no longer updated, and the version under fstl-app is the proper location. * fstl: address pull request feedback * fstl: change install hook usage per review suggestion.
33 lines
749 B
Nix
33 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 ];
|
|
};
|
|
}
|