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 2 , fetchFromGitHub 3 , fetchpatch 4 , qmake ··· 13 , lib 14 }: 15 16 - mkDerivation rec { 17 pname = "qosmic"; 18 version = "1.6.0"; 19 ··· 41 sha256 = "0bp6b759plkqs32nvfpkfvf3qqzc9716k3ycwnjvwabbvpg1xwbl"; 42 }) 43 ]; 44 45 nativeBuildInputs = [ qmake wrapQtAppsHook pkg-config ]; 46 ··· 55 56 qmakeFlags = [ 57 # Use pkg-config to correctly locate library paths 58 - "-config" "link_pkgconfig" 59 ]; 60 61 meta = with lib; { 62 description = "A cosmic recursive flame fractal editor"; 63 homepage = "https://github.com/bitsed/qosmic"; 64 license = licenses.gpl3Plus; 65 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; 69 }; 70 }
··· 1 + { stdenv 2 , fetchFromGitHub 3 , fetchpatch 4 , qmake ··· 13 , lib 14 }: 15 16 + stdenv.mkDerivation rec { 17 pname = "qosmic"; 18 version = "1.6.0"; 19 ··· 41 sha256 = "0bp6b759plkqs32nvfpkfvf3qqzc9716k3ycwnjvwabbvpg1xwbl"; 42 }) 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 + ''; 51 52 nativeBuildInputs = [ qmake wrapQtAppsHook pkg-config ]; 53 ··· 62 63 qmakeFlags = [ 64 # Use pkg-config to correctly locate library paths 65 + "CONFIG+=link_pkgconfig" 66 ]; 67 68 + preInstall = lib.optionalString stdenv.isDarwin '' 69 + mkdir -p $out/Applications 70 + mv qosmic.app $out/Applications 71 + ''; 72 + 73 meta = with lib; { 74 description = "A cosmic recursive flame fractal editor"; 75 homepage = "https://github.com/bitsed/qosmic"; 76 license = licenses.gpl3Plus; 77 maintainers = [ maintainers.raboof ]; 78 + platforms = platforms.unix; 79 }; 80 }
+1 -1
pkgs/tools/graphics/flam3/default.nix
··· 37 ''; 38 license = licenses.gpl3Plus; 39 maintainers = with maintainers; [ AndersonTorres ]; 40 - platforms = platforms.linux; 41 }; 42 }
··· 37 ''; 38 license = licenses.gpl3Plus; 39 maintainers = with maintainers; [ AndersonTorres ]; 40 + platforms = platforms.unix; 41 }; 42 }