diff --git a/overlays/cliamp.nix b/overlays/cliamp.nix new file mode 100644 index 0000000..a080b14 --- /dev/null +++ b/overlays/cliamp.nix @@ -0,0 +1,24 @@ +final: prev: { + cliampLatest = prev.cliamp.overrideAttrs (oldAttrs: rec { + version = "2.0.1"; + + src = prev.fetchFromGitHub { + owner = "bjarneo"; + repo = "cliamp"; + tag = "v${version}"; + sha256 = "sha256-r7MrrcVt+/f+iPozn9jaczJmpPv431wAoW8LvHKBtB8="; + }; + + vendorHash = "sha256-rtwUWbft5XGEbuBCn0OMCn4TS5Ul+UXJNIqNOzXfU+M="; + + buildInputs = with prev; [ + libogg + libvorbis + flac + mpg123 + ] + ++ lib.optionals stdenv.hostPlatform.isLinux [ + alsa-lib + ]; + }); +} diff --git a/overlays/default.nix b/overlays/default.nix index 6a5410c..c033d13 100644 --- a/overlays/default.nix +++ b/overlays/default.nix @@ -2,4 +2,5 @@ final: prev: prev.lib.composeManyExtensions [ (import ./atuin.nix) (import ./container.nix) + (import ./cliamp.nix) ] final prev diff --git a/pkgs/default.nix b/pkgs/default.nix index 49ab505..1fa9697 100644 --- a/pkgs/default.nix +++ b/pkgs/default.nix @@ -7,6 +7,7 @@ # any overlays we define here atuinLatest = pkgs.atuinLatest; containerLatest = pkgs.containerLatest; + cliampLatest = pkgs.cliampLatest; # any packages that are added to pkgs and are inputs, we inherit them here inherit hildibrand;