From 58f03122e5e1be4b6ad1e3cf5f6dcee189699eef Mon Sep 17 00:00:00 2001 From: Daniel Firth <dan.firth@homotopic.tech> Date: Wed, 28 Dec 2022 07:32:55 +0000 Subject: [PATCH] alsa-mixer: init at 0.3.0 --- horizon.dhall | 1 + initial-packages.nix | 2 ++ pkgs/alsa-mixer.nix | 23 +++++++++++++++++++++++ 3 files changed, 26 insertions(+) create mode 100644 pkgs/alsa-mixer.nix diff --git a/horizon.dhall b/horizon.dhall index 616321a0..a145fe76 100644 --- a/horizon.dhall +++ b/horizon.dhall @@ -69,6 +69,7 @@ in H.HorizonExport.MakePackageSet , H.callHackage "alex" "3.2.7.1" , H.callHackage "algebraic-graphs" "0.7" , H.callHackage "alsa-core" "0.5.0.1" + , H.callHackage "alsa-mixer" "0.3.0" , H.callHackage "ansi-terminal" "0.11.3" , H.callHackage "ansi-wl-pprint" "0.6.9" , H.callHackage "appar" "0.1.8" diff --git a/initial-packages.nix b/initial-packages.nix index 626e9731..9238edd0 100644 --- a/initial-packages.nix +++ b/initial-packages.nix @@ -71,6 +71,8 @@ self: with pkgs.haskell.lib; { alsa-core = self.callPackage (./pkgs/alsa-core.nix) { }; + alsa-mixer = self.callPackage (./pkgs/alsa-mixer.nix) { }; + ansi-terminal = self.callPackage (./pkgs/ansi-terminal.nix) { }; ansi-wl-pprint = self.callPackage (./pkgs/ansi-wl-pprint.nix) { }; diff --git a/pkgs/alsa-mixer.nix b/pkgs/alsa-mixer.nix new file mode 100644 index 00000000..955d3fce --- /dev/null +++ b/pkgs/alsa-mixer.nix @@ -0,0 +1,23 @@ +{ mkDerivation, alsa-core, alsa-lib, base, c2hs, lib, unix }: +mkDerivation { + pname = "alsa-mixer"; + version = "0.3.0"; + sha256 = "cb6a197de99c6b4339a7f552e1c6b71eaefa11bb96102d5ba4519a23c615de02"; + isLibrary = true; + isExecutable = false; + enableSeparateDataOutput = false; + libraryHaskellDepends = [ alsa-core base unix ]; + librarySystemDepends = [ alsa-lib ]; + libraryToolDepends = [ c2hs ]; + enableLibraryProfiling = true; + enableExecutableProfiling = true; + doHaddock = false; + jailbreak = true; + doCheck = false; + doBenchmark = false; + hyperlinkSource = false; + homepage = "https://github.com/ttuegel/alsa-mixer"; + description = "Bindings to the ALSA simple mixer API"; + license = lib.licenses.bsd3; + broken = false; +} -- GitLab