summaryrefslogtreecommitdiff
path: root/pkgs/pass-tail/default.nix
blob: e664a939313d65c9833074595a433dd4a3bf6dbc (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
{
  fetchFromGitHub,
  lib,
  stdenv,
}:
stdenv.mkDerivation {
  pname = "pass-tail";
  version = "master-20220426";

  src = fetchFromGitHub {
    repo = "pass-extension-tail";
    owner = "palortoff";

    rev = "e8455bc0ada9b25722d2826063b1dfdc521d5b24";
    hash = "sha256-62jTEbNuNZr6g6zvqUdfeseGNnn8Z1s3cY7i5U+a4PU=";
  };

  installPhase = ''
    runHook preInstall

    make install PREFIX=$out BASHCOMPDIR=$out/share/bash-completion/completions

    runHook postInstall
  '';
}