]> rtime.felk.cvut.cz Git - sojka/sterm.git/commitdiff
default.nix: include completion master
authorKarel Kočí <cynerd@email.cz>
Thu, 9 Jun 2022 15:06:44 +0000 (17:06 +0200)
committerKarel Kočí <cynerd@email.cz>
Thu, 9 Jun 2022 15:06:44 +0000 (17:06 +0200)
default.nix

index 1035b9f6868e876484183d2b31660425ec845c3a..b2ddd3d7f35104301bd3cbd727516a19a552ddbc 100644 (file)
@@ -6,5 +6,11 @@ with pkgs;
 stdenv.mkDerivation {
   name = "sterm";
   src = ./.;
-  installPhase = "make install PREFIX=$out";
+  nativeBuildInputs = [ pkgs.installShellFiles ];
+  installPhase = ''
+    make install PREFIX=$out NO_COMP=1
+    installShellCompletion --bash --name sterm completion.bash
+    installShellCompletion --zsh --name _sterm completion.zsh
+  '';
+
 }