diff options
author | Bill <wathiede@users.noreply.github.com> | 2024-01-22 05:41:16 -0800 |
---|---|---|
committer | GitHub <noreply@github.com> | 2024-01-22 22:41:16 +0900 |
commit | 90edbf1dd4f7fc3f9e4a55f60801e053e739cd16 (patch) | |
tree | 3fd6d67c55cf18f09c4c6c164ddcc1e4af08a423 /pkgs/applications/graphics/fstl | |
parent | adc47c0010cb54afe33cb76f0119a8144858d6ab (diff) |
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.
Diffstat (limited to 'pkgs/applications/graphics/fstl')
-rw-r--r-- | pkgs/applications/graphics/fstl/default.nix | 24 |
1 files changed, 10 insertions, 14 deletions
diff --git a/pkgs/applications/graphics/fstl/default.nix b/pkgs/applications/graphics/fstl/default.nix index c6b77300cb312..c7faf43e24e83 100644 --- a/pkgs/applications/graphics/fstl/default.nix +++ b/pkgs/applications/graphics/fstl/default.nix @@ -1,34 +1,30 @@ -{ lib, stdenv, fetchFromGitHub, mkDerivation, qtbase, mesa_glu }: +{ lib, stdenv, fetchFromGitHub, mkDerivation, cmake }: mkDerivation rec { pname = "fstl"; - version = "0.9.4"; + version = "0.10.0"; - buildInputs = [qtbase mesa_glu]; + nativeBuildInputs = [ cmake ]; - prePatch = '' - sed -i "s|/usr/bin|$out/bin|g" qt/fstl.pro - ''; - - preBuild = '' - qmake qt/fstl.pro - ''; + installPhase = lib.optionalString stdenv.isDarwin '' + runHook preInstall - postInstall = lib.optionalString stdenv.isDarwin '' mkdir -p $out/Applications mv fstl.app $out/Applications + + runHook postInstall ''; src = fetchFromGitHub { - owner = "mkeeter"; + owner = "fstl-app"; repo = "fstl"; rev = "v" + version; - sha256 = "028hzdv11hgvcpc36q5scf4nw1256qswh37xhfn5a0iv7wycmnif"; + hash = "sha256-z2X78GW/IeiPCnwkeLBCLjILhfMe2sT3V9Gbw4TSf4c="; }; meta = with lib; { description = "The fastest STL file viewer"; - homepage = "https://github.com/mkeeter/fstl"; + homepage = "https://github.com/fstl-app/fstl"; license = licenses.mit; platforms = platforms.linux ++ platforms.darwin; maintainers = with maintainers; [ tweber ]; |