diff options
author | Michael Raskin <7c6f434c@mail.ru> | 2007-10-29 10:52:04 +0000 |
---|---|---|
committer | Michael Raskin <7c6f434c@mail.ru> | 2007-10-29 10:52:04 +0000 |
commit | d352d54b11b66c8855936d214710460b2944ca2f (patch) | |
tree | 53fa6d5159b3cc2413c21c456c1740d73eafd8ba /pkgs/applications | |
parent | ae7d316684addd6f087ae384b5a28c5315ce3671 (diff) | |
download | nixlib-d352d54b11b66c8855936d214710460b2944ca2f.tar nixlib-d352d54b11b66c8855936d214710460b2944ca2f.tar.gz nixlib-d352d54b11b66c8855936d214710460b2944ca2f.tar.bz2 nixlib-d352d54b11b66c8855936d214710460b2944ca2f.tar.lz nixlib-d352d54b11b66c8855936d214710460b2944ca2f.tar.xz nixlib-d352d54b11b66c8855936d214710460b2944ca2f.tar.zst nixlib-d352d54b11b66c8855936d214710460b2944ca2f.zip |
Added a new setup proposal, builder is no more derived from shell script (where edit=glibc rebuild), but is composed from a nix attribute set with strings and dependencies - so if you add a function, old expressions ignore it; collateral damage are packages in this style: Fastest Fourier Transform in the West, Audacity sound editor, Falling Sand game. Also added string equality that ignores dependencies to lib. Note that hasSuffixHack is now the more predictable version, but hasSuffix is left to remind us to fix the bug.
svn path=/nixpkgs/trunk/; revision=9549
Diffstat (limited to 'pkgs/applications')
-rw-r--r-- | pkgs/applications/audio/audacity/default.nix | 36 | ||||
-rw-r--r-- | pkgs/applications/audio/ladspa-plugins/default.nix | 27 | ||||
-rw-r--r-- | pkgs/applications/audio/ladspa-plugins/ladspah.nix | 29 | ||||
-rw-r--r-- | pkgs/applications/window-managers/compiz/extra.nix | 1 |
4 files changed, 93 insertions, 0 deletions
diff --git a/pkgs/applications/audio/audacity/default.nix b/pkgs/applications/audio/audacity/default.nix new file mode 100644 index 000000000000..b8c28a0e22e4 --- /dev/null +++ b/pkgs/applications/audio/audacity/default.nix @@ -0,0 +1,36 @@ +args: with args; + with (builderDefs { + src = + fetchurl { + url = mirror://sourceforge/audacity/audacity-src-1.3.3.tar.gz; + sha256 = "17bjc2rnqspg1mbay4b1hhgg08iadapwf6w98gbv3r84rv1mhgls"; + }; + + buildInputs =[(wxGTK null) libogg libvorbis libsndfile libmad pkgconfig gtk + gettext glib]; + } null); + with stringsWithDeps; +let + postInstall = FullDepEntry (" + old_rpath=$(patchelf --print-rpath \$out/bin/audacity); + patchelf --set-rpath \$old_rpath:${gtk}/lib:${glib}/lib \$out/bin/audacity; + ") [minInit]; + preBuild = FullDepEntry (" + sed -e '/\\/usr\\/local\\/lib\\/ladspa/awxGetApp()."+ + "AddUniquePathToPathList(wxGetenv(wxT(\"HOME\"))+"+ + "wxT(\"/.ladspa-plugins\"), pathList);' + + ") [minInit]; +in +stdenv.mkDerivation { + name = "audacity-1.3.3"; + + builder = writeScript "audacity-1.3.3-builder" + (textClosure [addInputs (doDump "0") (noDepEntry "echo \$PATH; ar --version") doConfigure preBuild doMakeInstall postInstall doForceShare]); + + meta = { + description = " + Audacity sound editor. +"; + }; +} diff --git a/pkgs/applications/audio/ladspa-plugins/default.nix b/pkgs/applications/audio/ladspa-plugins/default.nix new file mode 100644 index 000000000000..12722356d85d --- /dev/null +++ b/pkgs/applications/audio/ladspa-plugins/default.nix @@ -0,0 +1,27 @@ +args: with args; + with (builderDefs { + src = + fetchurl { + url = http://plugin.org.uk/releases/0.4.15/swh-plugins-0.4.15.tar.gz; + sha256 = "0h462s4mmqg4iw7zdsihnrmz2vjg0fd49qxw2a284bnryjjfhpnh"; + }; + buildInputs = [fftw ladspaH pkgconfig]; + configureFlags = []; + } null); + with stringsWithDeps; +let + postInstall = FullDepEntry (" + ensureDir \$out/share/ladspa/ + ln -s \$out/lib/ladspa \$out/share/ladspa/lib + ") [minInit defEnsureDir]; +in +stdenv.mkDerivation { + name = "swh-plugins-0.4.15"; + builder = writeScript "swh-plugins-0.4.15-builder" + (textClosure [doConfigure doMakeInstall postInstall doForceShare]); + meta = { + description = " + LADSPA format audio plugins. +"; + }; +} diff --git a/pkgs/applications/audio/ladspa-plugins/ladspah.nix b/pkgs/applications/audio/ladspa-plugins/ladspah.nix new file mode 100644 index 000000000000..5ab77db3a2cf --- /dev/null +++ b/pkgs/applications/audio/ladspa-plugins/ladspah.nix @@ -0,0 +1,29 @@ +args: with args; + with stringsWithDeps; +let + src = + fetchurl { + url = http://www.ladspa.org/ladspa_sdk/ladspa.h.txt; + sha256 = "1b908csn85ng9sz5s5d1mqk711cmawain2z8px2ajngihdrynb67"; + }; +in + with builderDefs { + buildInputs = []; + inherit src; + } null; +let + copyFile = FullDepEntry (" + ensureDir \$out/include + cp ${src} \$out/include/ladspa.h + ") [minInit defEnsureDir]; +in +stdenv.mkDerivation { + name = "ladspa.h"; + builder = writeScript "ladspa.h-builder" + (textClosure [copyFile]); + meta = { + description = " + LADSPA format audio plugins. +"; + }; +} diff --git a/pkgs/applications/window-managers/compiz/extra.nix b/pkgs/applications/window-managers/compiz/extra.nix index 75d640ca1cad..501518d3f679 100644 --- a/pkgs/applications/window-managers/compiz/extra.nix +++ b/pkgs/applications/window-managers/compiz/extra.nix @@ -13,4 +13,5 @@ stdenv.mkDerivation { preBuild = " makeFlagsArray=(moduledir=$out/lib/compiz) "; + preConfigure = "touch m4/Makefile.in"; } |