about summary refs log tree commit diff
path: root/pkgs/applications/audio/mmtc
diff options
context:
space:
mode:
authorfigsoda <figsoda@pm.me>2022-10-27 12:23:18 -0400
committerfigsoda <figsoda@pm.me>2022-10-27 12:24:16 -0400
commit37cf42736abe9d84d3c5f5931b6a1f5987eb37d0 (patch)
treefb26224f595dff24f97267994dcd582815fe370e /pkgs/applications/audio/mmtc
parentf92984a1b2fa3dfa4999f64e8431690d9f41eb9f (diff)
mmtc: 0.2.15 -> 0.3.0
Diffstat (limited to 'pkgs/applications/audio/mmtc')
-rw-r--r--pkgs/applications/audio/mmtc/default.nix14
1 files changed, 7 insertions, 7 deletions
diff --git a/pkgs/applications/audio/mmtc/default.nix b/pkgs/applications/audio/mmtc/default.nix
index e1cb2a1eb2304..db6e0d27be75a 100644
--- a/pkgs/applications/audio/mmtc/default.nix
+++ b/pkgs/applications/audio/mmtc/default.nix
@@ -2,25 +2,25 @@
 
 rustPlatform.buildRustPackage rec {
   pname = "mmtc";
-  version = "0.2.15";
+  version = "0.3.0";
 
   src = fetchFromGitHub {
     owner = "figsoda";
     repo = pname;
     rev = "v${version}";
-    sha256 = "sha256-GQ1SoZE74o8fsXHVdjdEMbdUeefyPb4FXxidcHCy180=";
+    sha256 = "sha256-fWd349IDlN6XNv7MrqJeLwkmevZoKXLSz8a09YWsNcI=";
   };
 
-  cargoSha256 = "sha256-2IcOwjYTRl2tCB/YAuDACpgaRKZ/21IKWpVs+koYH3k=";
+  cargoSha256 = "sha256-WrEC3zWwY1plOn8DrspbJFI3R/fE6yDQT2u2lVubbQU=";
 
   nativeBuildInputs = [ installShellFiles ];
 
-  preFixup = ''
-    completions=($releaseDir/build/mmtc-*/out/completions)
-    installShellCompletion $completions/mmtc.{bash,fish} --zsh $completions/_mmtc
+  postInstall = ''
+    installManPage artifacts/mmtc.1
+    installShellCompletion artifacts/mmtc.{bash,fish} --zsh artifacts/_mmtc
   '';
 
-  GEN_COMPLETIONS = 1;
+  GEN_ARTIFACTS = "artifacts";
 
   meta = with lib; {
     description = "Minimal mpd terminal client that aims to be simple yet highly configurable";