about summary refs log tree commit diff
path: root/third_party/alsi/default.nix
diff options
context:
space:
mode:
Diffstat (limited to 'third_party/alsi/default.nix')
-rw-r--r--third_party/alsi/default.nix25
1 files changed, 25 insertions, 0 deletions
diff --git a/third_party/alsi/default.nix b/third_party/alsi/default.nix
new file mode 100644
index 000000000000..8969374176d9
--- /dev/null
+++ b/third_party/alsi/default.nix
@@ -0,0 +1,25 @@
+{ pkgs, ... }:
+
+with pkgs;
+
+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
+  '';
+}