mirror of
https://github.com/NixOS/nixpkgs.git
synced 2024-11-16 14:54:29 +01:00
Merge pull request #38970 from thorstenweber83/add-pkg-fstl
fstl: init at 0.9.3
This commit is contained in:
commit
a5b8b2e0cf
2 changed files with 37 additions and 0 deletions
35
pkgs/applications/graphics/fstl/default.nix
Normal file
35
pkgs/applications/graphics/fstl/default.nix
Normal file
|
@ -0,0 +1,35 @@
|
|||
{stdenv, fetchFromGitHub, qtbase, mesa_glu, qmake}:
|
||||
stdenv.mkDerivation rec {
|
||||
name = "fstl-${version}";
|
||||
version = "0.9.3";
|
||||
|
||||
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;
|
||||
sha256 = "1j0y9xbf0ybrrnsmfzgpyyz6bi98xgzn9ivani424j01vffns892";
|
||||
};
|
||||
|
||||
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 ];
|
||||
};
|
||||
}
|
|
@ -2395,6 +2395,8 @@ with pkgs;
|
|||
|
||||
fsfs = callPackage ../tools/filesystems/fsfs { };
|
||||
|
||||
fstl = qt5.callPackage ../applications/graphics/fstl { };
|
||||
|
||||
fswebcam = callPackage ../os-specific/linux/fswebcam { };
|
||||
|
||||
fuseiso = callPackage ../tools/filesystems/fuseiso { };
|
||||
|
|
Loading…
Reference in a new issue