about summary refs log tree commit diff
path: root/users/glittershark/system/pkgs/alsi/default.nix
blob: d4da8ff38ef7bde54e65b322c59c9fbcd6837965 (plain) (blame)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
{ perl, stdenv, fetchFromGitHub }:
stdenv.mkDerivation {
  name = "alsi";
  pname = "alsi";
  version = "0.4.8";

  src = fetchFromGitHub {
    owner = "trizen";
    repo = "alsi";
    rev = "fe2a925caad38d4cc7afe10d74ba60c5db09ee66";
    sha256 = "060xlalfclrda5f1h3svj4v2gr19mdrsc62vrg7hgii0f3lib7j5";
  };

  buildInputs = [
    (perl.withPackages (ps: with ps; [ DataDump ]))
  ];

  installPhase = ''
    mkdir -p $out/bin
    cp alsi $out/bin/alsi
  '';
}