mirror of
https://github.com/gburd/nix-config.git
synced 2024-11-20 10:36:25 +00:00
f3fd89af54
Many thangs to the hard work and generous availability of: git@github.com:Misterio77/nix-config.git
41 lines
804 B
Nix
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;
|
|
};
|
|
}
|