Commit 663fc6bf authored by R. RyanTM's avatar R. RyanTM Committed by K900
Browse files

asusctl: 6.1.12 -> 6.1.14

parent 1d1dcb93
Loading
Loading
Loading
Loading
+4 −4
Original line number Diff line number Diff line
@@ -18,16 +18,16 @@
}:
rustPlatform.buildRustPackage rec {
  pname = "asusctl";
  version = "6.1.12";
  version = "6.1.14";

  src = fetchFromGitLab {
    owner = "asus-linux";
    repo = "asusctl";
    tag = version;
    hash = "sha256-E/tDd7wQKDgC91x1rGa8Ltn4GMPk3DJDvmMQNafVLyM=";
    hash = "sha256-TMfuqtMaXklAEQjSxeYToszZ6foL0b7PTEdpBrAeIxY=";
  };

  cargoHash = "sha256-lvm3xvI01RyaSS39nm3l7Zpn3x23DDBQr+0Gggl4p9U=";
  cargoHash = "sha256-rJuFdBvypwPFCOUQ+34xDHTKYhrgJPaHng54oybN2Tk=";

  postPatch = ''
    files="
@@ -43,7 +43,7 @@ rustPlatform.buildRustPackage rec {
      substituteInPlace $file --replace-fail /usr/share $out/share
    done

    substituteInPlace data/asusd.rules --replace-fail systemctl ${lib.getExe' systemd "systemctl"}
    substituteInPlace data/asusd.rules --replace-fail /usr/bin/systemctl ${lib.getExe' systemd "systemctl"}
    substituteInPlace data/asusd.service \
      --replace-fail /usr/bin/asusd $out/bin/asusd \
      --replace-fail /bin/sleep ${lib.getExe' coreutils "sleep"}