blob: d59f29a18454aaa8a2ded2f79e603cd31608d967 (
plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
|
{ stdenv, rustPlatform, dbus, pkgconfig, ... }:
rustPlatform.buildRustPackage rec {
name = "set_eq-${version}";
version = "0.1.0";
buildInputs = [ dbus pkgconfig ];
src = ./.;
cargoSha256 = "0w9wy99jy5am37jyzwa1sqj78pvsz7dg71hx2q02xrjkyjjv07qd";
preFixup = ''
mkdir -p "$out/share/"{bash-completion/completions,fish/vendor_completions.d,zsh/site-functions}
cp target/release/build/set_eq-*/out/set_eq.bash "$out/share/bash-completion/completions/"
cp target/release/build/set_eq-*/out/set_eq.fish "$out/share/fish/vendor_completions.d/"
cp target/release/build/set_eq-*/out/_set_eq "$out/share/zsh/site-functions/"
'';
meta = with stdenv.lib; {
description = "A command-line tool to manipulate PulseAudio's equalizer";
homepage = https://github.com/minijackson/set_eq;
platforms = platforms.all;
};
}
|