Skip to content

Commit

Permalink
mcontrolcenter: fix formatting
Browse files Browse the repository at this point in the history
  • Loading branch information
nadimkobeissi committed Aug 27, 2023
1 parent cf9c4a7 commit 16007bb
Showing 1 changed file with 10 additions and 12 deletions.
22 changes: 10 additions & 12 deletions pkgs/os-specific/linux/mcontrolcenter/derivation.nix
Original file line number Diff line number Diff line change
Expand Up @@ -41,22 +41,20 @@ stdenv.mkDerivation (finalAttrs: rec {
];

installPhase = ''
install -Dm755 mcontrolcenter $out/bin/mcontrolcenter
install -Dm755 helper/mcontrolcenter-helper $out/libexec/mcontrolcenter-helper
install -Dm644 $src/resources/mcontrolcenter.svg $out/share/icons/hicolor/32x32/apps/mcontrolcenter.svg
install -Dm644 $src/src/helper/mcontrolcenter-helper.conf $out/share/dbus-1/system.d/mcontrolcenter-helper.conf
mkdir -p $out/share/dbus-1/system-services
echo "[D-BUS Service]" >> $out/share/dbus-1/system-services/mcontrolcenter.helper.service
echo "Name=mcontrolcenter.helper" >> $out/share/dbus-1/system-services/mcontrolcenter.helper.service
echo "Exec=$out/libexec/mcontrolcenter-helper" >> $out/share/dbus-1/system-services/mcontrolcenter.helper.service
echo "User=root" >> $out/share/dbus-1/system-services/mcontrolcenter.helper.service
install -Dm755 mcontrolcenter $out/bin/mcontrolcenter
install -Dm755 helper/mcontrolcenter-helper $out/libexec/mcontrolcenter-helper
install -Dm644 $src/resources/mcontrolcenter.svg $out/share/icons/hicolor/32x32/apps/mcontrolcenter.svg
install -Dm644 $src/src/helper/mcontrolcenter-helper.conf $out/share/dbus-1/system.d/mcontrolcenter-helper.conf
mkdir -p $out/share/dbus-1/system-services
echo "[D-BUS Service]" >> $out/share/dbus-1/system-services/mcontrolcenter.helper.service
echo "Name=mcontrolcenter.helper" >> $out/share/dbus-1/system-services/mcontrolcenter.helper.service
echo "Exec=$out/libexec/mcontrolcenter-helper" >> $out/share/dbus-1/system-services/mcontrolcenter.helper.service
echo "User=root" >> $out/share/dbus-1/system-services/mcontrolcenter.helper.service
'';

meta = with lib; {
homepage = "https://github.com/dmitry-s93/MControlCenter";
description = ''
An application that allows you to change the settings of MSI laptops running Linux.";
'';
description = "An application that allows you to change the settings of MSI laptops running Linux.";
licencse = licenses.gpl3;
platforms = with platforms; linux;
# maintainers = [ maintainers.nadimkobeissi ];
Expand Down

0 comments on commit 16007bb

Please sign in to comment.