Skip to content

Commit 99b679d

Browse files
committed
savvycan: fix installation on darwin
1 parent 6828aea commit 99b679d

File tree

1 file changed

+6
-0
lines changed

1 file changed

+6
-0
lines changed

pkgs/by-name/sa/savvycan/package.nix

Lines changed: 6 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -29,6 +29,12 @@ stdenv.mkDerivation rec {
2929
qt5.wrapQtAppsHook
3030
];
3131

32+
postInstall = lib.optionalString stdenv.hostPlatform.isDarwin ''
33+
mkdir -p $out/Applications
34+
mv $out/bin/SavvyCAN.app $out/Applications
35+
ln -s $out/Applications/SavvyCAN.app/Contents/MacOS/SavvyCAN $out/bin/SavvyCAN
36+
'';
37+
3238
meta = with lib; {
3339
description = "QT based cross platform canbus tool";
3440
homepage = "https://savvycan.com/";

0 commit comments

Comments
 (0)