2021-01-10 23:54:33 -08:00
|
|
|
{ lib, stdenv, fetchFromGitHub, mkDerivation, qtbase, mesa_glu }:
|
2019-08-04 10:39:08 -07:00
|
|
|
|
|
|
|
mkDerivation rec {
|
2019-08-15 05:41:18 -07:00
|
|
|
pname = "fstl";
|
2020-05-02 03:15:25 -07:00
|
|
|
version = "0.9.4";
|
2018-04-15 09:23:41 -07:00
|
|
|
|
|
|
|
buildInputs = [qtbase mesa_glu];
|
|
|
|
|
|
|
|
prePatch = ''
|
|
|
|
sed -i "s|/usr/bin|$out/bin|g" qt/fstl.pro
|
|
|
|
'';
|
|
|
|
|
|
|
|
preBuild = ''
|
|
|
|
qmake qt/fstl.pro
|
|
|
|
'';
|
2021-01-01 05:46:40 -08:00
|
|
|
|
2021-01-15 05:21:58 -08:00
|
|
|
postInstall = lib.optionalString stdenv.isDarwin ''
|
2018-04-15 09:23:41 -07:00
|
|
|
mkdir -p $out/Applications
|
|
|
|
mv fstl.app $out/Applications
|
|
|
|
'';
|
|
|
|
|
|
|
|
src = fetchFromGitHub {
|
|
|
|
owner = "mkeeter";
|
|
|
|
repo = "fstl";
|
|
|
|
rev = "v" + version;
|
2020-05-02 03:15:25 -07:00
|
|
|
sha256 = "028hzdv11hgvcpc36q5scf4nw1256qswh37xhfn5a0iv7wycmnif";
|
2018-04-15 09:23:41 -07:00
|
|
|
};
|
|
|
|
|
2021-01-10 23:54:33 -08:00
|
|
|
meta = with lib; {
|
2018-04-15 09:23:41 -07:00
|
|
|
description = "The fastest STL file viewer";
|
|
|
|
homepage = "https://github.com/mkeeter/fstl";
|
|
|
|
license = licenses.mit;
|
|
|
|
platforms = platforms.linux ++ platforms.darwin;
|
|
|
|
maintainers = with maintainers; [ tweber ];
|
|
|
|
};
|
|
|
|
}
|