diff options
author | Marc Weber <marco-oweber@gmx.de> | 2008-12-20 01:20:35 +0000 |
---|---|---|
committer | Marc Weber <marco-oweber@gmx.de> | 2008-12-20 01:20:35 +0000 |
commit | e996113be7f41f067aaefac881c540b5ceb8d2d4 (patch) | |
tree | 177f16552ca2d05020c3d45a0b45502556a09502 /pkgs/misc/jackaudio/default.nix | |
parent | 5ab6464edb9bbc2a9aa15122ffc02b57ad236bb7 (diff) | |
download | nixlib-e996113be7f41f067aaefac881c540b5ceb8d2d4.tar nixlib-e996113be7f41f067aaefac881c540b5ceb8d2d4.tar.gz nixlib-e996113be7f41f067aaefac881c540b5ceb8d2d4.tar.bz2 nixlib-e996113be7f41f067aaefac881c540b5ceb8d2d4.tar.lz nixlib-e996113be7f41f067aaefac881c540b5ceb8d2d4.tar.xz nixlib-e996113be7f41f067aaefac881c540b5ceb8d2d4.tar.zst nixlib-e996113be7f41f067aaefac881c540b5ceb8d2d4.zip |
removed mkDerivationByConfiguration, using composableDerivation instead
qgis, vim_configurable both work now svn path=/nixpkgs/trunk/; revision=13661
Diffstat (limited to 'pkgs/misc/jackaudio/default.nix')
-rw-r--r-- | pkgs/misc/jackaudio/default.nix | 104 |
1 files changed, 50 insertions, 54 deletions
diff --git a/pkgs/misc/jackaudio/default.nix b/pkgs/misc/jackaudio/default.nix index 7c4450a8a2bd..c7c010963c54 100644 --- a/pkgs/misc/jackaudio/default.nix +++ b/pkgs/misc/jackaudio/default.nix @@ -1,57 +1,53 @@ -# Perhaps we can get some ideas from here ? http://gentoo-wiki.com/HOWTO_Jack +# Perhaps we can get some ideas from here ? http://gentoo-wiki.com/HOWTO_Jack # still much to test but it compiles now args: -args.mkDerivationByConfiguration { - flagConfig = { - mandatory = { buildInputs = [ "pkgconfig" ];}; - - # FIXME: tidy up - - # static[=PKGS] = { cfgOption = "--enable-static[=PKGS]"; }; #build static libraries [default=no] - # shared[=PKGS] = { cfgOption = "--enable-shared[=PKGS]"; }; #build shared libraries [default=yes] - posix_shm = { cfgOption = "--enable-posix-shm"; }; #use POSIX shm API - # altivec seems to be for mac only ? - # altivec = { cfgOption = "--enable-altivec"; }; #enable Altivec support (default=auto) - - # keeping default values by now: - # optimization_by_compiler = { cfgOption = "--enable-optimization-by-compiler"; }; [>use compiler (NOT processor) capabilities to determine optimization flags - # optimization_by_cpu = { cfgOption = "--enable-optimization-by-cpu"; }; [>use processor capabilities to determine optimization flags - - # I think the default is ok - # mmx = { cfgOption = "--enable-mmx"; }; #enable MMX support (default=auto) - #sse = { cfgOption = "--enable-sse"; }; #enable SSE support (default=auto) - #dynsimd = { cfgOption = "--enable-dynsimd"; }; #enable dynamic SIMD selection (default=no) - #optimize = { cfgOption = "--enable-optimize"; }; #ask the compiler for its best optimizations - #resize = { cfgOption = "--enable-resize"; }; #enable buffer resizing feature - #ensure_mlock = { cfgOption = "--enable-ensure-mlock"; }; #fail if unable to lock memory - #debug = { cfgOption = "--enable-debug"; }; #enable debugging messages in jackd and libjack - timestamps = { cfgOption = "--enable-timestamps"; }; # allow clients to use the JACK timestamp API - #preemption_check = { cfgOption = "--enable-preemption-check"; }; # - - capabilities = { cfgOption = "--enable-capabilities"; }; #use libcap to gain realtime scheduling priviledges - no_oldtrans = { cfgOption = "--disable-oldtrans"; }; #remove old transport interfaces - stripped_jackd = { cfgOption = "--enable-stripped-jackd"; }; #strip jack before computing its md5 sum - no_portaudio = { cfgOption = "--disable-portaudio"; }; #ignore PortAudio driver - no_coreaudio = { cfgOption = "--disable-coreaudio"; }; #ignore CoreAudio driver - no_oss = { cfgOption = "--disable-oss"; }; #ignore OSS driver - no_freebob = { cfgOption = "--disable-freebob"; }; #ignore FreeBob driver - alsa = { cfgOption = "--enable-alsa"; buildInputs="alsaLib"; }; #enable ALSA driver - no_alsa = { cfgOption = "--disable-alsa"; }; #ignore ALSA driver - - }; - - extraAttrs = co : { - name = "jack-0.103.0"; - - src = args.fetchurl { - url = "mirror://sourceforge/jackit/jack-audio-connection-kit-0.109.2.tar.gz"; - sha256 = "1m5z8dzalqspsa63pkcgyns0cvh0kqwhb9g1ivcwvnz0bc7ag9r7"; - }; - - meta = { - description = "jack audio connection kit"; - homepage = "http://jackaudio.org"; - license = "GPL"; - }; +let inherit (args.composableDerivation) composableDerivation edf; in +composableDerivation { + initial = { + buildInputs = [ args.pkgconfig ]; + flags = + # FIXME: tidy up + edf { name = "posix-shm"; } #use POSIX shm API + // edf { name = "timestamps"; } # allow clients to use the JACK timestamp API + // edf { name = "capabilities"; } #use libcap to gain realtime scheduling priviledges + // edf { name = "oldtrans"; } #remove old transport interfaces + // edf { name = "stripped-jackd"; } #strip jack before computing its md5 sum + // edf { name = "portaudio"; } #ignore PortAudio driver + // edf { name = "coreaudio"; } #ignore CoreAudio driver + // edf { name = "oss"; } #ignore OSS driver + // edf { name = "freebob"; } #ignore FreeBob driver + // edf { name = "alsa"; enable = { buildInputs=[args.alsaLib]; }; }; + + # altivec seems to be for mac only ? + # altivec = { configureFlags = ["--enable-altivec"]; }; #enable Altivec support (default=auto) + + # keeping default values by now: + # optimization_by_compiler = { configureFlags = ["--enable-optimization-by-compiler"]; }; [>use compiler (NOT processor) capabilities to determine optimization flags + # optimization_by_cpu = { configureFlags = ["--enable-optimization-by-cpu"]; }; [>use processor capabilities to determine optimization flags + + # I think the default is ok + # mmx = edf { name = "mmx"; }; #enable MMX support (default=auto) + #sse = edf { name = "sse"; }; #enable SSE support (default=auto) + #dynsimd = edf { name = "dynsimd"; }; #enable dynamic SIMD selection (default=no) + #optimize = edf { name = "optimize"; }; #ask the compiler for its best optimizations + #resize = edf { name = "resize"; }; #enable buffer resizing feature + #ensure_mlock = edf { name = "ensure-mlock"; }; #fail if unable to lock memory + #debug = edf { name = "debug"; }; #enable debugging messages in jackd and libjack + #preemption_check = edf { name = "preemption-check"; }; # + cfg = { + posix_shmSupport = true; + timestampsSupport = true; + alsaSupport = true; + }; + name = "jack-0.103.0"; + src = args.fetchurl { + url = "mirror://sourceforge/jackit/jack-audio-connection-kit-0.109.2.tar.gz"; + sha256 = "1m5z8dzalqspsa63pkcgyns0cvh0kqwhb9g1ivcwvnz0bc7ag9r7"; + }; + meta = { + description = "jack audio connection kit"; + homepage = "http://jackaudio.org"; + license = "GPL"; + }; }; -} args +} |