nix-config/pkgs/minicava/default.nix
Greg Burd f3fd89af54
A fork of Misterio77 and his standard template.
Many thangs to the hard work and generous availability of:
git@github.com:Misterio77/nix-config.git
2023-09-15 10:53:38 -04:00

41 lines
804 B
Nix

{ lib
, stdenv
, fetchFromGitHub
, makeWrapper
, cava
, gnused
}:
with lib;
stdenv.mkDerivation {
pname = "minicava";
version = "0.1";
src = fetchFromGitHub {
owner = "Misterio77";
repo = "minicava";
rev = "c24681fe7c91548e0fb4f55a1882b0145c48d097";
sha256 = "sha256-t+NHZP2I7clDHrnCDdYMaLcua7inVKm2t3aYZ3uBAlk=";
};
dontBuild = true;
dontConfigure = true;
nativeBuildInputs = [ makeWrapper ];
installPhase = ''
install -Dm 0755 minicava.sh $out/bin/minicava
wrapProgram $out/bin/minicava --set PATH \
"${makeBinPath [
cava
gnused
]}"
'';
meta = {
description = "A miniature cava sound visualizer";
homepage = "https://github.com/Misterio77/minicava";
license = licenses.mit;
platforms = platforms.all;
};
}