Merge pull request #177892 from sikmir/qosmic

flam3, qosmic: enable on darwin

authored by Anderson Torres and committed by GitHub b9397b21 2434bd5a

+17 -7
+16 -6
pkgs/applications/graphics/qosmic/default.nix
··· 1 - { mkDerivation 1 + { stdenv 2 2 , fetchFromGitHub 3 3 , fetchpatch 4 4 , qmake ··· 13 13 , lib 14 14 }: 15 15 16 - mkDerivation rec { 16 + stdenv.mkDerivation rec { 17 17 pname = "qosmic"; 18 18 version = "1.6.0"; 19 19 ··· 41 41 sha256 = "0bp6b759plkqs32nvfpkfvf3qqzc9716k3ycwnjvwabbvpg1xwbl"; 42 42 }) 43 43 ]; 44 + 45 + postPatch = lib.optionalString stdenv.isDarwin '' 46 + substituteInPlace qosmic.pro \ 47 + --replace "/share" "/Applications/qosmic.app/Contents/Resources" \ 48 + --replace "/qosmic/scripts" "/scripts" \ 49 + --replace "install_icons install_desktop" "" 50 + ''; 44 51 45 52 nativeBuildInputs = [ qmake wrapQtAppsHook pkg-config ]; 46 53 ··· 55 62 56 63 qmakeFlags = [ 57 64 # Use pkg-config to correctly locate library paths 58 - "-config" "link_pkgconfig" 65 + "CONFIG+=link_pkgconfig" 59 66 ]; 60 67 68 + preInstall = lib.optionalString stdenv.isDarwin '' 69 + mkdir -p $out/Applications 70 + mv qosmic.app $out/Applications 71 + ''; 72 + 61 73 meta = with lib; { 62 74 description = "A cosmic recursive flame fractal editor"; 63 75 homepage = "https://github.com/bitsed/qosmic"; 64 76 license = licenses.gpl3Plus; 65 77 maintainers = [ maintainers.raboof ]; 66 - # It might be possible to make it work on OSX, 67 - # but this has not been tested. 68 - platforms = platforms.linux; 78 + platforms = platforms.unix; 69 79 }; 70 80 }
+1 -1
pkgs/tools/graphics/flam3/default.nix
··· 37 37 ''; 38 38 license = licenses.gpl3Plus; 39 39 maintainers = with maintainers; [ AndersonTorres ]; 40 - platforms = platforms.linux; 40 + platforms = platforms.unix; 41 41 }; 42 42 }