git.iko.soy/typeable/nixpkgs
on master help sign in
alsa-tools: add initial package building everything except for a few nut cases
commit3da4f68800da5bb796c971c33ccfbea9d16b398b authorFlorian Paul Schmidt <mista.tapas@gmx.net> dateTue 13 Oct 2015, 11:33 (11 years ago) parent4760b6e
2 files changed+58
pkgs/os-specific/linux/alsa-tools/default.nix+57 pkgs/top-level/all-packages.nix+1
pkgs/os-specific/linux/alsa-tools/default.nixnew file+57
@@ -0,0 +1,57 @@
1+{ stdenv, fetchurl, alsaLib, pkgconfig, gtk, gtk3, fltk13 }:
2+
3+stdenv.mkDerivation rec {
4+ name = "alsa-tools-${version}";
5+ version = "1.0.29";
6+
7+ src = fetchurl {
8+ urls = [
9+ "ftp://ftp.alsa-project.org/pub/tools/${name}.tar.bz2"
10+ "http://alsa.cybermirror.org/tools/${name}.tar.bz2"
11+ ];
12+ sha256 = "1lgvyb81md25s9ciswpdsbibmx9s030kvyylf0673w3kbamz1awl";
13+ };
14+
15+ enableParallelBuilding = true;
16+
17+ phases = "unpackPhase patchPhase configurePhase buildPhase installPhase fixupPhase";
18+
19+ buildInputs = [ alsaLib pkgconfig gtk gtk3 fltk13 ];
20+
21+ patchPhase = ''
22+ export tools="as10k1 hda-verb hdspmixer echomixer hdajackretask hdspconf hwmixvolume mixartloader rmedigicontrol sscape_ctl vxloader envy24control hdajacksensetest hdsploader ld10k1 pcxhrloader sb16_csp us428control"
23+ # export tools="as10k1 hda-verb hdspmixer qlo10k1 seq usx2yloader echomixer hdajackretask hdspconf hwmixvolume mixartloader rmedigicontrol sscape_ctl vxloader envy24control hdajacksensetest hdsploader ld10k1 pcxhrloader sb16_csp us428control"
24+ '';
25+
26+ configurePhase = ''
27+ for tool in $tools; do
28+ echo "Tool: $tool:"
29+ cd "$tool"; ./configure --prefix="$out"; cd -
30+ done
31+ '';
32+
33+ buildPhase = ''
34+ for tool in $tools; do
35+ cd "$tool"; make; cd -
36+ done
37+ '';
38+
39+ installPhase = ''
40+ for tool in $tools; do
41+ cd "$tool"; make install; cd -
42+ done
43+ '';
44+
45+ meta = {
46+ homepage = http://www.alsa-project.org/;
47+ description = "ALSA, the Advanced Linux Sound Architecture tools";
48+
49+ longDescription = ''
50+ The Advanced Linux Sound Architecture (ALSA) provides audio and
51+ MIDI functionality to the Linux-based operating system.
52+ '';
53+
54+ platforms = stdenv.lib.platforms.linux;
55+ maintainers = [ "Florian Paul Schmidt <mista.tapas@gmx.net>" ];
56+ };
57+}
pkgs/top-level/all-packages.nix+1
@@ -9424,6 +9424,7 @@ let
94249424
94259425 alsaUtils = callPackage ../os-specific/linux/alsa-utils { };
94269426 alsaOss = callPackage ../os-specific/linux/alsa-oss { };
9427+ alsaTools = callPackage ../os-specific/linux/alsa-tools { };
94279428
94289429 microcodeAmd = callPackage ../os-specific/linux/microcode/amd.nix { };
94299430