nixpkgs/pkgs/applications/graphics/fstl/default.nix

37 lines
838 B
Nix
Raw Normal View History

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