mirror of
https://github.com/SebastianWendel/nixpkgs.git
synced 2024-09-21 04:49:01 +02:00
fstl: 0.9.4 -> 0.10.0 (#264257)
* 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.
This commit is contained in:
parent
adc47c0010
commit
90edbf1dd4
|
@ -1,34 +1,30 @@
|
||||||
{ lib, stdenv, fetchFromGitHub, mkDerivation, qtbase, mesa_glu }:
|
{ lib, stdenv, fetchFromGitHub, mkDerivation, cmake }:
|
||||||
|
|
||||||
mkDerivation rec {
|
mkDerivation rec {
|
||||||
pname = "fstl";
|
pname = "fstl";
|
||||||
version = "0.9.4";
|
version = "0.10.0";
|
||||||
|
|
||||||
buildInputs = [qtbase mesa_glu];
|
nativeBuildInputs = [ cmake ];
|
||||||
|
|
||||||
prePatch = ''
|
installPhase = lib.optionalString stdenv.isDarwin ''
|
||||||
sed -i "s|/usr/bin|$out/bin|g" qt/fstl.pro
|
runHook preInstall
|
||||||
'';
|
|
||||||
|
|
||||||
preBuild = ''
|
|
||||||
qmake qt/fstl.pro
|
|
||||||
'';
|
|
||||||
|
|
||||||
postInstall = lib.optionalString stdenv.isDarwin ''
|
|
||||||
mkdir -p $out/Applications
|
mkdir -p $out/Applications
|
||||||
mv fstl.app $out/Applications
|
mv fstl.app $out/Applications
|
||||||
|
|
||||||
|
runHook postInstall
|
||||||
'';
|
'';
|
||||||
|
|
||||||
src = fetchFromGitHub {
|
src = fetchFromGitHub {
|
||||||
owner = "mkeeter";
|
owner = "fstl-app";
|
||||||
repo = "fstl";
|
repo = "fstl";
|
||||||
rev = "v" + version;
|
rev = "v" + version;
|
||||||
sha256 = "028hzdv11hgvcpc36q5scf4nw1256qswh37xhfn5a0iv7wycmnif";
|
hash = "sha256-z2X78GW/IeiPCnwkeLBCLjILhfMe2sT3V9Gbw4TSf4c=";
|
||||||
};
|
};
|
||||||
|
|
||||||
meta = with lib; {
|
meta = with lib; {
|
||||||
description = "The fastest STL file viewer";
|
description = "The fastest STL file viewer";
|
||||||
homepage = "https://github.com/mkeeter/fstl";
|
homepage = "https://github.com/fstl-app/fstl";
|
||||||
license = licenses.mit;
|
license = licenses.mit;
|
||||||
platforms = platforms.linux ++ platforms.darwin;
|
platforms = platforms.linux ++ platforms.darwin;
|
||||||
maintainers = with maintainers; [ tweber ];
|
maintainers = with maintainers; [ tweber ];
|
||||||
|
|
Loading…
Reference in a new issue