Unverified Commit 99b679d4 authored by Nikolay Korotkiy's avatar Nikolay Korotkiy
Browse files

savvycan: fix installation on darwin

parent 6828aea0
Loading
Loading
Loading
Loading
+6 −0
Original line number Diff line number Diff line
@@ -29,6 +29,12 @@ stdenv.mkDerivation rec {
    qt5.wrapQtAppsHook
  ];

  postInstall = lib.optionalString stdenv.hostPlatform.isDarwin ''
    mkdir -p $out/Applications
    mv $out/bin/SavvyCAN.app $out/Applications
    ln -s $out/Applications/SavvyCAN.app/Contents/MacOS/SavvyCAN $out/bin/SavvyCAN
  '';

  meta = with lib; {
    description = "QT based cross platform canbus tool";
    homepage = "https://savvycan.com/";