Merge pull request #50293 from matthewbauer/cleanups2
Add setup-hooks for scons and waf
This commit is contained in:
commit
73951bc0c8
@ -1,4 +1,5 @@
|
|||||||
{ stdenv, fetchurl, makeWrapper, pkgconfig, alsaLib, dbus, libjack2
|
{ stdenv, fetchurl, makeWrapper, pkgconfig, alsaLib, dbus, libjack2
|
||||||
|
, wafHook
|
||||||
, python2Packages}:
|
, python2Packages}:
|
||||||
|
|
||||||
let
|
let
|
||||||
@ -12,15 +13,10 @@ in stdenv.mkDerivation rec {
|
|||||||
sha256 = "06dgf5655znbvrd7fhrv8msv6zw8vk0hjqglcqkh90960mnnmwz7";
|
sha256 = "06dgf5655znbvrd7fhrv8msv6zw8vk0hjqglcqkh90960mnnmwz7";
|
||||||
};
|
};
|
||||||
|
|
||||||
nativeBuildInputs = [ pkgconfig ];
|
nativeBuildInputs = [ pkgconfig wafHook ];
|
||||||
buildInputs = [ makeWrapper alsaLib dbus libjack2 python dbus-python ];
|
buildInputs = [ makeWrapper alsaLib dbus libjack2 python dbus-python ];
|
||||||
|
|
||||||
configurePhase = "${python.interpreter} waf configure --prefix=$out";
|
postInstall = ''
|
||||||
|
|
||||||
buildPhase = "${python.interpreter} waf";
|
|
||||||
|
|
||||||
installPhase = ''
|
|
||||||
${python.interpreter} waf install
|
|
||||||
wrapProgram $out/bin/a2j_control --set PYTHONPATH $PYTHONPATH
|
wrapProgram $out/bin/a2j_control --set PYTHONPATH $PYTHONPATH
|
||||||
'';
|
'';
|
||||||
|
|
||||||
|
@ -1,4 +1,5 @@
|
|||||||
{ stdenv, fetchFromGitHub, cairo, fftw, gtkmm2, lv2, lvtk, pkgconfig, python3 }:
|
{ stdenv, fetchFromGitHub, cairo, fftw, gtkmm2, lv2, lvtk, pkgconfig, python3
|
||||||
|
, wafHook }:
|
||||||
|
|
||||||
stdenv.mkDerivation rec {
|
stdenv.mkDerivation rec {
|
||||||
name = "ams-lv2-${version}";
|
name = "ams-lv2-${version}";
|
||||||
@ -11,15 +12,9 @@ stdenv.mkDerivation rec {
|
|||||||
sha256 = "1n1dnqnj24xhiy9323lj52nswr5120cj56fpckg802miss05sr6x";
|
sha256 = "1n1dnqnj24xhiy9323lj52nswr5120cj56fpckg802miss05sr6x";
|
||||||
};
|
};
|
||||||
|
|
||||||
nativeBuildInputs = [ pkgconfig ];
|
nativeBuildInputs = [ pkgconfig wafHook ];
|
||||||
buildInputs = [ cairo fftw gtkmm2 lv2 lvtk ];
|
buildInputs = [ cairo fftw gtkmm2 lv2 lvtk ];
|
||||||
|
|
||||||
configurePhase = "${python3.interpreter} waf configure --prefix=$out";
|
|
||||||
|
|
||||||
buildPhase = "${python3.interpreter} waf";
|
|
||||||
|
|
||||||
installPhase = "${python3.interpreter} waf install";
|
|
||||||
|
|
||||||
meta = with stdenv.lib; {
|
meta = with stdenv.lib; {
|
||||||
description = "An LV2 port of the internal modules found in Alsa Modular Synth";
|
description = "An LV2 port of the internal modules found in Alsa Modular Synth";
|
||||||
homepage = http://objectivewave.wordpress.com/ams-lv2;
|
homepage = http://objectivewave.wordpress.com/ams-lv2;
|
||||||
|
@ -4,7 +4,8 @@
|
|||||||
, librdf_raptor, librdf_rasqal, libsamplerate, libsigcxx, libsndfile
|
, librdf_raptor, librdf_rasqal, libsamplerate, libsigcxx, libsndfile
|
||||||
, libusb, libuuid, libxml2, libxslt, lilv, lv2, makeWrapper
|
, libusb, libuuid, libxml2, libxslt, lilv, lv2, makeWrapper
|
||||||
, perl, pkgconfig, python2, rubberband, serd, sord, sratom
|
, perl, pkgconfig, python2, rubberband, serd, sord, sratom
|
||||||
, taglib, vampSDK, dbus, fftw, pango, suil, libarchive }:
|
, taglib, vampSDK, dbus, fftw, pango, suil, libarchive
|
||||||
|
, wafHook }:
|
||||||
|
|
||||||
let
|
let
|
||||||
|
|
||||||
@ -29,6 +30,7 @@ stdenv.mkDerivation rec {
|
|||||||
sha256 = "0mla5lm51ryikc2rrk53max2m7a5ds6i1ai921l2h95wrha45nkr";
|
sha256 = "0mla5lm51ryikc2rrk53max2m7a5ds6i1ai921l2h95wrha45nkr";
|
||||||
};
|
};
|
||||||
|
|
||||||
|
nativeBuildInputs = [ wafHook ];
|
||||||
buildInputs =
|
buildInputs =
|
||||||
[ alsaLib aubio boost cairomm curl doxygen dbus fftw fftwSinglePrec flac
|
[ alsaLib aubio boost cairomm curl doxygen dbus fftw fftwSinglePrec flac
|
||||||
glibmm graphviz gtkmm2 libjack2 libgnomecanvas libgnomecanvasmm liblo
|
glibmm graphviz gtkmm2 libjack2 libgnomecanvas libgnomecanvasmm liblo
|
||||||
@ -47,13 +49,13 @@ stdenv.mkDerivation rec {
|
|||||||
patchShebangs ./tools/
|
patchShebangs ./tools/
|
||||||
'';
|
'';
|
||||||
|
|
||||||
configurePhase = "${python2.interpreter} waf configure --optimize --docs --with-backends=jack,alsa,dummy --prefix=$out";
|
configureFlags = [
|
||||||
|
"--optimize"
|
||||||
buildPhase = "${python2.interpreter} waf";
|
"--docs"
|
||||||
|
"--with-backends=jack,alsa,dummy"
|
||||||
installPhase = ''
|
];
|
||||||
${python2.interpreter} waf install
|
|
||||||
|
|
||||||
|
postInstall = ''
|
||||||
# Install desktop file
|
# Install desktop file
|
||||||
mkdir -p "$out/share/applications"
|
mkdir -p "$out/share/applications"
|
||||||
cat > "$out/share/applications/ardour.desktop" << EOF
|
cat > "$out/share/applications/ardour.desktop" << EOF
|
||||||
|
@ -1,4 +1,4 @@
|
|||||||
{ stdenv, fetchurl, lv2, pkgconfig, python2 }:
|
{ stdenv, fetchurl, lv2, pkgconfig, python2, wafHook }:
|
||||||
|
|
||||||
stdenv.mkDerivation rec {
|
stdenv.mkDerivation rec {
|
||||||
name = "fomp-${version}";
|
name = "fomp-${version}";
|
||||||
@ -9,15 +9,9 @@ stdenv.mkDerivation rec {
|
|||||||
sha256 = "1hh2xhknanqn3iwp12ihl6bf8p7bqxryms9qk7mh21lixl42b8k5";
|
sha256 = "1hh2xhknanqn3iwp12ihl6bf8p7bqxryms9qk7mh21lixl42b8k5";
|
||||||
};
|
};
|
||||||
|
|
||||||
nativeBuildInputs = [ pkgconfig ];
|
nativeBuildInputs = [ pkgconfig wafHook ];
|
||||||
buildInputs = [ lv2 python2 ];
|
buildInputs = [ lv2 python2 ];
|
||||||
|
|
||||||
installPhase = ''
|
|
||||||
python waf configure --prefix=$out
|
|
||||||
python waf
|
|
||||||
python waf install
|
|
||||||
'';
|
|
||||||
|
|
||||||
meta = with stdenv.lib; {
|
meta = with stdenv.lib; {
|
||||||
homepage = http://drobilla.net/software/fomp/;
|
homepage = http://drobilla.net/software/fomp/;
|
||||||
description = "An LV2 port of the MCP, VCO, FIL, and WAH plugins by Fons Adriaensen";
|
description = "An LV2 port of the MCP, VCO, FIL, and WAH plugins by Fons Adriaensen";
|
||||||
|
@ -2,7 +2,7 @@
|
|||||||
, avahi, bluez, boost, eigen, fftw, glib, glib-networking
|
, avahi, bluez, boost, eigen, fftw, glib, glib-networking
|
||||||
, glibmm, gsettings-desktop-schemas, gtkmm2, libjack2
|
, glibmm, gsettings-desktop-schemas, gtkmm2, libjack2
|
||||||
, ladspaH, libav, librdf, libsndfile, lilv, lv2, serd, sord, sratom
|
, ladspaH, libav, librdf, libsndfile, lilv, lv2, serd, sord, sratom
|
||||||
, wrapGAppsHook, zita-convolver, zita-resampler, curl
|
, wrapGAppsHook, zita-convolver, zita-resampler, curl, wafHook
|
||||||
, optimizationSupport ? false # Enable support for native CPU extensions
|
, optimizationSupport ? false # Enable support for native CPU extensions
|
||||||
}:
|
}:
|
||||||
|
|
||||||
@ -19,7 +19,7 @@ stdenv.mkDerivation rec {
|
|||||||
sha256 = "1wfm8wrwrnqpb4ihy75n7l9i6vml536jlq9pdx2pblbc4ba3paac";
|
sha256 = "1wfm8wrwrnqpb4ihy75n7l9i6vml536jlq9pdx2pblbc4ba3paac";
|
||||||
};
|
};
|
||||||
|
|
||||||
nativeBuildInputs = [ gettext intltool wrapGAppsHook pkgconfig python2 ];
|
nativeBuildInputs = [ gettext intltool wrapGAppsHook pkgconfig python2 wafHook ];
|
||||||
|
|
||||||
buildInputs = [
|
buildInputs = [
|
||||||
avahi bluez boost eigen fftw glib glibmm glib-networking.out
|
avahi bluez boost eigen fftw glib glibmm glib-networking.out
|
||||||
@ -38,12 +38,6 @@ stdenv.mkDerivation rec {
|
|||||||
"--convolver-ffmpeg"
|
"--convolver-ffmpeg"
|
||||||
] ++ optional optimizationSupport "--optimization";
|
] ++ optional optimizationSupport "--optimization";
|
||||||
|
|
||||||
configurePhase = ''python2 waf configure --prefix=$out $configureFlags'';
|
|
||||||
|
|
||||||
buildPhase = ''python2 waf build'';
|
|
||||||
|
|
||||||
installPhase = ''python2 waf install'';
|
|
||||||
|
|
||||||
meta = with stdenv.lib; {
|
meta = with stdenv.lib; {
|
||||||
description = "A virtual guitar amplifier for Linux running with JACK";
|
description = "A virtual guitar amplifier for Linux running with JACK";
|
||||||
longDescription = ''
|
longDescription = ''
|
||||||
|
@ -1,6 +1,6 @@
|
|||||||
{ stdenv, fetchgit, boost, ganv, glibmm, gtkmm2, libjack2, lilv
|
{ stdenv, fetchgit, boost, ganv, glibmm, gtkmm2, libjack2, lilv
|
||||||
, lv2Unstable, makeWrapper, pkgconfig, python, raul, rdflib, serd, sord, sratom
|
, lv2Unstable, makeWrapper, pkgconfig, python, raul, rdflib, serd, sord, sratom
|
||||||
|
, wafHook
|
||||||
, suil
|
, suil
|
||||||
}:
|
}:
|
||||||
|
|
||||||
@ -15,23 +15,19 @@ stdenv.mkDerivation rec {
|
|||||||
deepClone = true;
|
deepClone = true;
|
||||||
};
|
};
|
||||||
|
|
||||||
nativeBuildInputs = [ pkgconfig ];
|
nativeBuildInputs = [ pkgconfig wafHook ];
|
||||||
buildInputs = [
|
buildInputs = [
|
||||||
boost ganv glibmm gtkmm2 libjack2 lilv lv2Unstable makeWrapper
|
boost ganv glibmm gtkmm2 libjack2 lilv lv2Unstable makeWrapper
|
||||||
python raul serd sord sratom suil
|
python raul serd sord sratom suil
|
||||||
];
|
];
|
||||||
|
|
||||||
configurePhase = ''
|
preConfigure = ''
|
||||||
sed -e "s@{PYTHONDIR}/'@out/'@" -i wscript
|
sed -e "s@{PYTHONDIR}/'@out/'@" -i wscript
|
||||||
${python.interpreter} waf configure --prefix=$out
|
|
||||||
'';
|
'';
|
||||||
|
|
||||||
propagatedBuildInputs = [ rdflib ];
|
propagatedBuildInputs = [ rdflib ];
|
||||||
|
|
||||||
buildPhase = "${python.interpreter} waf";
|
postInstall = ''
|
||||||
|
|
||||||
installPhase = ''
|
|
||||||
${python.interpreter} waf install
|
|
||||||
for program in ingenams ingenish
|
for program in ingenams ingenish
|
||||||
do
|
do
|
||||||
wrapProgram $out/bin/$program \
|
wrapProgram $out/bin/$program \
|
||||||
|
@ -17,12 +17,8 @@ stdenv.mkDerivation rec {
|
|||||||
jack
|
jack
|
||||||
];
|
];
|
||||||
|
|
||||||
buildPhase = ''
|
|
||||||
scons
|
|
||||||
'';
|
|
||||||
installPhase = ''
|
installPhase = ''
|
||||||
mkdir -p $out/bin
|
install -D jackmix/jackmix $out/bin/jackmix
|
||||||
cp jackmix/jackmix $out/bin
|
|
||||||
'';
|
'';
|
||||||
|
|
||||||
meta = {
|
meta = {
|
||||||
|
@ -1,5 +1,5 @@
|
|||||||
{ stdenv, fetchurl, gtk2, libjack2, lilv, lv2, pkgconfig, python
|
{ stdenv, fetchurl, gtk2, libjack2, lilv, lv2, pkgconfig, python
|
||||||
, serd, sord , sratom, suil }:
|
, serd, sord , sratom, suil, wafHook }:
|
||||||
|
|
||||||
stdenv.mkDerivation rec {
|
stdenv.mkDerivation rec {
|
||||||
name = "jalv-${version}";
|
name = "jalv-${version}";
|
||||||
@ -10,17 +10,11 @@ stdenv.mkDerivation rec {
|
|||||||
sha256 = "1x2wpzzx2cgvz3dgdcgsj8dr0w3zsasy62mvl199bsdj5fbjaili";
|
sha256 = "1x2wpzzx2cgvz3dgdcgsj8dr0w3zsasy62mvl199bsdj5fbjaili";
|
||||||
};
|
};
|
||||||
|
|
||||||
nativeBuildInputs = [ pkgconfig ];
|
nativeBuildInputs = [ pkgconfig wafHook ];
|
||||||
buildInputs = [
|
buildInputs = [
|
||||||
gtk2 libjack2 lilv lv2 python serd sord sratom suil
|
gtk2 libjack2 lilv lv2 python serd sord sratom suil
|
||||||
];
|
];
|
||||||
|
|
||||||
configurePhase = "python waf configure --prefix=$out";
|
|
||||||
|
|
||||||
buildPhase = "python waf";
|
|
||||||
|
|
||||||
installPhase = "python waf install";
|
|
||||||
|
|
||||||
meta = with stdenv.lib; {
|
meta = with stdenv.lib; {
|
||||||
description = "A simple but fully featured LV2 host for Jack";
|
description = "A simple but fully featured LV2 host for Jack";
|
||||||
homepage = http://drobilla.net/software/jalv;
|
homepage = http://drobilla.net/software/jalv;
|
||||||
|
@ -12,15 +12,9 @@ stdenv.mkDerivation rec {
|
|||||||
|
|
||||||
nativeBuildInputs = [ pkgconfig ];
|
nativeBuildInputs = [ pkgconfig ];
|
||||||
buildInputs = [ scons libsamplerate libsndfile liblo libjack2 boost ];
|
buildInputs = [ scons libsamplerate libsndfile liblo libjack2 boost ];
|
||||||
|
prefixKey = "PREFIX=";
|
||||||
NIX_CFLAGS_COMPILE = "-fpermissive";
|
NIX_CFLAGS_COMPILE = "-fpermissive";
|
||||||
|
|
||||||
buildPhase = ''
|
|
||||||
mkdir -p $out
|
|
||||||
scons PREFIX=$out
|
|
||||||
'';
|
|
||||||
|
|
||||||
installPhase = "scons install";
|
|
||||||
|
|
||||||
meta = {
|
meta = {
|
||||||
homepage = http://das.nasophon.de/klick/;
|
homepage = http://das.nasophon.de/klick/;
|
||||||
description = "Advanced command-line metronome for JACK";
|
description = "Advanced command-line metronome for JACK";
|
||||||
@ -28,4 +22,3 @@ stdenv.mkDerivation rec {
|
|||||||
platforms = stdenv.lib.platforms.linux;
|
platforms = stdenv.lib.platforms.linux;
|
||||||
};
|
};
|
||||||
}
|
}
|
||||||
|
|
||||||
|
@ -1,4 +1,4 @@
|
|||||||
{ stdenv, fetchurl, fftwSinglePrec, lv2, pkgconfig, python }:
|
{ stdenv, fetchurl, fftwSinglePrec, lv2, pkgconfig, python, wafHook }:
|
||||||
|
|
||||||
stdenv.mkDerivation rec {
|
stdenv.mkDerivation rec {
|
||||||
name = "mda-lv2-${version}";
|
name = "mda-lv2-${version}";
|
||||||
@ -9,15 +9,9 @@ stdenv.mkDerivation rec {
|
|||||||
sha256 = "0hh40c5d2m0k5gb3vw031l6lqn59dg804an3mkmhkc7qv4gc6xm4";
|
sha256 = "0hh40c5d2m0k5gb3vw031l6lqn59dg804an3mkmhkc7qv4gc6xm4";
|
||||||
};
|
};
|
||||||
|
|
||||||
nativeBuildInputs = [ pkgconfig ];
|
nativeBuildInputs = [ pkgconfig wafHook ];
|
||||||
buildInputs = [ fftwSinglePrec lv2 python ];
|
buildInputs = [ fftwSinglePrec lv2 python ];
|
||||||
|
|
||||||
configurePhase = "python waf configure --prefix=$out";
|
|
||||||
|
|
||||||
buildPhase = "python waf";
|
|
||||||
|
|
||||||
installPhase = "python waf install";
|
|
||||||
|
|
||||||
meta = with stdenv.lib; {
|
meta = with stdenv.lib; {
|
||||||
homepage = http://drobilla.net/software/mda-lv2/;
|
homepage = http://drobilla.net/software/mda-lv2/;
|
||||||
description = "An LV2 port of the MDA plugins by Paul Kellett";
|
description = "An LV2 port of the MDA plugins by Paul Kellett";
|
||||||
|
@ -32,21 +32,6 @@ stdenv.mkDerivation rec {
|
|||||||
"opus=1"
|
"opus=1"
|
||||||
];
|
];
|
||||||
|
|
||||||
buildPhase = ''
|
|
||||||
runHook preBuild
|
|
||||||
mkdir -p "$out"
|
|
||||||
scons \
|
|
||||||
-j$NIX_BUILD_CORES -l$NIX_BUILD_CORES \
|
|
||||||
$sconsFlags "prefix=$out"
|
|
||||||
runHook postBuild
|
|
||||||
'';
|
|
||||||
|
|
||||||
installPhase = ''
|
|
||||||
runHook preInstall
|
|
||||||
scons $sconsFlags "prefix=$out" install
|
|
||||||
runHook postInstall
|
|
||||||
'';
|
|
||||||
|
|
||||||
fixupPhase = ''
|
fixupPhase = ''
|
||||||
wrapProgram $out/bin/mixxx \
|
wrapProgram $out/bin/mixxx \
|
||||||
--set LOCALE_ARCHIVE ${glibcLocales}/lib/locale/locale-archive;
|
--set LOCALE_ARCHIVE ${glibcLocales}/lib/locale/locale-archive;
|
||||||
|
@ -1,5 +1,5 @@
|
|||||||
{ stdenv, fetchFromGitHub, pkgconfig, python2, cairo, libjpeg, ntk, libjack2
|
{ stdenv, fetchFromGitHub, pkgconfig, python2, cairo, libjpeg, ntk, libjack2
|
||||||
, libsndfile, ladspaH, liblrdf, liblo, libsigcxx
|
, libsndfile, ladspaH, liblrdf, liblo, libsigcxx, wafHook
|
||||||
}:
|
}:
|
||||||
|
|
||||||
stdenv.mkDerivation rec {
|
stdenv.mkDerivation rec {
|
||||||
@ -12,13 +12,10 @@ stdenv.mkDerivation rec {
|
|||||||
sha256 = "1cljkkyi9dxqpqhx8y6l2ja4zjmlya26m26kqxml8gx08vyvddhx";
|
sha256 = "1cljkkyi9dxqpqhx8y6l2ja4zjmlya26m26kqxml8gx08vyvddhx";
|
||||||
};
|
};
|
||||||
|
|
||||||
nativeBuildInputs = [ pkgconfig ];
|
nativeBuildInputs = [ pkgconfig wafHook ];
|
||||||
buildInputs = [ python2 cairo libjpeg ntk libjack2 libsndfile
|
buildInputs = [ python2 cairo libjpeg ntk libjack2 libsndfile
|
||||||
ladspaH liblrdf liblo libsigcxx
|
ladspaH liblrdf liblo libsigcxx
|
||||||
];
|
];
|
||||||
configurePhase = "python waf configure --prefix=$out";
|
|
||||||
buildPhase = "python waf build";
|
|
||||||
installPhase = "python waf install";
|
|
||||||
|
|
||||||
meta = {
|
meta = {
|
||||||
description = "Lightweight and lightning fast modular Digital Audio Workstation";
|
description = "Lightweight and lightning fast modular Digital Audio Workstation";
|
||||||
|
@ -21,14 +21,6 @@ stdenv.mkDerivation rec {
|
|||||||
sed -i "s/= check/= detail::filter_base<internal_type, checked>::check/" nova/source/dsp/filter.hpp
|
sed -i "s/= check/= detail::filter_base<internal_type, checked>::check/" nova/source/dsp/filter.hpp
|
||||||
'';
|
'';
|
||||||
|
|
||||||
buildPhase = ''
|
|
||||||
scons
|
|
||||||
'';
|
|
||||||
|
|
||||||
installPhase = ''
|
|
||||||
scons $sconsFlags "prefix=$out" install
|
|
||||||
'';
|
|
||||||
|
|
||||||
meta = with stdenv.lib; {
|
meta = with stdenv.lib; {
|
||||||
description = "LADSPA plugins based on filters of nova";
|
description = "LADSPA plugins based on filters of nova";
|
||||||
homepage = http://klingt.org/~tim/nova-filters/;
|
homepage = http://klingt.org/~tim/nova-filters/;
|
||||||
|
@ -1,5 +1,5 @@
|
|||||||
{ stdenv, alsaLib, boost, dbus-glib, fetchsvn, ganv, glibmm
|
{ stdenv, alsaLib, boost, dbus-glib, fetchsvn, ganv, glibmm
|
||||||
, gtkmm2, libjack2, pkgconfig, python2
|
, gtkmm2, libjack2, pkgconfig, python2, wafHook
|
||||||
}:
|
}:
|
||||||
|
|
||||||
stdenv.mkDerivation rec {
|
stdenv.mkDerivation rec {
|
||||||
@ -13,13 +13,9 @@ stdenv.mkDerivation rec {
|
|||||||
|
|
||||||
buildInputs = [
|
buildInputs = [
|
||||||
alsaLib boost dbus-glib ganv glibmm gtkmm2 libjack2
|
alsaLib boost dbus-glib ganv glibmm gtkmm2 libjack2
|
||||||
pkgconfig python2
|
pkgconfig python2 wafHook
|
||||||
];
|
];
|
||||||
|
|
||||||
configurePhase = "python waf configure --prefix=$out";
|
|
||||||
buildPhase = "python waf build";
|
|
||||||
installPhase = "python waf install";
|
|
||||||
|
|
||||||
meta = {
|
meta = {
|
||||||
description = "Modular patch bay for Jack and ALSA systems";
|
description = "Modular patch bay for Jack and ALSA systems";
|
||||||
homepage = http://non.tuxfamily.org;
|
homepage = http://non.tuxfamily.org;
|
||||||
|
@ -1,5 +1,5 @@
|
|||||||
{ stdenv, lib, pkgconfig, fetchFromGitHub, scons, python, glibmm, libpulseaudio, libao
|
{ stdenv, lib, pkgconfig, fetchFromGitHub, scons
|
||||||
}:
|
, python, glibmm, libpulseaudio, libao }:
|
||||||
|
|
||||||
let
|
let
|
||||||
version = "unstable-2018-02-10";
|
version = "unstable-2018-02-10";
|
||||||
@ -30,14 +30,6 @@ in stdenv.mkDerivation rec {
|
|||||||
|
|
||||||
patches = [ ./honor_nix_environment.patch ];
|
patches = [ ./honor_nix_environment.patch ];
|
||||||
|
|
||||||
buildPhase = ''
|
|
||||||
scons prefix=$out
|
|
||||||
'';
|
|
||||||
|
|
||||||
installPhase = ''
|
|
||||||
scons install
|
|
||||||
'';
|
|
||||||
|
|
||||||
meta = {
|
meta = {
|
||||||
description = "A free and open source speech synthesizer for Russian language and others";
|
description = "A free and open source speech synthesizer for Russian language and others";
|
||||||
homepage = https://github.com/Olga-Yakovleva/RHVoice/wiki;
|
homepage = https://github.com/Olga-Yakovleva/RHVoice/wiki;
|
||||||
|
@ -1,5 +1,5 @@
|
|||||||
{ stdenv, fetchFromGitHub, gdk_pixbuf, scons, pkgconfig, gtk2, glib,
|
{ stdenv, fetchFromGitHub, gdk_pixbuf, scons, pkgconfig, gtk2, glib
|
||||||
pcre, cfitsio, perl, gob2, vala, libtiff, json-glib }:
|
, pcre, cfitsio, perl, gob2, vala, libtiff, json-glib }:
|
||||||
|
|
||||||
stdenv.mkDerivation rec {
|
stdenv.mkDerivation rec {
|
||||||
name = "giv-${version}";
|
name = "giv-${version}";
|
||||||
@ -21,10 +21,6 @@ stdenv.mkDerivation rec {
|
|||||||
|
|
||||||
patches = [ ./build.patch ];
|
patches = [ ./build.patch ];
|
||||||
|
|
||||||
buildPhase = "scons";
|
|
||||||
|
|
||||||
installPhase = "scons install";
|
|
||||||
|
|
||||||
nativeBuildInputs = [ scons pkgconfig vala perl gob2 ];
|
nativeBuildInputs = [ scons pkgconfig vala perl gob2 ];
|
||||||
buildInputs = [ gdk_pixbuf gtk2 glib pcre cfitsio libtiff json-glib ];
|
buildInputs = [ gdk_pixbuf gtk2 glib pcre cfitsio libtiff json-glib ];
|
||||||
|
|
||||||
|
@ -26,10 +26,7 @@ in stdenv.mkDerivation rec {
|
|||||||
|
|
||||||
propagatedBuildInputs = [ numpy ];
|
propagatedBuildInputs = [ numpy ];
|
||||||
|
|
||||||
buildPhase = "scons prefix=$out";
|
postInstall = ''
|
||||||
|
|
||||||
installPhase = ''
|
|
||||||
scons prefix=$out install
|
|
||||||
sed -i -e 's|/usr/bin/env python2.7|${python}/bin/python|' $out/bin/mypaint
|
sed -i -e 's|/usr/bin/env python2.7|${python}/bin/python|' $out/bin/mypaint
|
||||||
'';
|
'';
|
||||||
|
|
||||||
|
@ -1,6 +1,7 @@
|
|||||||
{ stdenv, fetchzip, pythonPackages, docbook2x, libxslt, gnome-doc-utils
|
{ stdenv, fetchzip, pythonPackages, docbook2x, libxslt, gnome-doc-utils
|
||||||
, intltool, dbus-glib, gnome_python
|
, intltool, dbus-glib, gnome_python
|
||||||
, hicolor-icon-theme
|
, hicolor-icon-theme
|
||||||
|
, wafHook
|
||||||
}:
|
}:
|
||||||
|
|
||||||
# TODO: Add optional dependency 'wnck', for "workspace tracking" support. Fixes
|
# TODO: Add optional dependency 'wnck', for "workspace tracking" support. Fixes
|
||||||
@ -17,28 +18,17 @@ pythonPackages.buildPythonApplication rec {
|
|||||||
sha256 = "1a85rcg561792kdyv744cgzw7mmpmgv6d6li1sijfdpqa1ninf8g";
|
sha256 = "1a85rcg561792kdyv744cgzw7mmpmgv6d6li1sijfdpqa1ninf8g";
|
||||||
};
|
};
|
||||||
|
|
||||||
|
nativeBuildInputs = [ wafHook ];
|
||||||
buildInputs = [
|
buildInputs = [
|
||||||
docbook2x libxslt gnome-doc-utils intltool dbus-glib hicolor-icon-theme
|
docbook2x libxslt gnome-doc-utils intltool dbus-glib hicolor-icon-theme
|
||||||
];
|
];
|
||||||
|
|
||||||
propagatedBuildInputs = with pythonPackages; [ pygobject2 pygtk pyxdg gnome_python dbus-python ];
|
propagatedBuildInputs = with pythonPackages; [ pygobject2 pygtk pyxdg gnome_python dbus-python ];
|
||||||
|
|
||||||
configurePhase = ''
|
|
||||||
python waf configure --prefix="$out"
|
|
||||||
'';
|
|
||||||
|
|
||||||
buildPhase = ''
|
|
||||||
python waf build
|
|
||||||
'';
|
|
||||||
|
|
||||||
postFixup = ''
|
postFixup = ''
|
||||||
wrapPythonProgramsIn $out/lib/hamster-time-tracker "$out $pythonPath"
|
wrapPythonProgramsIn $out/lib/hamster-time-tracker "$out $pythonPath"
|
||||||
'';
|
'';
|
||||||
|
|
||||||
installPhase = ''
|
|
||||||
python waf install
|
|
||||||
'';
|
|
||||||
|
|
||||||
# error: invalid command 'test'
|
# error: invalid command 'test'
|
||||||
doCheck = false;
|
doCheck = false;
|
||||||
|
|
||||||
|
@ -8,6 +8,7 @@
|
|||||||
, keybinder3
|
, keybinder3
|
||||||
, hicolor-icon-theme
|
, hicolor-icon-theme
|
||||||
, wrapGAppsHook
|
, wrapGAppsHook
|
||||||
|
, wafHook
|
||||||
}:
|
}:
|
||||||
|
|
||||||
with python3Packages;
|
with python3Packages;
|
||||||
@ -24,37 +25,20 @@ buildPythonApplication rec {
|
|||||||
nativeBuildInputs = [
|
nativeBuildInputs = [
|
||||||
wrapGAppsHook intltool
|
wrapGAppsHook intltool
|
||||||
# For setup hook
|
# For setup hook
|
||||||
gobjectIntrospection
|
gobjectIntrospection wafHook
|
||||||
];
|
];
|
||||||
buildInputs = [ hicolor-icon-theme docutils libwnck3 keybinder3 ];
|
buildInputs = [ hicolor-icon-theme docutils libwnck3 keybinder3 ];
|
||||||
propagatedBuildInputs = [ pygobject3 gtk3 pyxdg dbus-python pycairo ];
|
propagatedBuildInputs = [ pygobject3 gtk3 pyxdg dbus-python pycairo ];
|
||||||
|
|
||||||
configurePhase = ''
|
postInstall = let
|
||||||
runHook preConfigure
|
|
||||||
python ./waf configure --prefix=$prefix
|
|
||||||
runHook postConfigure
|
|
||||||
'';
|
|
||||||
|
|
||||||
buildPhase = ''
|
|
||||||
runHook preBuild
|
|
||||||
python ./waf
|
|
||||||
runHook postBuild
|
|
||||||
'';
|
|
||||||
|
|
||||||
installPhase = let
|
|
||||||
pythonPath = (stdenv.lib.concatMapStringsSep ":"
|
pythonPath = (stdenv.lib.concatMapStringsSep ":"
|
||||||
(m: "${m}/lib/${python.libPrefix}/site-packages")
|
(m: "${m}/lib/${python.libPrefix}/site-packages")
|
||||||
propagatedBuildInputs);
|
propagatedBuildInputs);
|
||||||
in ''
|
in ''
|
||||||
runHook preInstall
|
|
||||||
python ./waf install
|
|
||||||
|
|
||||||
gappsWrapperArgs+=(
|
gappsWrapperArgs+=(
|
||||||
"--prefix" "PYTHONPATH" : "${pythonPath}"
|
"--prefix" "PYTHONPATH" : "${pythonPath}"
|
||||||
"--set" "PYTHONNOUSERSITE" "1"
|
"--set" "PYTHONNOUSERSITE" "1"
|
||||||
)
|
)
|
||||||
|
|
||||||
runHook postInstall
|
|
||||||
'';
|
'';
|
||||||
|
|
||||||
doCheck = false; # no tests
|
doCheck = false; # no tests
|
||||||
|
@ -1,4 +1,4 @@
|
|||||||
{stdenv, fetchFromGitHub, pkgconfig
|
{ stdenv, fetchFromGitHub, pkgconfig
|
||||||
, python
|
, python
|
||||||
, intltool
|
, intltool
|
||||||
, docbook2x, docbook_xml_dtd_412, libxslt
|
, docbook2x, docbook_xml_dtd_412, libxslt
|
||||||
@ -9,6 +9,7 @@
|
|||||||
, webkitgtk
|
, webkitgtk
|
||||||
, dbus-glib, enchant, isocodes, libuuid, icu
|
, dbus-glib, enchant, isocodes, libuuid, icu
|
||||||
, wrapGAppsHook
|
, wrapGAppsHook
|
||||||
|
, wafHook
|
||||||
}:
|
}:
|
||||||
|
|
||||||
stdenv.mkDerivation rec {
|
stdenv.mkDerivation rec {
|
||||||
@ -22,7 +23,7 @@ stdenv.mkDerivation rec {
|
|||||||
sha256 = "1vwf1ps6nrajxl1qbs6v1cgykmq5wn4j09j10gbcd3b2nvrprf3g";
|
sha256 = "1vwf1ps6nrajxl1qbs6v1cgykmq5wn4j09j10gbcd3b2nvrprf3g";
|
||||||
};
|
};
|
||||||
|
|
||||||
nativeBuildInputs = [ pkgconfig wrapGAppsHook ];
|
nativeBuildInputs = [ pkgconfig wrapGAppsHook wafHook ];
|
||||||
buildInputs = [ python intltool docbook2x docbook_xml_dtd_412 libxslt
|
buildInputs = [ python intltool docbook2x docbook_xml_dtd_412 libxslt
|
||||||
sword clucene_core biblesync gnome-doc-utils libgsf gconf gtkhtml
|
sword clucene_core biblesync gnome-doc-utils libgsf gconf gtkhtml
|
||||||
libglade scrollkeeper webkitgtk dbus-glib enchant isocodes libuuid icu ];
|
libglade scrollkeeper webkitgtk dbus-glib enchant isocodes libuuid icu ];
|
||||||
@ -36,17 +37,7 @@ stdenv.mkDerivation rec {
|
|||||||
export SWORD_HOME=${sword};
|
export SWORD_HOME=${sword};
|
||||||
'';
|
'';
|
||||||
|
|
||||||
configurePhase = ''
|
configureFlags= [ "--enable-webkit2" ];
|
||||||
python waf configure --prefix=$out --enable-webkit2
|
|
||||||
'';
|
|
||||||
|
|
||||||
buildPhase = ''
|
|
||||||
python waf build
|
|
||||||
'';
|
|
||||||
|
|
||||||
installPhase = ''
|
|
||||||
python waf install
|
|
||||||
'';
|
|
||||||
|
|
||||||
meta = with stdenv.lib; {
|
meta = with stdenv.lib; {
|
||||||
description = "A GTK Bible study tool";
|
description = "A GTK Bible study tool";
|
||||||
|
@ -3,9 +3,7 @@
|
|||||||
, lua, miniupnpc, openssl, qtbase, qtmultimedia, qtsvg, qtwebkit, qtx11extras, zlib
|
, lua, miniupnpc, openssl, qtbase, qtmultimedia, qtsvg, qtwebkit, qtx11extras, zlib
|
||||||
}:
|
}:
|
||||||
|
|
||||||
let
|
stdenv.mkDerivation rec {
|
||||||
_scons = "scons -j$NIX_BUILD_CORES";
|
|
||||||
in stdenv.mkDerivation rec {
|
|
||||||
name = "swift-im-${version}";
|
name = "swift-im-${version}";
|
||||||
version = "4.0.2";
|
version = "4.0.2";
|
||||||
|
|
||||||
@ -30,14 +28,12 @@ in stdenv.mkDerivation rec {
|
|||||||
"-I${miniupnpc}/include/miniupnpc"
|
"-I${miniupnpc}/include/miniupnpc"
|
||||||
"-I${qtwebkit.dev}/include/QtWebKit"
|
"-I${qtwebkit.dev}/include/QtWebKit"
|
||||||
"-I${qtwebkit.dev}/include/QtWebKitWidgets"
|
"-I${qtwebkit.dev}/include/QtWebKitWidgets"
|
||||||
|
"-fpermissive"
|
||||||
];
|
];
|
||||||
|
|
||||||
buildPhase = ''
|
preInstall = ''
|
||||||
${_scons} Swift
|
installTargets="$out"
|
||||||
'';
|
installFlags+=" SWIFT_INSTALLDIR=$out"
|
||||||
|
|
||||||
installPhase = ''
|
|
||||||
${_scons} SWIFT_INSTALLDIR=$out $out
|
|
||||||
'';
|
'';
|
||||||
|
|
||||||
meta = with stdenv.lib; {
|
meta = with stdenv.lib; {
|
||||||
|
@ -35,16 +35,10 @@ stdenv.mkDerivation rec {
|
|||||||
libxmlxx ffmpeg enca
|
libxmlxx ffmpeg enca
|
||||||
];
|
];
|
||||||
|
|
||||||
buildPhase = ''
|
prefixKey = "PREFIX=";
|
||||||
scons PREFIX=$out -j$NIX_BUILD_CORES -l$NIX_BUILD_CORES
|
|
||||||
'';
|
|
||||||
|
|
||||||
enableParallelBuilding = true;
|
enableParallelBuilding = true;
|
||||||
|
|
||||||
installPhase = ''
|
|
||||||
scons install
|
|
||||||
'';
|
|
||||||
|
|
||||||
meta = {
|
meta = {
|
||||||
description = "a DVD authoring program for personal computers";
|
description = "a DVD authoring program for personal computers";
|
||||||
homepage = "http://www.bombono.org/";
|
homepage = "http://www.bombono.org/";
|
||||||
|
@ -1,23 +0,0 @@
|
|||||||
{ stdenv, fetchFromGitHub, asciidoc, libxcb, xcbutil, xcbutilkeysyms, xcbutilwm }:
|
|
||||||
|
|
||||||
stdenv.mkDerivation rec {
|
|
||||||
name = "sxhkd-unstable-2016-08-29";
|
|
||||||
|
|
||||||
src = fetchFromGitHub {
|
|
||||||
owner = "baskerville";
|
|
||||||
repo = "sxhkd";
|
|
||||||
rev = "69b6acc7831bd333b39286c37188e5638ad0de27";
|
|
||||||
sha256 = "11i451hz0icsbxnvbq2bdl6r5kacxf6ps0yvi9ix3vkpxn4zcanh";
|
|
||||||
};
|
|
||||||
|
|
||||||
buildInputs = [ asciidoc libxcb xcbutil xcbutilkeysyms xcbutilwm ];
|
|
||||||
|
|
||||||
makeFlags = ''PREFIX=$(out)'';
|
|
||||||
|
|
||||||
meta = with stdenv.lib; {
|
|
||||||
description = "Simple X hotkey daemon (git version)";
|
|
||||||
inherit (src.meta) homepage;
|
|
||||||
license = licenses.bsd2;
|
|
||||||
platforms = platforms.linux;
|
|
||||||
};
|
|
||||||
}
|
|
@ -1,4 +1,5 @@
|
|||||||
{ stdenv, pkgconfig, fetchFromGitHub, python2, bash, vala, dockbarx, gtk2, xfce, pythonPackages }:
|
{ stdenv, pkgconfig, fetchFromGitHub, python2, bash, vala
|
||||||
|
, dockbarx, gtk2, xfce, pythonPackages, wafHook }:
|
||||||
|
|
||||||
stdenv.mkDerivation rec {
|
stdenv.mkDerivation rec {
|
||||||
ver = "0.5";
|
ver = "0.5";
|
||||||
@ -14,7 +15,7 @@ stdenv.mkDerivation rec {
|
|||||||
|
|
||||||
pythonPath = [ dockbarx ];
|
pythonPath = [ dockbarx ];
|
||||||
|
|
||||||
nativeBuildInputs = [ pkgconfig ];
|
nativeBuildInputs = [ pkgconfig wafHook ];
|
||||||
buildInputs = [ python2 vala gtk2 pythonPackages.wrapPython ]
|
buildInputs = [ python2 vala gtk2 pythonPackages.wrapPython ]
|
||||||
++ (with xfce; [ libxfce4util xfce4-panel xfconf xfce4-dev-tools ])
|
++ (with xfce; [ libxfce4util xfce4-panel xfconf xfce4-dev-tools ])
|
||||||
++ pythonPath;
|
++ pythonPath;
|
||||||
@ -25,12 +26,6 @@ stdenv.mkDerivation rec {
|
|||||||
substituteInPlace src/dockbarx.vala --replace '/usr/bin/env python2' ${bash}/bin/bash
|
substituteInPlace src/dockbarx.vala --replace '/usr/bin/env python2' ${bash}/bin/bash
|
||||||
'';
|
'';
|
||||||
|
|
||||||
configurePhase = "python waf configure --prefix=$out";
|
|
||||||
|
|
||||||
buildPhase = "python waf build";
|
|
||||||
|
|
||||||
installPhase = "python waf install";
|
|
||||||
|
|
||||||
postFixup = ''
|
postFixup = ''
|
||||||
wrapPythonProgramsIn "$out/share/xfce4/panel/plugins" "$out $pythonPath"
|
wrapPythonProgramsIn "$out/share/xfce4/panel/plugins" "$out $pythonPath"
|
||||||
'';
|
'';
|
||||||
|
@ -1,4 +1,5 @@
|
|||||||
{ stdenv, pkgconfig, fetchFromGitHub, python2, vala, gtk2, libwnck, libxfce4util, xfce4-panel }:
|
{ stdenv, pkgconfig, fetchFromGitHub, python2, vala
|
||||||
|
, gtk2, libwnck, libxfce4util, xfce4-panel, wafHook }:
|
||||||
|
|
||||||
stdenv.mkDerivation rec {
|
stdenv.mkDerivation rec {
|
||||||
ver = "0.3.1";
|
ver = "0.3.1";
|
||||||
@ -12,7 +13,7 @@ stdenv.mkDerivation rec {
|
|||||||
sha256 = "1sl4qmjywfvv53ch7hyfysjfd91zl38y7gdw2y3k69vkzd3h18ad";
|
sha256 = "1sl4qmjywfvv53ch7hyfysjfd91zl38y7gdw2y3k69vkzd3h18ad";
|
||||||
};
|
};
|
||||||
|
|
||||||
nativeBuildInputs = [ pkgconfig ];
|
nativeBuildInputs = [ pkgconfig wafHook ];
|
||||||
buildInputs = [ python2 vala gtk2 libwnck libxfce4util xfce4-panel ];
|
buildInputs = [ python2 vala gtk2 libwnck libxfce4util xfce4-panel ];
|
||||||
|
|
||||||
postPatch = ''
|
postPatch = ''
|
||||||
@ -20,12 +21,6 @@ stdenv.mkDerivation rec {
|
|||||||
substituteInPlace src/namebar.vala --replace 'Environment.get_system_data_dirs()' "{ \"$out/share\" }"
|
substituteInPlace src/namebar.vala --replace 'Environment.get_system_data_dirs()' "{ \"$out/share\" }"
|
||||||
'';
|
'';
|
||||||
|
|
||||||
configurePhase = "python waf configure --prefix=$out";
|
|
||||||
|
|
||||||
buildPhase = "python waf build";
|
|
||||||
|
|
||||||
installPhase = "python waf install";
|
|
||||||
|
|
||||||
meta = with stdenv.lib; {
|
meta = with stdenv.lib; {
|
||||||
homepage = https://github.com/TiZ-EX1/xfce4-namebar-plugin;
|
homepage = https://github.com/TiZ-EX1/xfce4-namebar-plugin;
|
||||||
description = "A plugins which integrates titlebar and window controls into the xfce4-panel";
|
description = "A plugins which integrates titlebar and window controls into the xfce4-panel";
|
||||||
|
@ -1,6 +1,7 @@
|
|||||||
{ stdenv, fetchurl, pkgconfig
|
{ stdenv, fetchurl, pkgconfig
|
||||||
, gtk
|
, gtk
|
||||||
, thunar-bare, python2, hicolor-icon-theme
|
, thunar-bare, python2, hicolor-icon-theme
|
||||||
|
, wafHook
|
||||||
}:
|
}:
|
||||||
|
|
||||||
stdenv.mkDerivation rec {
|
stdenv.mkDerivation rec {
|
||||||
@ -14,20 +15,12 @@ stdenv.mkDerivation rec {
|
|||||||
sha256 = "08vhzzzwshyz371yl7fzfylmhvchhv3s5kml3dva4v39jhvrpnkf";
|
sha256 = "08vhzzzwshyz371yl7fzfylmhvchhv3s5kml3dva4v39jhvrpnkf";
|
||||||
};
|
};
|
||||||
|
|
||||||
nativeBuildInputs = [ pkgconfig ];
|
nativeBuildInputs = [ pkgconfig wafHook ];
|
||||||
buildInputs = [
|
buildInputs = [
|
||||||
gtk
|
gtk
|
||||||
thunar-bare python2 hicolor-icon-theme
|
thunar-bare python2 hicolor-icon-theme
|
||||||
];
|
];
|
||||||
|
|
||||||
configurePhase = "python2 waf configure --prefix=$out";
|
|
||||||
|
|
||||||
buildPhase = "python2 waf";
|
|
||||||
|
|
||||||
installPhase = ''
|
|
||||||
python2 waf install
|
|
||||||
'';
|
|
||||||
|
|
||||||
enableParallelBuilding = true;
|
enableParallelBuilding = true;
|
||||||
|
|
||||||
meta = with stdenv.lib; {
|
meta = with stdenv.lib; {
|
||||||
|
@ -1,7 +1,8 @@
|
|||||||
{stdenv, fetchFromGitHub
|
{ stdenv, fetchFromGitHub
|
||||||
, llvmPackages
|
, llvmPackages
|
||||||
, cmake, boehmgc, gmp, zlib, ncurses, boost
|
, cmake, boehmgc, gmp, zlib, ncurses, boost
|
||||||
, python, git, sbcl
|
, python, git, sbcl
|
||||||
|
, wafHook
|
||||||
}:
|
}:
|
||||||
stdenv.mkDerivation rec {
|
stdenv.mkDerivation rec {
|
||||||
name = "${pname}-${version}";
|
name = "${pname}-${version}";
|
||||||
@ -16,7 +17,7 @@ stdenv.mkDerivation rec {
|
|||||||
fetchSubmodules = true;
|
fetchSubmodules = true;
|
||||||
};
|
};
|
||||||
|
|
||||||
nativeBuildInputs = [ cmake python git sbcl ];
|
nativeBuildInputs = [ cmake python git sbcl wafHook ];
|
||||||
|
|
||||||
buildInputs = with llvmPackages; (
|
buildInputs = with llvmPackages; (
|
||||||
builtins.map (x: stdenv.lib.overrideDerivation x
|
builtins.map (x: stdenv.lib.overrideDerivation x
|
||||||
@ -32,36 +33,14 @@ stdenv.mkDerivation rec {
|
|||||||
|
|
||||||
NIX_CFLAGS_COMPILE = " -frtti ";
|
NIX_CFLAGS_COMPILE = " -frtti ";
|
||||||
|
|
||||||
configurePhase = ''
|
postPatch = ''
|
||||||
runHook preConfigure
|
|
||||||
|
|
||||||
export CXX=clang++
|
|
||||||
export CC=clang
|
|
||||||
|
|
||||||
echo "
|
echo "
|
||||||
INSTALL_PATH_PREFIX = '$out'
|
INSTALL_PATH_PREFIX = '$out'
|
||||||
" | sed -e 's/^ *//' > wscript.config
|
" | sed -e 's/^ *//' > wscript.config
|
||||||
|
|
||||||
python ./waf configure update_submodules
|
|
||||||
|
|
||||||
runHook postConfigure
|
|
||||||
'';
|
'';
|
||||||
|
|
||||||
buildPhase = ''
|
buildTargets = "build_cboehm";
|
||||||
runHook preBuild
|
installTargets = "install_cboehm";
|
||||||
|
|
||||||
python ./waf build_cboehm
|
|
||||||
|
|
||||||
runHook postBuild
|
|
||||||
'';
|
|
||||||
|
|
||||||
installPhase = ''
|
|
||||||
runHook preInstall
|
|
||||||
|
|
||||||
python ./waf install_cboehm
|
|
||||||
|
|
||||||
runHook postInstall
|
|
||||||
'';
|
|
||||||
|
|
||||||
meta = {
|
meta = {
|
||||||
inherit version;
|
inherit version;
|
||||||
|
@ -1,5 +1,5 @@
|
|||||||
{ stdenv, fetchurl, alsaLib, fftw, libjack2, libsamplerate
|
{ stdenv, fetchurl, alsaLib, fftw, libjack2, libsamplerate
|
||||||
, libsndfile, pkgconfig, python
|
, libsndfile, pkgconfig, python, wafHook
|
||||||
}:
|
}:
|
||||||
|
|
||||||
stdenv.mkDerivation rec {
|
stdenv.mkDerivation rec {
|
||||||
@ -10,15 +10,9 @@ stdenv.mkDerivation rec {
|
|||||||
sha256 = "0hd0kzfmr46am00ygxar8alrldv92c5azqy701iilfmbqpz4mvfb";
|
sha256 = "0hd0kzfmr46am00ygxar8alrldv92c5azqy701iilfmbqpz4mvfb";
|
||||||
};
|
};
|
||||||
|
|
||||||
nativeBuildInputs = [ pkgconfig python ];
|
nativeBuildInputs = [ pkgconfig python wafHook ];
|
||||||
buildInputs = [ alsaLib fftw libjack2 libsamplerate libsndfile ];
|
buildInputs = [ alsaLib fftw libjack2 libsamplerate libsndfile ];
|
||||||
|
|
||||||
configurePhase = "python waf configure --prefix=$out";
|
|
||||||
|
|
||||||
buildPhase = "python waf";
|
|
||||||
|
|
||||||
installPhase = "python waf install";
|
|
||||||
|
|
||||||
meta = with stdenv.lib; {
|
meta = with stdenv.lib; {
|
||||||
description = "Library for audio labelling";
|
description = "Library for audio labelling";
|
||||||
homepage = https://aubio.org/;
|
homepage = https://aubio.org/;
|
||||||
|
@ -1,4 +1,4 @@
|
|||||||
{ stdenv, fetchurl, lv2, pkgconfig, python, serd, sord, sratom }:
|
{ stdenv, fetchurl, lv2, pkgconfig, python, serd, sord, sratom, wafHook }:
|
||||||
|
|
||||||
stdenv.mkDerivation rec {
|
stdenv.mkDerivation rec {
|
||||||
name = "lilv-${version}";
|
name = "lilv-${version}";
|
||||||
@ -9,15 +9,9 @@ stdenv.mkDerivation rec {
|
|||||||
sha256 = "0f24cd7wkk5l969857g2ydz2kjjrkvvddg1g87xzzs78lsvq8fy3";
|
sha256 = "0f24cd7wkk5l969857g2ydz2kjjrkvvddg1g87xzzs78lsvq8fy3";
|
||||||
};
|
};
|
||||||
|
|
||||||
nativeBuildInputs = [ pkgconfig ];
|
nativeBuildInputs = [ pkgconfig wafHook ];
|
||||||
buildInputs = [ lv2 python serd sord sratom ];
|
buildInputs = [ lv2 python serd sord sratom ];
|
||||||
|
|
||||||
configurePhase = "${python.interpreter} waf configure --prefix=$out";
|
|
||||||
|
|
||||||
buildPhase = "${python.interpreter} waf";
|
|
||||||
|
|
||||||
installPhase = "${python.interpreter} waf install";
|
|
||||||
|
|
||||||
meta = with stdenv.lib; {
|
meta = with stdenv.lib; {
|
||||||
homepage = http://drobilla.net/software/lilv;
|
homepage = http://drobilla.net/software/lilv;
|
||||||
description = "A C library to make the use of LV2 plugins";
|
description = "A C library to make the use of LV2 plugins";
|
||||||
|
@ -1,4 +1,4 @@
|
|||||||
{ stdenv, fetchurl, gtk2, libsndfile, pkgconfig, python }:
|
{ stdenv, fetchurl, gtk2, libsndfile, pkgconfig, python, wafHook }:
|
||||||
|
|
||||||
stdenv.mkDerivation rec {
|
stdenv.mkDerivation rec {
|
||||||
name = "lv2-${version}";
|
name = "lv2-${version}";
|
||||||
@ -9,15 +9,9 @@ stdenv.mkDerivation rec {
|
|||||||
sha256 = "0chxwys3vnn3nxc9x2vchm74s9sx0vfra6y893byy12ci61jc1dq";
|
sha256 = "0chxwys3vnn3nxc9x2vchm74s9sx0vfra6y893byy12ci61jc1dq";
|
||||||
};
|
};
|
||||||
|
|
||||||
nativeBuildInputs = [ pkgconfig ];
|
nativeBuildInputs = [ pkgconfig wafHook ];
|
||||||
buildInputs = [ gtk2 libsndfile python ];
|
buildInputs = [ gtk2 libsndfile python ];
|
||||||
|
|
||||||
configurePhase = "${python.interpreter} waf configure --prefix=$out";
|
|
||||||
|
|
||||||
buildPhase = "${python.interpreter} waf";
|
|
||||||
|
|
||||||
installPhase = "${python.interpreter} waf install";
|
|
||||||
|
|
||||||
meta = with stdenv.lib; {
|
meta = with stdenv.lib; {
|
||||||
homepage = http://lv2plug.in;
|
homepage = http://lv2plug.in;
|
||||||
description = "A plugin standard for audio systems";
|
description = "A plugin standard for audio systems";
|
||||||
|
@ -1,4 +1,4 @@
|
|||||||
{ stdenv, fetchgit, gtk2, libsndfile, pkgconfig, python }:
|
{ stdenv, fetchgit, gtk2, libsndfile, pkgconfig, python, wafHook }:
|
||||||
|
|
||||||
stdenv.mkDerivation rec {
|
stdenv.mkDerivation rec {
|
||||||
name = "lv2-unstable-${version}";
|
name = "lv2-unstable-${version}";
|
||||||
@ -10,15 +10,9 @@ stdenv.mkDerivation rec {
|
|||||||
sha256 = "1gp2rd99dfmpibvpixrqn115mrhybzf3if3h8bssf6siyi13f29r";
|
sha256 = "1gp2rd99dfmpibvpixrqn115mrhybzf3if3h8bssf6siyi13f29r";
|
||||||
};
|
};
|
||||||
|
|
||||||
nativeBuildInputs = [ pkgconfig ];
|
nativeBuildInputs = [ pkgconfig wafHook ];
|
||||||
buildInputs = [ gtk2 libsndfile python ];
|
buildInputs = [ gtk2 libsndfile python ];
|
||||||
|
|
||||||
configurePhase = "${python.interpreter} waf configure --prefix=$out";
|
|
||||||
|
|
||||||
buildPhase = "${python.interpreter} waf";
|
|
||||||
|
|
||||||
installPhase = "${python.interpreter} waf install";
|
|
||||||
|
|
||||||
meta = with stdenv.lib; {
|
meta = with stdenv.lib; {
|
||||||
homepage = http://lv2plug.in;
|
homepage = http://lv2plug.in;
|
||||||
description = "A plugin standard for audio systems";
|
description = "A plugin standard for audio systems";
|
||||||
|
@ -1,4 +1,4 @@
|
|||||||
{ stdenv, fetchurl, boost, gtkmm2, lv2, pkgconfig, python }:
|
{ stdenv, fetchurl, boost, gtkmm2, lv2, pkgconfig, python, wafHook }:
|
||||||
|
|
||||||
stdenv.mkDerivation rec {
|
stdenv.mkDerivation rec {
|
||||||
name = "lvtk-${version}";
|
name = "lvtk-${version}";
|
||||||
@ -9,7 +9,7 @@ stdenv.mkDerivation rec {
|
|||||||
sha256 = "03nbj2cqcklqwh50zj2gwm07crh5iwqbpxbpzwbg5hvgl4k4rnjd";
|
sha256 = "03nbj2cqcklqwh50zj2gwm07crh5iwqbpxbpzwbg5hvgl4k4rnjd";
|
||||||
};
|
};
|
||||||
|
|
||||||
nativeBuildInputs = [ pkgconfig python ];
|
nativeBuildInputs = [ pkgconfig python wafHook ];
|
||||||
buildInputs = [ boost gtkmm2 lv2 ];
|
buildInputs = [ boost gtkmm2 lv2 ];
|
||||||
|
|
||||||
enableParallelBuilding = true;
|
enableParallelBuilding = true;
|
||||||
@ -19,15 +19,10 @@ stdenv.mkDerivation rec {
|
|||||||
sed -i '/target[ ]*= "ttl2c"/ ilib=["boost_system"],' tools/wscript_build
|
sed -i '/target[ ]*= "ttl2c"/ ilib=["boost_system"],' tools/wscript_build
|
||||||
'';
|
'';
|
||||||
|
|
||||||
configurePhase = ''
|
configureFlags = [
|
||||||
python waf configure --prefix=$out \
|
"--boost-includes=${boost.dev}/include"
|
||||||
--boost-includes="${boost.dev}/include" \
|
"--boost-libs=${boost.out}/lib"
|
||||||
--boost-libs="${boost.out}/lib"
|
];
|
||||||
'';
|
|
||||||
|
|
||||||
buildPhase = "python waf";
|
|
||||||
|
|
||||||
installPhase = "python waf install";
|
|
||||||
|
|
||||||
meta = with stdenv.lib; {
|
meta = with stdenv.lib; {
|
||||||
description = "A set C++ wrappers around the LV2 C API";
|
description = "A set C++ wrappers around the LV2 C API";
|
||||||
|
@ -1,4 +1,4 @@
|
|||||||
{ stdenv, fetchFromGitHub, cairo, libjpeg, libXft, pkgconfig, python2 }:
|
{ stdenv, fetchFromGitHub, cairo, libjpeg, libXft, pkgconfig, python2, wafHook }:
|
||||||
|
|
||||||
stdenv.mkDerivation rec {
|
stdenv.mkDerivation rec {
|
||||||
name = "ntk-${version}";
|
name = "ntk-${version}";
|
||||||
@ -10,20 +10,11 @@ stdenv.mkDerivation rec {
|
|||||||
sha256 = "0j38mhnfqy6swcrnc5zxcwlqi8b1pgklyghxk6qs1lf4japv2zc0";
|
sha256 = "0j38mhnfqy6swcrnc5zxcwlqi8b1pgklyghxk6qs1lf4japv2zc0";
|
||||||
};
|
};
|
||||||
|
|
||||||
nativeBuildInputs = [ pkgconfig ];
|
nativeBuildInputs = [ pkgconfig wafHook ];
|
||||||
buildInputs = [
|
buildInputs = [
|
||||||
cairo libjpeg libXft python2
|
cairo libjpeg libXft python2
|
||||||
];
|
];
|
||||||
|
|
||||||
buildPhase = ''
|
|
||||||
python waf configure --prefix=$out
|
|
||||||
python waf
|
|
||||||
'';
|
|
||||||
|
|
||||||
installPhase = ''
|
|
||||||
python waf install
|
|
||||||
'';
|
|
||||||
|
|
||||||
meta = {
|
meta = {
|
||||||
description = "Fork of FLTK 1.3.0 with additional functionality";
|
description = "Fork of FLTK 1.3.0 with additional functionality";
|
||||||
version = "${version}";
|
version = "${version}";
|
||||||
|
@ -1,4 +1,4 @@
|
|||||||
{ stdenv, fetchgit, boost, gtk2, pkgconfig, python }:
|
{ stdenv, fetchgit, boost, gtk2, pkgconfig, python, wafHook }:
|
||||||
|
|
||||||
stdenv.mkDerivation rec {
|
stdenv.mkDerivation rec {
|
||||||
name = "raul-unstable-${rev}";
|
name = "raul-unstable-${rev}";
|
||||||
@ -10,15 +10,9 @@ stdenv.mkDerivation rec {
|
|||||||
sha256 = "04fajrass3ymr72flx5js5vxc601ccrmx8ny8scp0rw7j0igyjdr";
|
sha256 = "04fajrass3ymr72flx5js5vxc601ccrmx8ny8scp0rw7j0igyjdr";
|
||||||
};
|
};
|
||||||
|
|
||||||
nativeBuildInputs = [ pkgconfig ];
|
nativeBuildInputs = [ pkgconfig wafHook ];
|
||||||
buildInputs = [ boost gtk2 python ];
|
buildInputs = [ boost gtk2 python ];
|
||||||
|
|
||||||
configurePhase = "${python.interpreter} waf configure --prefix=$out";
|
|
||||||
|
|
||||||
buildPhase = "${python.interpreter} waf";
|
|
||||||
|
|
||||||
installPhase = "${python.interpreter} waf install";
|
|
||||||
|
|
||||||
meta = with stdenv.lib; {
|
meta = with stdenv.lib; {
|
||||||
description = "A C++ utility library primarily aimed at audio/musical applications";
|
description = "A C++ utility library primarily aimed at audio/musical applications";
|
||||||
homepage = http://drobilla.net/software/raul;
|
homepage = http://drobilla.net/software/raul;
|
||||||
|
@ -1,4 +1,4 @@
|
|||||||
{ stdenv, fetchurl, lv2, pkgconfig, python, serd, sord }:
|
{ stdenv, fetchurl, lv2, pkgconfig, python, serd, sord, wafHook }:
|
||||||
|
|
||||||
stdenv.mkDerivation rec {
|
stdenv.mkDerivation rec {
|
||||||
name = "sratom-${version}";
|
name = "sratom-${version}";
|
||||||
@ -9,15 +9,9 @@ stdenv.mkDerivation rec {
|
|||||||
sha256 = "0lz883ravxjf7r9wwbx2gx9m8vhyiavxrl9jdxfppjxnsralll8a";
|
sha256 = "0lz883ravxjf7r9wwbx2gx9m8vhyiavxrl9jdxfppjxnsralll8a";
|
||||||
};
|
};
|
||||||
|
|
||||||
nativeBuildInputs = [ pkgconfig ];
|
nativeBuildInputs = [ pkgconfig wafHook ];
|
||||||
buildInputs = [ lv2 python serd sord ];
|
buildInputs = [ lv2 python serd sord ];
|
||||||
|
|
||||||
configurePhase = "${python.interpreter} waf configure --prefix=$out";
|
|
||||||
|
|
||||||
buildPhase = "${python.interpreter} waf";
|
|
||||||
|
|
||||||
installPhase = "${python.interpreter} waf install";
|
|
||||||
|
|
||||||
meta = with stdenv.lib; {
|
meta = with stdenv.lib; {
|
||||||
homepage = http://drobilla.net/software/sratom;
|
homepage = http://drobilla.net/software/sratom;
|
||||||
description = "A library for serialising LV2 atoms to/from RDF";
|
description = "A library for serialising LV2 atoms to/from RDF";
|
||||||
|
@ -1,4 +1,5 @@
|
|||||||
{ stdenv, lib, fetchurl, gtk2, lv2, pkgconfig, python, serd, sord, sratom
|
{ stdenv, lib, fetchurl, gtk2, lv2, pkgconfig, python, serd, sord, sratom
|
||||||
|
, wafHook
|
||||||
, withQt4 ? true, qt4 ? null
|
, withQt4 ? true, qt4 ? null
|
||||||
, withQt5 ? false, qt5 ? null }:
|
, withQt5 ? false, qt5 ? null }:
|
||||||
|
|
||||||
@ -16,17 +17,11 @@ stdenv.mkDerivation rec {
|
|||||||
sha256 = "0j489gm3fhnmwmbgw30bvd4byw1vsy4yazdlnji8jzhcz0qwb5cq";
|
sha256 = "0j489gm3fhnmwmbgw30bvd4byw1vsy4yazdlnji8jzhcz0qwb5cq";
|
||||||
};
|
};
|
||||||
|
|
||||||
nativeBuildInputs = [ pkgconfig ];
|
nativeBuildInputs = [ pkgconfig wafHook ];
|
||||||
buildInputs = [ gtk2 lv2 python serd sord sratom ]
|
buildInputs = [ gtk2 lv2 python serd sord sratom ]
|
||||||
++ (lib.optionals withQt4 [ qt4 ])
|
++ (lib.optionals withQt4 [ qt4 ])
|
||||||
++ (lib.optionals withQt5 (with qt5; [ qtbase qttools ]));
|
++ (lib.optionals withQt5 (with qt5; [ qtbase qttools ]));
|
||||||
|
|
||||||
configurePhase = "python waf configure --prefix=$out";
|
|
||||||
|
|
||||||
buildPhase = "python waf";
|
|
||||||
|
|
||||||
installPhase = "python waf install";
|
|
||||||
|
|
||||||
meta = with stdenv.lib; {
|
meta = with stdenv.lib; {
|
||||||
homepage = http://drobilla.net/software/suil;
|
homepage = http://drobilla.net/software/suil;
|
||||||
description = "A lightweight C library for loading and wrapping LV2 plugin UIs";
|
description = "A lightweight C library for loading and wrapping LV2 plugin UIs";
|
||||||
|
@ -1,4 +1,4 @@
|
|||||||
{ stdenv, fetchgit, graphviz, gtk2, gtkmm2, pkgconfig, python }:
|
{ stdenv, fetchgit, graphviz, gtk2, gtkmm2, pkgconfig, python, wafHook }:
|
||||||
|
|
||||||
stdenv.mkDerivation rec {
|
stdenv.mkDerivation rec {
|
||||||
name = "ganv-unstable-${rev}";
|
name = "ganv-unstable-${rev}";
|
||||||
@ -10,15 +10,9 @@ stdenv.mkDerivation rec {
|
|||||||
sha256 = "0xmbykdl42jn9cgzrqrys5lng67d26nk5xq10wkkvjqldiwdck56";
|
sha256 = "0xmbykdl42jn9cgzrqrys5lng67d26nk5xq10wkkvjqldiwdck56";
|
||||||
};
|
};
|
||||||
|
|
||||||
nativeBuildInputs = [ pkgconfig ];
|
nativeBuildInputs = [ pkgconfig wafHook ];
|
||||||
buildInputs = [ graphviz gtk2 gtkmm2 python ];
|
buildInputs = [ graphviz gtk2 gtkmm2 python ];
|
||||||
|
|
||||||
configurePhase = "${python.interpreter} waf configure --prefix=$out";
|
|
||||||
|
|
||||||
buildPhase = "${python.interpreter} waf";
|
|
||||||
|
|
||||||
installPhase = "${python.interpreter} waf install";
|
|
||||||
|
|
||||||
meta = with stdenv.lib; {
|
meta = with stdenv.lib; {
|
||||||
description = "An interactive Gtk canvas widget for graph-based interfaces";
|
description = "An interactive Gtk canvas widget for graph-based interfaces";
|
||||||
homepage = http://drobilla.net;
|
homepage = http://drobilla.net;
|
||||||
|
@ -29,40 +29,35 @@ stdenv.mkDerivation rec {
|
|||||||
postgresql
|
postgresql
|
||||||
];
|
];
|
||||||
|
|
||||||
configurePhase = ''
|
prefixKey = "PREFIX=";
|
||||||
scons configure PREFIX="$out" BOOST_INCLUDES="${boost.dev}/include" \
|
|
||||||
BOOST_LIBS="${boost.out}/lib" \
|
|
||||||
CAIRO_INCLUDES="${cairo.dev}/include" \
|
|
||||||
CAIRO_LIBS="${cairo.out}/lib" \
|
|
||||||
FREETYPE_INCLUDES="${freetype.dev}/include" \
|
|
||||||
FREETYPE_LIBS="${freetype.out}/lib" \
|
|
||||||
GDAL_CONFIG="${gdal}/bin/gdal-config" \
|
|
||||||
HB_INCLUDES="${harfbuzz.dev}/include" \
|
|
||||||
HB_LIBS="${harfbuzz.out}/lib" \
|
|
||||||
ICU_INCLUDES="${icu.dev}/include" \
|
|
||||||
ICU_LIBS="${icu.out}/lib" \
|
|
||||||
JPEG_INCLUDES="${libjpeg.dev}/include" \
|
|
||||||
JPEG_LIBS="${libjpeg.out}/lib" \
|
|
||||||
PNG_INCLUDES="${libpng.dev}/include" \
|
|
||||||
PNG_LIBS="${libpng.out}/lib" \
|
|
||||||
PROJ_INCLUDES="${proj}/include" \
|
|
||||||
PROJ_LIBS="${proj}/lib" \
|
|
||||||
SQLITE_INCLUDES="${sqlite.dev}/include" \
|
|
||||||
SQLITE_LIBS="${sqlite.out}/lib" \
|
|
||||||
TIFF_INCLUDES="${libtiff.dev}/include" \
|
|
||||||
TIFF_LIBS="${libtiff.out}/lib" \
|
|
||||||
WEBP_INCLUDES="${libwebp}/include" \
|
|
||||||
WEBP_LIBS="${libwebp}/lib" \
|
|
||||||
XML2_INCLUDES="${libxml2.dev}/include" \
|
|
||||||
XML2_LIBS="${libxml2.out}/lib"
|
|
||||||
'';
|
|
||||||
|
|
||||||
buildPhase = false;
|
sconsFlags = [
|
||||||
|
"BOOST_INCLUDES=${boost.dev}/include"
|
||||||
installPhase = ''
|
"BOOST_LIBS=${boost.out}/lib"
|
||||||
mkdir -p "$out"
|
"CAIRO_INCLUDES=${cairo.dev}/include"
|
||||||
scons install
|
"CAIRO_LIBS=${cairo.out}/lib"
|
||||||
'';
|
"FREETYPE_INCLUDES=${freetype.dev}/include"
|
||||||
|
"FREETYPE_LIBS=${freetype.out}/lib"
|
||||||
|
"GDAL_CONFIG=${gdal}/bin/gdal-config"
|
||||||
|
"HB_INCLUDES=${harfbuzz.dev}/include"
|
||||||
|
"HB_LIBS=${harfbuzz.out}/lib"
|
||||||
|
"ICU_INCLUDES=${icu.dev}/include"
|
||||||
|
"ICU_LIBS=${icu.out}/lib"
|
||||||
|
"JPEG_INCLUDES=${libjpeg.dev}/include"
|
||||||
|
"JPEG_LIBS=${libjpeg.out}/lib"
|
||||||
|
"PNG_INCLUDES=${libpng.dev}/include"
|
||||||
|
"PNG_LIBS=${libpng.out}/lib"
|
||||||
|
"PROJ_INCLUDES=${proj}/include"
|
||||||
|
"PROJ_LIBS=${proj}/lib"
|
||||||
|
"SQLITE_INCLUDES=${sqlite.dev}/include"
|
||||||
|
"SQLITE_LIBS=${sqlite.out}/lib"
|
||||||
|
"TIFF_INCLUDES=${libtiff.dev}/include"
|
||||||
|
"TIFF_LIBS=${libtiff.out}/lib"
|
||||||
|
"WEBP_INCLUDES=${libwebp}/include"
|
||||||
|
"WEBP_LIBS=${libwebp}/lib"
|
||||||
|
"XML2_INCLUDES=${libxml2.dev}/include"
|
||||||
|
"XML2_LIBS=${libxml2.out}/lib"
|
||||||
|
];
|
||||||
|
|
||||||
meta = with stdenv.lib; {
|
meta = with stdenv.lib; {
|
||||||
description = "An open source toolkit for developing mapping applications";
|
description = "An open source toolkit for developing mapping applications";
|
||||||
|
@ -1,4 +1,5 @@
|
|||||||
{ stdenv, fetchFromGitHub, openssl, doxygen, boost, sqlite, pkgconfig, python, pythonPackages }:
|
{ stdenv, fetchFromGitHub, openssl, doxygen
|
||||||
|
, boost, sqlite, pkgconfig, python, pythonPackages, wafHook }:
|
||||||
let
|
let
|
||||||
version = "0.6.3";
|
version = "0.6.3";
|
||||||
in
|
in
|
||||||
@ -10,22 +11,13 @@ stdenv.mkDerivation {
|
|||||||
rev = "a3bf4319ed483a4a6fe2c96b79ec4491d7217f00";
|
rev = "a3bf4319ed483a4a6fe2c96b79ec4491d7217f00";
|
||||||
sha256 = "076jhrjigisqz5n8dgxwd5fhimg69zhm834m7w9yvf9afgzrr50h";
|
sha256 = "076jhrjigisqz5n8dgxwd5fhimg69zhm834m7w9yvf9afgzrr50h";
|
||||||
};
|
};
|
||||||
nativeBuildInputs = [ pkgconfig ];
|
nativeBuildInputs = [ pkgconfig wafHook ];
|
||||||
buildInputs = [ openssl doxygen boost sqlite python pythonPackages.sphinx];
|
buildInputs = [ openssl doxygen boost sqlite python pythonPackages.sphinx];
|
||||||
preConfigure = ''
|
configureFlags = [
|
||||||
patchShebangs waf
|
"--with-openssl=${openssl.dev}"
|
||||||
./waf configure \
|
"--boost-includes=${boost.dev}/include"
|
||||||
--prefix=$out \
|
"--boost-libs=${boost.out}/lib"
|
||||||
--with-openssl=${openssl.dev} \
|
];
|
||||||
--boost-includes=${boost.dev}/include \
|
|
||||||
--boost-libs=${boost.out}/lib
|
|
||||||
'';
|
|
||||||
buildPhase = ''
|
|
||||||
./waf
|
|
||||||
'';
|
|
||||||
installPhase = ''
|
|
||||||
./waf install
|
|
||||||
'';
|
|
||||||
meta = with stdenv.lib; {
|
meta = with stdenv.lib; {
|
||||||
homepage = http://named-data.net/;
|
homepage = http://named-data.net/;
|
||||||
description = "A Named Data Neworking (NDN) or Content Centric Networking (CCN) abstraction";
|
description = "A Named Data Neworking (NDN) or Content Centric Networking (CCN) abstraction";
|
||||||
|
@ -1,6 +1,7 @@
|
|||||||
{ stdenv
|
{ stdenv
|
||||||
, fetchFromGitHub
|
, fetchFromGitHub
|
||||||
, python
|
, python
|
||||||
|
, wafHook
|
||||||
|
|
||||||
# for binding generation
|
# for binding generation
|
||||||
, castxml ? null
|
, castxml ? null
|
||||||
@ -50,6 +51,7 @@ stdenv.mkDerivation rec {
|
|||||||
sha256 = "17kzfjpgw2mvyx1c9bxccnvw67jpk09fxmcnlkqx9xisk10qnhng";
|
sha256 = "17kzfjpgw2mvyx1c9bxccnvw67jpk09fxmcnlkqx9xisk10qnhng";
|
||||||
};
|
};
|
||||||
|
|
||||||
|
nativeBuildInputs = [ wafHook ];
|
||||||
# ncurses is a hidden dependency of waf when checking python
|
# ncurses is a hidden dependency of waf when checking python
|
||||||
buildInputs = lib.optionals generateBindings [ castxml ncurses ]
|
buildInputs = lib.optionals generateBindings [ castxml ncurses ]
|
||||||
++ stdenv.lib.optional enableDoxygen [ doxygen graphviz imagemagick ]
|
++ stdenv.lib.optional enableDoxygen [ doxygen graphviz imagemagick ]
|
||||||
@ -58,12 +60,9 @@ stdenv.mkDerivation rec {
|
|||||||
propagatedBuildInputs = [ gcc6 pythonEnv ];
|
propagatedBuildInputs = [ gcc6 pythonEnv ];
|
||||||
|
|
||||||
postPatch = ''
|
postPatch = ''
|
||||||
patchShebangs ./waf
|
|
||||||
patchShebangs doc/ns3_html_theme/get_version.sh
|
patchShebangs doc/ns3_html_theme/get_version.sh
|
||||||
'';
|
'';
|
||||||
|
|
||||||
configureScript = "${python.interpreter} ./waf configure";
|
|
||||||
|
|
||||||
configureFlags = with stdenv.lib; [
|
configureFlags = with stdenv.lib; [
|
||||||
"--enable-modules=${stdenv.lib.concatStringsSep "," modules}"
|
"--enable-modules=${stdenv.lib.concatStringsSep "," modules}"
|
||||||
"--with-python=${pythonEnv.interpreter}"
|
"--with-python=${pythonEnv.interpreter}"
|
||||||
@ -74,12 +73,9 @@ stdenv.mkDerivation rec {
|
|||||||
++ optional doCheck " --enable-tests "
|
++ optional doCheck " --enable-tests "
|
||||||
;
|
;
|
||||||
|
|
||||||
postBuild = with stdenv.lib; let flags = concatStringsSep ";" (
|
buildTargets = "build"
|
||||||
optional enableDoxygen "./waf doxygen"
|
+ lib.optionalString enableDoxygen " doxygen"
|
||||||
++ optional withManual "./waf sphinx"
|
+ lib.optionalString withManual "sphinx";
|
||||||
);
|
|
||||||
in "${flags}"
|
|
||||||
;
|
|
||||||
|
|
||||||
doCheck = true;
|
doCheck = true;
|
||||||
|
|
||||||
|
@ -1,4 +1,4 @@
|
|||||||
{ stdenv, fetchurl, pkgconfig, python }:
|
{ stdenv, fetchurl, pkgconfig, python, wafHook }:
|
||||||
|
|
||||||
stdenv.mkDerivation rec {
|
stdenv.mkDerivation rec {
|
||||||
name = "serd-${version}";
|
name = "serd-${version}";
|
||||||
@ -9,13 +9,7 @@ stdenv.mkDerivation rec {
|
|||||||
sha256 = "1yyfyvc6kwagi5w43ljp1bbjdvdpmgpds74lmjxycm91bkx0xyvf";
|
sha256 = "1yyfyvc6kwagi5w43ljp1bbjdvdpmgpds74lmjxycm91bkx0xyvf";
|
||||||
};
|
};
|
||||||
|
|
||||||
nativeBuildInputs = [ pkgconfig python ];
|
nativeBuildInputs = [ pkgconfig python wafHook ];
|
||||||
|
|
||||||
configurePhase = "python waf configure --prefix=$out";
|
|
||||||
|
|
||||||
buildPhase = "python waf";
|
|
||||||
|
|
||||||
installPhase = "python waf install";
|
|
||||||
|
|
||||||
meta = with stdenv.lib; {
|
meta = with stdenv.lib; {
|
||||||
homepage = http://drobilla.net/software/serd;
|
homepage = http://drobilla.net/software/serd;
|
||||||
|
@ -9,28 +9,22 @@ stdenv.mkDerivation rec {
|
|||||||
sha256 = "1k47gbgpp52049andr28y28nbwh9m36bbb0g8p0aka3pqlhjv72l";
|
sha256 = "1k47gbgpp52049andr28y28nbwh9m36bbb0g8p0aka3pqlhjv72l";
|
||||||
};
|
};
|
||||||
|
|
||||||
nativeBuildInputs = [ pkgconfig ];
|
nativeBuildInputs = [ pkgconfig scons ];
|
||||||
buildInputs = [ apr scons openssl aprutil zlib libiconv ]
|
buildInputs = [ apr openssl aprutil zlib libiconv ]
|
||||||
++ stdenv.lib.optional (!stdenv.isCygwin) kerberos;
|
++ stdenv.lib.optional (!stdenv.isCygwin) kerberos;
|
||||||
|
|
||||||
patches = [ ./scons.patch ];
|
patches = [ ./scons.patch ];
|
||||||
|
|
||||||
buildPhase = ''
|
prefixKey = "PREFIX=";
|
||||||
scons \
|
|
||||||
-j $NIX_BUILD_CORES \
|
|
||||||
APR="$(echo ${apr.dev}/bin/*-config)" \
|
|
||||||
APU="$(echo ${aprutil.dev}/bin/*-config)" \
|
|
||||||
CC=$CC \
|
|
||||||
OPENSSL=${openssl} \
|
|
||||||
PREFIX="$out" \
|
|
||||||
ZLIB=${zlib} \
|
|
||||||
${
|
|
||||||
if stdenv.isCygwin then "" else "GSSAPI=${kerberos.dev}"
|
|
||||||
}
|
|
||||||
'';
|
|
||||||
|
|
||||||
installPhase = ''
|
preConfigure = ''
|
||||||
scons install
|
sconsFlags+=" APR=$(echo ${apr.dev}/bin/*-config)"
|
||||||
|
sconsFlags+=" APU=$(echo ${aprutil.dev}/bin/*-config)"
|
||||||
|
sconsFlags+=" CC=$CC"
|
||||||
|
sconsFlags+=" OPENSSL=${openssl}"
|
||||||
|
sconsFlags+=" ZLIB=${zlib}"
|
||||||
|
'' + stdenv.lib.optionalString (!stdenv.isCygwin) ''
|
||||||
|
sconsFlags+=" GSSAPI=${kerberos.dev}"
|
||||||
'';
|
'';
|
||||||
|
|
||||||
enableParallelBuilding = true;
|
enableParallelBuilding = true;
|
||||||
|
@ -1,4 +1,4 @@
|
|||||||
{ stdenv, fetchurl, pkgconfig, python, serd, pcre }:
|
{ stdenv, fetchurl, pkgconfig, python, serd, pcre, wafHook }:
|
||||||
|
|
||||||
stdenv.mkDerivation rec {
|
stdenv.mkDerivation rec {
|
||||||
name = "sord-${version}";
|
name = "sord-${version}";
|
||||||
@ -9,15 +9,9 @@ stdenv.mkDerivation rec {
|
|||||||
sha256 = "13fshxwpipjrvsah1m2jw1kf022z2q5vpw24bzcznglgvms13x89";
|
sha256 = "13fshxwpipjrvsah1m2jw1kf022z2q5vpw24bzcznglgvms13x89";
|
||||||
};
|
};
|
||||||
|
|
||||||
nativeBuildInputs = [ pkgconfig ];
|
nativeBuildInputs = [ pkgconfig wafHook ];
|
||||||
buildInputs = [ python serd pcre ];
|
buildInputs = [ python serd pcre ];
|
||||||
|
|
||||||
configurePhase = "${python.interpreter} waf configure --prefix=$out";
|
|
||||||
|
|
||||||
buildPhase = "${python.interpreter} waf";
|
|
||||||
|
|
||||||
installPhase = "${python.interpreter} waf install";
|
|
||||||
|
|
||||||
meta = with stdenv.lib; {
|
meta = with stdenv.lib; {
|
||||||
homepage = http://drobilla.net/software/sord;
|
homepage = http://drobilla.net/software/sord;
|
||||||
description = "A lightweight C library for storing RDF data in memory";
|
description = "A lightweight C library for storing RDF data in memory";
|
||||||
|
@ -1,8 +1,9 @@
|
|||||||
{ stdenv, python, fetchurl, openssl, boost }:
|
{ stdenv, python, fetchurl, openssl, boost, scons }:
|
||||||
stdenv.mkDerivation rec {
|
stdenv.mkDerivation rec {
|
||||||
name = "swiften-${version}";
|
name = "swiften-${version}";
|
||||||
version = "4.0.2";
|
version = "4.0.2";
|
||||||
|
|
||||||
|
nativeBuildInputs = [ scons];
|
||||||
buildInputs = [ python ];
|
buildInputs = [ python ];
|
||||||
propagatedBuildInputs = [ openssl boost ];
|
propagatedBuildInputs = [ openssl boost ];
|
||||||
|
|
||||||
@ -11,15 +12,16 @@ stdenv.mkDerivation rec {
|
|||||||
sha256 = "0w0aiszjd58ynxpacwcgf052zpmbpcym4dhci64vbfgch6wryz0w";
|
sha256 = "0w0aiszjd58ynxpacwcgf052zpmbpcym4dhci64vbfgch6wryz0w";
|
||||||
};
|
};
|
||||||
|
|
||||||
buildPhase = ''
|
sconsFlags = [
|
||||||
patchShebangs ./scons
|
"openssl=${openssl.dev}"
|
||||||
./scons openssl=${openssl.dev} \
|
"boost_includedir=${boost.dev}/include"
|
||||||
boost_includedir=${boost.dev}/include \
|
"boost_libdir=${boost.out}/lib"
|
||||||
boost_libdir=${boost.out}/lib \
|
"boost_bundled_enable=false"
|
||||||
boost_bundled_enable=false \
|
];
|
||||||
SWIFTEN_INSTALLDIR=$out $out
|
preInstall = ''
|
||||||
|
installTargets="$out"
|
||||||
|
installFlags+=" SWIFT_INSTALLDIR=$out"
|
||||||
'';
|
'';
|
||||||
installPhase = "true";
|
|
||||||
|
|
||||||
meta = with stdenv.lib; {
|
meta = with stdenv.lib; {
|
||||||
description = "An XMPP library for C++, used by the Swift client";
|
description = "An XMPP library for C++, used by the Swift client";
|
||||||
|
@ -1,4 +1,4 @@
|
|||||||
{ stdenv, fetchFromGitHub, python3 }:
|
{ stdenv, fetchFromGitHub, python3, wafHook }:
|
||||||
|
|
||||||
stdenv.mkDerivation rec {
|
stdenv.mkDerivation rec {
|
||||||
name = "termbox-${version}";
|
name = "termbox-${version}";
|
||||||
@ -9,10 +9,7 @@ stdenv.mkDerivation rec {
|
|||||||
rev = "v${version}";
|
rev = "v${version}";
|
||||||
sha256 = "08yqxzb8fny8806p7x8a6f3phhlbfqdd7dhkv25calswj7w1ssvs";
|
sha256 = "08yqxzb8fny8806p7x8a6f3phhlbfqdd7dhkv25calswj7w1ssvs";
|
||||||
};
|
};
|
||||||
nativeBuildInputs = [ python3 ];
|
nativeBuildInputs = [ python3 wafHook ];
|
||||||
configurePhase = "python3 ./waf configure --prefix=$out";
|
|
||||||
buildPhase = "python3 ./waf build";
|
|
||||||
installPhase = "python3 ./waf install --destdir=$out";
|
|
||||||
meta = with stdenv.lib; {
|
meta = with stdenv.lib; {
|
||||||
description = "Library for writing text-based user interfaces";
|
description = "Library for writing text-based user interfaces";
|
||||||
license = licenses.mit;
|
license = licenses.mit;
|
||||||
@ -21,4 +18,3 @@ stdenv.mkDerivation rec {
|
|||||||
maintainers = with maintainers; [ fgaz ];
|
maintainers = with maintainers; [ fgaz ];
|
||||||
};
|
};
|
||||||
}
|
}
|
||||||
|
|
||||||
|
@ -22,9 +22,8 @@ in buildPythonPackage rec {
|
|||||||
sha256 = "01vm8mqhpdrwlxw6rxbg3wz51njq69yn862141mja00mllg3j7pg";
|
sha256 = "01vm8mqhpdrwlxw6rxbg3wz51njq69yn862141mja00mllg3j7pg";
|
||||||
};
|
};
|
||||||
|
|
||||||
buildInputs = stdenv.lib.optionals doCheck [ vmprof pyqt4 ];
|
checkInputs = [ vmprof pyqt4 ];
|
||||||
|
nativeBuildInputs = [ scons ];
|
||||||
propagatedBuildInputs = [ scons ];
|
|
||||||
|
|
||||||
postPatch = ''
|
postPatch = ''
|
||||||
patchShebangs tests/run-tests
|
patchShebangs tests/run-tests
|
||||||
|
@ -10,13 +10,12 @@ buildPythonPackage rec {
|
|||||||
sha256 = "09r1ga6kj5cnmrldpkqzvdhh7xi7aad9g4fbcr1gawgsd9y13g0a";
|
sha256 = "09r1ga6kj5cnmrldpkqzvdhh7xi7aad9g4fbcr1gawgsd9y13g0a";
|
||||||
};
|
};
|
||||||
|
|
||||||
buildPhase = ''
|
preBuild = ''
|
||||||
sed -i -e "s@env = Environment()@env = Environment( ENV = os.environ )@" src/SConscript
|
sed -i -e "s@env = Environment()@env = Environment( ENV = os.environ )@" src/SConscript
|
||||||
scons
|
|
||||||
'';
|
'';
|
||||||
installPhase = ''
|
|
||||||
|
preInstall = ''
|
||||||
sed -i -e "s@ python_lib_path = get_python_lib(plat_specific=True)@ python_lib_path = \'/lib/python2.7/site-packages\'@" src/SConscript
|
sed -i -e "s@ python_lib_path = get_python_lib(plat_specific=True)@ python_lib_path = \'/lib/python2.7/site-packages\'@" src/SConscript
|
||||||
scons install DESTDIR=$out
|
|
||||||
'';
|
'';
|
||||||
|
|
||||||
buildInputs = [ python exiv2 scons boost ];
|
buildInputs = [ python exiv2 scons boost ];
|
||||||
|
@ -14,6 +14,8 @@ in python2Packages.buildPythonApplication {
|
|||||||
# Fix a regression in 3.0.0 (causes build errors for some packages)
|
# Fix a regression in 3.0.0 (causes build errors for some packages)
|
||||||
patches = stdenv.lib.optional (version == "3.0.0") ./print-statements.patch;
|
patches = stdenv.lib.optional (version == "3.0.0") ./print-statements.patch;
|
||||||
|
|
||||||
|
setupHook = ./setup-hook.sh;
|
||||||
|
|
||||||
meta = with stdenv.lib; {
|
meta = with stdenv.lib; {
|
||||||
homepage = http://scons.org/;
|
homepage = http://scons.org/;
|
||||||
description = "An improved, cross-platform substitute for Make";
|
description = "An improved, cross-platform substitute for Make";
|
||||||
|
84
pkgs/development/tools/build-managers/scons/setup-hook.sh
Normal file
84
pkgs/development/tools/build-managers/scons/setup-hook.sh
Normal file
@ -0,0 +1,84 @@
|
|||||||
|
sconsBuildPhase() {
|
||||||
|
runHook preBuild
|
||||||
|
|
||||||
|
if [ -n "$prefix" ]; then
|
||||||
|
mkdir -p "$prefix"
|
||||||
|
fi
|
||||||
|
|
||||||
|
if [ -z "${dontAddPrefix:-}" ] && [ -n "$prefix" ]; then
|
||||||
|
buildFlags="${prefixKey:-prefix=}$prefix $buildFlags"
|
||||||
|
fi
|
||||||
|
|
||||||
|
local flagsArray=(
|
||||||
|
${enableParallelBuilding:+-j${NIX_BUILD_CORES}}
|
||||||
|
$sconsFlags ${sconsFlagsArray[@]}
|
||||||
|
$buildFlags ${buildFlagsArray[@]}
|
||||||
|
)
|
||||||
|
|
||||||
|
echoCmd 'build flags' "${flagsArray[@]}"
|
||||||
|
scons "${flagsArray[@]}"
|
||||||
|
|
||||||
|
runHook postBuild
|
||||||
|
}
|
||||||
|
|
||||||
|
sconsInstallPhase() {
|
||||||
|
runHook preInstall
|
||||||
|
|
||||||
|
if [ -n "$prefix" ]; then
|
||||||
|
mkdir -p "$prefix"
|
||||||
|
fi
|
||||||
|
|
||||||
|
if [ -z "${dontAddPrefix:-}" ] && [ -n "$prefix" ]; then
|
||||||
|
installFlags="${prefixKey:-prefix=}$prefix $installFlags"
|
||||||
|
fi
|
||||||
|
|
||||||
|
local flagsArray=(
|
||||||
|
$sconsFlags ${sconsFlagsArray[@]}
|
||||||
|
$installFlags ${installFlagsArray[@]}
|
||||||
|
${installTargets:-install}
|
||||||
|
)
|
||||||
|
|
||||||
|
echoCmd 'install flags' "${flagsArray[@]}"
|
||||||
|
scons "${flagsArray[@]}"
|
||||||
|
|
||||||
|
runHook postInstall
|
||||||
|
}
|
||||||
|
|
||||||
|
sconsCheckPhase() {
|
||||||
|
runHook preCheck
|
||||||
|
|
||||||
|
if [ -z "${checkTarget:-}" ]; then
|
||||||
|
if scons -n check >/dev/null 2>&1; then
|
||||||
|
checkTarget=check
|
||||||
|
elif scons -n test >/dev/null 2>&1; then
|
||||||
|
checkTarget=test
|
||||||
|
fi
|
||||||
|
fi
|
||||||
|
|
||||||
|
if [ -z "${checkTarget:-}" ]; then
|
||||||
|
echo "no check/test target found, doing nothing"
|
||||||
|
else
|
||||||
|
local flagsArray=(
|
||||||
|
${enableParallelChecking:+-j${NIX_BUILD_CORES}}
|
||||||
|
$sconsFlags ${sconsFlagsArray[@]}
|
||||||
|
${checkFlagsArray[@]}
|
||||||
|
)
|
||||||
|
|
||||||
|
echoCmd 'check flags' "${flagsArray[@]}"
|
||||||
|
scons "${flagsArray[@]}"
|
||||||
|
fi
|
||||||
|
|
||||||
|
runHook postCheck
|
||||||
|
}
|
||||||
|
|
||||||
|
if [ -z "$buildPhase" ]; then
|
||||||
|
buildPhase=sconsBuildPhase
|
||||||
|
fi
|
||||||
|
|
||||||
|
if [ -z "$installPhase" ]; then
|
||||||
|
installPhase=sconsInstallPhase
|
||||||
|
fi
|
||||||
|
|
||||||
|
if [ -z "$checkPhase" ]; then
|
||||||
|
checkPhase=sconsCheckPhase
|
||||||
|
fi
|
62
pkgs/development/tools/build-managers/waf/setup-hook.sh
Normal file
62
pkgs/development/tools/build-managers/waf/setup-hook.sh
Normal file
@ -0,0 +1,62 @@
|
|||||||
|
wafConfigurePhase() {
|
||||||
|
runHook preConfigure
|
||||||
|
|
||||||
|
if ! [ -f ./waf ]; then
|
||||||
|
cp @waf@ waf
|
||||||
|
fi
|
||||||
|
|
||||||
|
if [[ -z "${dontAddPrefix:-}" && -n "$prefix" ]]; then
|
||||||
|
configureFlags="${prefixKey:---prefix=}$prefix $configureFlags"
|
||||||
|
fi
|
||||||
|
|
||||||
|
local flagsArray=(
|
||||||
|
$configureFlags ${configureFlagsArray[@]}
|
||||||
|
${configureTargets:-configure}
|
||||||
|
)
|
||||||
|
echoCmd 'configure flags' "${flagsArray[@]}"
|
||||||
|
python waf "${flagsArray[@]}"
|
||||||
|
|
||||||
|
runHook postConfigure
|
||||||
|
}
|
||||||
|
|
||||||
|
wafBuildPhase () {
|
||||||
|
runHook preBuild
|
||||||
|
|
||||||
|
# set to empty if unset
|
||||||
|
: ${wafFlags=}
|
||||||
|
|
||||||
|
local flagsArray=(
|
||||||
|
${enableParallelBuilding:+-j ${NIX_BUILD_CORES}}
|
||||||
|
$wafFlags ${wafFlagsArray[@]}
|
||||||
|
$buildFlags ${buildFlagsArray[@]}
|
||||||
|
${buildTargets:-build}
|
||||||
|
)
|
||||||
|
|
||||||
|
echoCmd 'build flags' "${flagsArray[@]}"
|
||||||
|
python waf "${flagsArray[@]}"
|
||||||
|
|
||||||
|
runHook postBuild
|
||||||
|
}
|
||||||
|
|
||||||
|
wafInstallPhase() {
|
||||||
|
runHook preInstall
|
||||||
|
|
||||||
|
if [ -n "$prefix" ]; then
|
||||||
|
mkdir -p "$prefix"
|
||||||
|
fi
|
||||||
|
|
||||||
|
local flagsArray=(
|
||||||
|
$wafFlags ${wafFlagsArray[@]}
|
||||||
|
$installFlags ${installFlagsArray[@]}
|
||||||
|
${installTargets:-install}
|
||||||
|
)
|
||||||
|
|
||||||
|
echoCmd 'install flags' "${flagsArray[@]}"
|
||||||
|
python waf "${flagsArray[@]}"
|
||||||
|
|
||||||
|
runHook postInstall
|
||||||
|
}
|
||||||
|
|
||||||
|
configurePhase=wafConfigurePhase
|
||||||
|
buildPhase=wafBuildPhase
|
||||||
|
installPhase=wafInstallPhase
|
@ -33,10 +33,9 @@ in stdenv.mkDerivation rec {
|
|||||||
|
|
||||||
enableParallelBuilding = true;
|
enableParallelBuilding = true;
|
||||||
|
|
||||||
buildPhase = ''
|
sconsFlags = "target=release_debug platform=x11";
|
||||||
scons target=release_debug platform=x11 prefix=$out -j $NIX_BUILD_CORES \
|
preConfigure = ''
|
||||||
${lib.concatStringsSep " "
|
sconsFlags+=" ${lib.concatStringsSep " " (lib.mapAttrsToList (k: v: "${k}=${builtins.toJSON v}") options)}"
|
||||||
(lib.mapAttrsToList (k: v: "${k}=${builtins.toJSON v}") options)}
|
|
||||||
'';
|
'';
|
||||||
|
|
||||||
outputs = [ "out" "dev" "man" ];
|
outputs = [ "out" "dev" "man" ];
|
||||||
|
@ -12,8 +12,6 @@ stdenv.mkDerivation rec {
|
|||||||
|
|
||||||
nativeBuildInputs = [ pkgconfig ];
|
nativeBuildInputs = [ pkgconfig ];
|
||||||
buildInputs = [ glib python scons ];
|
buildInputs = [ glib python scons ];
|
||||||
buildPhase = "scons prefix=$out";
|
|
||||||
installPhase = "scons prefix=$out install";
|
|
||||||
|
|
||||||
meta = with stdenv.lib; {
|
meta = with stdenv.lib; {
|
||||||
description = "A bit-oriented parser combinator library";
|
description = "A bit-oriented parser combinator library";
|
||||||
|
@ -11,7 +11,8 @@ stdenv.mkDerivation rec {
|
|||||||
sha256 = "0zd55bc8smmgk9j4cf0jpibb03lgsvl0knpwhplxbv93mcdnw7s0";
|
sha256 = "0zd55bc8smmgk9j4cf0jpibb03lgsvl0knpwhplxbv93mcdnw7s0";
|
||||||
};
|
};
|
||||||
|
|
||||||
buildInputs = [ lua scons ];
|
nativeBuildInputs = [ scons ];
|
||||||
|
buildInputs = [ lua ];
|
||||||
|
|
||||||
patches = [ ./environ-and-linux-is-kinda-posix.patch ];
|
patches = [ ./environ-and-linux-is-kinda-posix.patch ];
|
||||||
|
|
||||||
@ -20,10 +21,6 @@ stdenv.mkDerivation rec {
|
|||||||
--replace /usr/local $out
|
--replace /usr/local $out
|
||||||
'';
|
'';
|
||||||
|
|
||||||
buildPhase = ''scons'';
|
|
||||||
|
|
||||||
installPhase = ''scons install'';
|
|
||||||
|
|
||||||
meta = with stdenv.lib; {
|
meta = with stdenv.lib; {
|
||||||
description = "A tool to integrate C/Cpp code with Lua";
|
description = "A tool to integrate C/Cpp code with Lua";
|
||||||
homepage = http://www.codenix.com/~tolua/;
|
homepage = http://www.codenix.com/~tolua/;
|
||||||
|
@ -14,24 +14,21 @@ stdenv.mkDerivation rec {
|
|||||||
|
|
||||||
NIX_CFLAGS_COMPILE = "-I${SDL_image}/include/SDL";
|
NIX_CFLAGS_COMPILE = "-I${SDL_image}/include/SDL";
|
||||||
|
|
||||||
patches = [ (fetchpatch {
|
patches = [
|
||||||
name = "gcc-4.7.patch";
|
(fetchpatch {
|
||||||
url = "https://anonscm.debian.org/viewvc/pkg-games/packages/trunk/btanks/debian/patches/gcc-4.7.patch?revision=13641&view=co&pathrev=15758";
|
url = "https://sources.debian.org/data/main/b/btanks/0.9.8083-7/debian/patches/gcc-4.7.patch";
|
||||||
sha256 = "1dxlk1xh69gj10sqcsyckiakb8an3h41206wby4z44mpmvxc7pi4";
|
sha256 = "1dxlk1xh69gj10sqcsyckiakb8an3h41206wby4z44mpmvxc7pi4";
|
||||||
}) ];
|
})
|
||||||
|
(fetchpatch {
|
||||||
|
url = "https://sources.debian.org/data/main/b/btanks/0.9.8083-7/debian/patches/pow10f.patch";
|
||||||
|
sha256 = "1h45790v2dpdbccfn6lwfgl8782q54i14cz9gpipkaghcka4y0g9";
|
||||||
|
})
|
||||||
|
];
|
||||||
|
|
||||||
buildPhase = ''
|
meta = with stdenv.lib; {
|
||||||
scons prefix=$out
|
|
||||||
'';
|
|
||||||
|
|
||||||
installPhase = ''
|
|
||||||
scons install
|
|
||||||
'';
|
|
||||||
|
|
||||||
meta = {
|
|
||||||
homepage = https://sourceforge.net/projects/btanks/;
|
homepage = https://sourceforge.net/projects/btanks/;
|
||||||
description = "Fast 2d tank arcade game";
|
description = "Fast 2d tank arcade game";
|
||||||
license = stdenv.lib.licenses.gpl2Plus;
|
license = licenses.gpl2Plus;
|
||||||
broken = true; # 2018-09-13, no successful build since 2018-03-16
|
platforms = platforms.unix;
|
||||||
};
|
};
|
||||||
}
|
}
|
||||||
|
@ -39,18 +39,7 @@ in stdenv.mkDerivation rec {
|
|||||||
|
|
||||||
NIX_CFLAGS_COMPILE = "-Wno-format-nonliteral";
|
NIX_CFLAGS_COMPILE = "-Wno-format-nonliteral";
|
||||||
|
|
||||||
buildPhase = ''
|
postInstall = ''
|
||||||
runHook preBuild
|
|
||||||
|
|
||||||
scons prefix=$out
|
|
||||||
|
|
||||||
runHook postBuild
|
|
||||||
'';
|
|
||||||
|
|
||||||
installPhase = ''
|
|
||||||
runHook preInstall
|
|
||||||
|
|
||||||
scons prefix=$out install
|
|
||||||
install -Dm644 ${music} $out/share/games/dxx-rebirth/d2xr-sc55-music.dxa
|
install -Dm644 ${music} $out/share/games/dxx-rebirth/d2xr-sc55-music.dxa
|
||||||
install -Dm644 -t $out/share/doc/dxx-rebirth *.txt
|
install -Dm644 -t $out/share/doc/dxx-rebirth *.txt
|
||||||
|
|
||||||
|
@ -22,18 +22,12 @@ stdenv.mkDerivation rec {
|
|||||||
SDL2 libpng libjpeg glew openal scons libmad
|
SDL2 libpng libjpeg glew openal scons libmad
|
||||||
];
|
];
|
||||||
|
|
||||||
|
prefixKey = "PREFIX=";
|
||||||
|
|
||||||
patches = [
|
patches = [
|
||||||
./fixes.patch
|
./fixes.patch
|
||||||
];
|
];
|
||||||
|
|
||||||
buildPhase = ''
|
|
||||||
scons -j$NIX_BUILD_CORES PREFIX="$out"
|
|
||||||
'';
|
|
||||||
|
|
||||||
installPhase = ''
|
|
||||||
scons -j$NIX_BUILD_CORES install PREFIX="$out"
|
|
||||||
'';
|
|
||||||
|
|
||||||
meta = with stdenv.lib; {
|
meta = with stdenv.lib; {
|
||||||
description = "A sandbox-style space exploration game similar to Elite, Escape Velocity, or Star Control";
|
description = "A sandbox-style space exploration game similar to Elite, Escape Velocity, or Star Control";
|
||||||
homepage = https://endless-sky.github.io/;
|
homepage = https://endless-sky.github.io/;
|
||||||
|
@ -32,17 +32,13 @@ stdenv.mkDerivation rec {
|
|||||||
sed -i -e "s@env = Environment()@env = Environment( ENV = os.environ )@" SConstruct
|
sed -i -e "s@env = Environment()@env = Environment( ENV = os.environ )@" SConstruct
|
||||||
'';
|
'';
|
||||||
|
|
||||||
buildInputs = [ libGLU_combined SDL scons SDL_ttf SDL_image zlib SDL_net speex libvorbis libogg boost fribidi bsdiff ];
|
nativeBuildInputs = [ scons ];
|
||||||
|
buildInputs = [ libGLU_combined SDL SDL_ttf SDL_image zlib SDL_net speex libvorbis libogg boost fribidi bsdiff ];
|
||||||
|
|
||||||
buildPhase = ''
|
postConfigure = ''
|
||||||
scons
|
sconsFlags+=" BINDIR=$out/bin"
|
||||||
'';
|
sconsFlags+=" INSTALLDIR=$out/share/globulation2"
|
||||||
|
sconsFlags+=" DATADIR=$out/share/globulation2/glob2"
|
||||||
installPhase = ''
|
|
||||||
scons install \
|
|
||||||
BINDIR=$out/bin \
|
|
||||||
INSTALLDIR=$out/share/globulation2 \
|
|
||||||
DATADIR=$out/share/globulation2/glob2
|
|
||||||
'';
|
'';
|
||||||
|
|
||||||
meta = with stdenv.lib; {
|
meta = with stdenv.lib; {
|
||||||
@ -53,4 +49,3 @@ stdenv.mkDerivation rec {
|
|||||||
};
|
};
|
||||||
passthru.updateInfo.downloadPage = "http://globulation2.org/wiki/Download_and_Install";
|
passthru.updateInfo.downloadPage = "http://globulation2.org/wiki/Download_and_Install";
|
||||||
}
|
}
|
||||||
|
|
||||||
|
@ -21,7 +21,7 @@ stdenv.mkDerivation rec {
|
|||||||
|
|
||||||
buildInputs = [ SDL lua fftwFloat zlib bzip2 ];
|
buildInputs = [ SDL lua fftwFloat zlib bzip2 ];
|
||||||
|
|
||||||
buildPhase = "scons DESTDIR=$out/bin --tool='' -j$NIX_BUILD_CORES";
|
sconsFlags = "--tool=";
|
||||||
|
|
||||||
installPhase = ''
|
installPhase = ''
|
||||||
install -Dm 755 build/powder* "$out/bin/powder"
|
install -Dm 755 build/powder* "$out/bin/powder"
|
||||||
|
@ -1,41 +0,0 @@
|
|||||||
{ stdenv, fetchsvn, SDL, SDL_net, SDL_sound, libpng, makeDesktopItem, libGLU_combined, autoreconfHook }:
|
|
||||||
|
|
||||||
let revision = "4025";
|
|
||||||
revisionDate = "2017-07-02";
|
|
||||||
revisionSha = "0hbghdlvm6qibp0df35qxq35km4nza3sm301x380ghamxq2vgy6a";
|
|
||||||
in stdenv.mkDerivation rec {
|
|
||||||
name = "dosbox-unstable-${revisionDate}";
|
|
||||||
|
|
||||||
src = fetchsvn {
|
|
||||||
url = "https://dosbox.svn.sourceforge.net/svnroot/dosbox/dosbox/trunk";
|
|
||||||
rev = revision;
|
|
||||||
sha256 = revisionSha;
|
|
||||||
};
|
|
||||||
|
|
||||||
hardeningDisable = [ "format" ];
|
|
||||||
|
|
||||||
nativeBuildInputs = [ autoreconfHook ];
|
|
||||||
buildInputs = [ SDL SDL_net SDL_sound libpng libGLU_combined ];
|
|
||||||
|
|
||||||
desktopItem = makeDesktopItem {
|
|
||||||
name = "dosbox";
|
|
||||||
exec = "dosbox";
|
|
||||||
comment = "x86 emulator with internal DOS";
|
|
||||||
desktopName = "DOSBox (SVN)";
|
|
||||||
genericName = "DOS emulator";
|
|
||||||
categories = "Application;Emulator;";
|
|
||||||
};
|
|
||||||
|
|
||||||
postInstall = ''
|
|
||||||
mkdir -p $out/share/applications
|
|
||||||
cp ${desktopItem}/share/applications/* $out/share/applications
|
|
||||||
'';
|
|
||||||
|
|
||||||
meta = {
|
|
||||||
homepage = http://www.dosbox.com/;
|
|
||||||
description = "A DOS emulator";
|
|
||||||
platforms = stdenv.lib.platforms.unix;
|
|
||||||
maintainers = with stdenv.lib.maintainers; [ binarin ];
|
|
||||||
license = stdenv.lib.licenses.gpl2Plus;
|
|
||||||
};
|
|
||||||
}
|
|
@ -8,23 +8,23 @@ stdenv.mkDerivation {
|
|||||||
sha256 = "0gl2i3qdmcm7v9m5kpfz98w05d8m33990jiwka043ya7lflxvrjb";
|
sha256 = "0gl2i3qdmcm7v9m5kpfz98w05d8m33990jiwka043ya7lflxvrjb";
|
||||||
};
|
};
|
||||||
|
|
||||||
nativeBuildInputs = [ pkgconfig ];
|
nativeBuildInputs = [ pkgconfig scons ];
|
||||||
buildInputs = [
|
buildInputs = [
|
||||||
scons zlib SDL lua5_1
|
zlib SDL lua5_1
|
||||||
];
|
];
|
||||||
|
|
||||||
phases = "unpackPhase buildPhase";
|
sconsFlags = "OPENGL=false GTK=false CREATE_AVI=false LOGO=false";
|
||||||
|
prefixKey = "--prefix=";
|
||||||
|
|
||||||
# sed allows scons to find libraries in nix.
|
# sed allows scons to find libraries in nix.
|
||||||
# mkdir is a hack to make scons succeed. It still doesn't
|
# mkdir is a hack to make scons succeed. It still doesn't
|
||||||
# actually put the files in there due to a bug in the SConstruct file.
|
# actually put the files in there due to a bug in the SConstruct file.
|
||||||
# OPENGL doesn't work because fceux dlopens the library.
|
# OPENGL doesn't work because fceux dlopens the library.
|
||||||
buildPhase = ''
|
preBuild = ''
|
||||||
sed -e 's/env *= *Environment *.*/&; env['"'"'ENV'"'"']=os.environ;/' -i SConstruct
|
sed -e 's/env *= *Environment *.*/&; env['"'"'ENV'"'"']=os.environ;/' -i SConstruct
|
||||||
export CC="gcc"
|
export CC="gcc"
|
||||||
export CXX="g++"
|
export CXX="g++"
|
||||||
mkdir -p "$out" "$out/share/applications" "$out/share/pixmaps"
|
mkdir -p "$out" "$out/share/applications" "$out/share/pixmaps"
|
||||||
scons --prefix="$out" OPENGL=false GTK=false CREATE_AVI=false LOGO=false install
|
|
||||||
'';
|
'';
|
||||||
|
|
||||||
meta = {
|
meta = {
|
||||||
|
@ -1,4 +1,5 @@
|
|||||||
{stdenv, fetchurl, python, wxGTK29, mupen64plus, SDL, libX11, libGLU_combined}:
|
{ stdenv, fetchurl, python, wxGTK29, mupen64plus, SDL, libX11, libGLU_combined
|
||||||
|
, wafHook }:
|
||||||
|
|
||||||
stdenv.mkDerivation {
|
stdenv.mkDerivation {
|
||||||
name = "wxmupen64plus-0.3";
|
name = "wxmupen64plus-0.3";
|
||||||
@ -7,23 +8,23 @@ stdenv.mkDerivation {
|
|||||||
sha256 = "1mnxi4k011dd300k35li2p6x4wccwi6im21qz8dkznnz397ps67c";
|
sha256 = "1mnxi4k011dd300k35li2p6x4wccwi6im21qz8dkznnz397ps67c";
|
||||||
};
|
};
|
||||||
|
|
||||||
|
nativeBuildInputs = [ wafHook ];
|
||||||
buildInputs = [ python wxGTK29 SDL libX11 libGLU_combined ];
|
buildInputs = [ python wxGTK29 SDL libX11 libGLU_combined ];
|
||||||
|
|
||||||
configurePhase = ''
|
preConfigure = ''
|
||||||
tar xf ${mupen64plus.src}
|
tar xf ${mupen64plus.src}
|
||||||
APIDIR=$(eval echo `pwd`/mupen64plus*/source/mupen64plus-core/src/api)
|
APIDIR=$(eval echo `pwd`/mupen64plus*/source/mupen64plus-core/src/api)
|
||||||
export CXXFLAGS="-I${libX11.dev}/include/X11 -DLIBDIR=\\\"${mupen64plus}/lib/\\\""
|
export CXXFLAGS="-I${libX11.dev}/include/X11 -DLIBDIR=\\\"${mupen64plus}/lib/\\\""
|
||||||
export LDFLAGS="-lwx_gtk2u_adv-2.9"
|
export LDFLAGS="-lwx_gtk2u_adv-2.9"
|
||||||
python waf configure --mupenapi=$APIDIR --wxconfig=`type -P wx-config` --prefix=$out
|
|
||||||
|
configureFlagsArray+=("--mupenapi=$APIDIR" "--wxconfig=`type -P wx-config`")
|
||||||
'';
|
'';
|
||||||
|
|
||||||
buildPhase = "python waf";
|
NIX_CFLAGS_COMPILE = "-fpermissive";
|
||||||
installPhase = "python waf install";
|
|
||||||
|
|
||||||
meta = {
|
meta = {
|
||||||
description = "GUI for the Mupen64Plus 2.0 emulator";
|
description = "GUI for the Mupen64Plus 2.0 emulator";
|
||||||
license = stdenv.lib.licenses.gpl2Plus;
|
license = stdenv.lib.licenses.gpl2Plus;
|
||||||
homepage = https://bitbucket.org/auria/wxmupen64plus/wiki/Home;
|
homepage = https://bitbucket.org/auria/wxmupen64plus/wiki/Home;
|
||||||
broken = true;
|
|
||||||
};
|
};
|
||||||
}
|
}
|
||||||
|
@ -1,5 +1,6 @@
|
|||||||
{ stdenv, fetchFromGitHub, pkgconfig, python2Packages, makeWrapper
|
{ stdenv, fetchFromGitHub, pkgconfig, python2Packages, makeWrapper
|
||||||
, bash, libsamplerate, libsndfile, readline, eigen, celt
|
, bash, libsamplerate, libsndfile, readline, eigen, celt
|
||||||
|
, wafHook
|
||||||
# Darwin Dependencies
|
# Darwin Dependencies
|
||||||
, aften, AudioToolbox, CoreAudio, CoreFoundation
|
, aften, AudioToolbox, CoreAudio, CoreFoundation
|
||||||
|
|
||||||
@ -35,13 +36,13 @@ stdenv.mkDerivation rec {
|
|||||||
sha256 = "0ynpyn0l77m94b50g7ysl795nvam3ra65wx5zb46nxspgbf6wnkh";
|
sha256 = "0ynpyn0l77m94b50g7ysl795nvam3ra65wx5zb46nxspgbf6wnkh";
|
||||||
};
|
};
|
||||||
|
|
||||||
nativeBuildInputs = [ pkgconfig python makeWrapper ];
|
nativeBuildInputs = [ pkgconfig python makeWrapper wafHook ];
|
||||||
buildInputs = [ libsamplerate libsndfile readline eigen celt
|
buildInputs = [ libsamplerate libsndfile readline eigen celt
|
||||||
optDbus optPythonDBus optLibffado optAlsaLib optLibopus
|
optDbus optPythonDBus optLibffado optAlsaLib optLibopus
|
||||||
] ++ stdenv.lib.optionals stdenv.isDarwin [ aften AudioToolbox CoreAudio CoreFoundation ];
|
] ++ optionals stdenv.isDarwin [ aften AudioToolbox CoreAudio CoreFoundation ];
|
||||||
|
|
||||||
# CoreFoundation 10.10 doesn't include CFNotificationCenter.h yet.
|
# CoreFoundation 10.10 doesn't include CFNotificationCenter.h yet.
|
||||||
patches = stdenv.lib.optionals stdenv.isDarwin [ ./darwin-cf.patch ];
|
patches = optionals stdenv.isDarwin [ ./darwin-cf.patch ];
|
||||||
|
|
||||||
prePatch = ''
|
prePatch = ''
|
||||||
substituteInPlace svnversion_regenerate.sh \
|
substituteInPlace svnversion_regenerate.sh \
|
||||||
@ -51,30 +52,18 @@ stdenv.mkDerivation rec {
|
|||||||
# It looks like one of the frameworks depends on <CoreFoundation/CFAttributedString.h>
|
# It looks like one of the frameworks depends on <CoreFoundation/CFAttributedString.h>
|
||||||
# since frameworks are impure we also have to use the impure CoreFoundation here.
|
# since frameworks are impure we also have to use the impure CoreFoundation here.
|
||||||
# FIXME: remove when CoreFoundation is updated to 10.11
|
# FIXME: remove when CoreFoundation is updated to 10.11
|
||||||
preConfigure = stdenv.lib.optionalString stdenv.isDarwin ''
|
preConfigure = optionalString stdenv.isDarwin ''
|
||||||
export NIX_CFLAGS_COMPILE="-F${CoreFoundation}/Library/Frameworks $NIX_CFLAGS_COMPILE"
|
export NIX_CFLAGS_COMPILE="-F${CoreFoundation}/Library/Frameworks $NIX_CFLAGS_COMPILE"
|
||||||
'';
|
'';
|
||||||
|
|
||||||
configurePhase = ''
|
configureFlags = [
|
||||||
runHook preConfigure
|
"--classic"
|
||||||
|
"--autostart=${if (optDbus != null) then "dbus" else "classic"}"
|
||||||
|
] ++ optional (optDbus != null) "--dbus"
|
||||||
|
++ optional (optLibffado != null) "--firewire"
|
||||||
|
++ optional (optAlsaLib != null) "--alsa";
|
||||||
|
|
||||||
python waf configure --prefix=$out \
|
postInstall = (if libOnly then ''
|
||||||
${optionalString (optDbus != null) "--dbus"} \
|
|
||||||
--classic \
|
|
||||||
${optionalString (optLibffado != null) "--firewire"} \
|
|
||||||
${optionalString (optAlsaLib != null) "--alsa"} \
|
|
||||||
--autostart=${if (optDbus != null) then "dbus" else "classic"} \
|
|
||||||
|
|
||||||
runHook postConfigure
|
|
||||||
'';
|
|
||||||
|
|
||||||
buildPhase = ''
|
|
||||||
python waf build
|
|
||||||
'';
|
|
||||||
|
|
||||||
installPhase = ''
|
|
||||||
python waf install
|
|
||||||
'' + (if libOnly then ''
|
|
||||||
rm -rf $out/{bin,share}
|
rm -rf $out/{bin,share}
|
||||||
rm -rf $out/lib/{jack,libjacknet*,libjackserver*}
|
rm -rf $out/lib/{jack,libjacknet*,libjackserver*}
|
||||||
'' else ''
|
'' else ''
|
||||||
|
@ -1,4 +1,4 @@
|
|||||||
{ lib, stdenv, fetchurl, python, waf }:
|
{ lib, stdenv, fetchurl, python, wafHook }:
|
||||||
|
|
||||||
stdenv.mkDerivation rec {
|
stdenv.mkDerivation rec {
|
||||||
name = "pflask-${version}";
|
name = "pflask-${version}";
|
||||||
@ -10,19 +10,9 @@ stdenv.mkDerivation rec {
|
|||||||
sha256 = "2545fca37f9da484b46b6fb5e3a9bbba6526a9725189fe4af5227ef6e6fca440";
|
sha256 = "2545fca37f9da484b46b6fb5e3a9bbba6526a9725189fe4af5227ef6e6fca440";
|
||||||
};
|
};
|
||||||
|
|
||||||
|
nativeBuildInputs = [ wafHook ];
|
||||||
buildInputs = [ python ];
|
buildInputs = [ python ];
|
||||||
|
|
||||||
configurePhase = ''
|
|
||||||
ln -s ${waf} waf
|
|
||||||
python waf configure --prefix=$out
|
|
||||||
'';
|
|
||||||
buildPhase = ''
|
|
||||||
python waf build
|
|
||||||
'';
|
|
||||||
installPhase = ''
|
|
||||||
python waf install
|
|
||||||
'';
|
|
||||||
|
|
||||||
meta = {
|
meta = {
|
||||||
description = "Lightweight process containers for Linux";
|
description = "Lightweight process containers for Linux";
|
||||||
homepage = "https://ghedo.github.io/pflask/";
|
homepage = "https://ghedo.github.io/pflask/";
|
||||||
|
@ -44,30 +44,30 @@ stdenv.mkDerivation rec {
|
|||||||
|
|
||||||
# - leapfetch=no disables going online at build time to fetch leap-seconds
|
# - leapfetch=no disables going online at build time to fetch leap-seconds
|
||||||
# info. See <gpsd-src>/build.txt for more info.
|
# info. See <gpsd-src>/build.txt for more info.
|
||||||
buildPhase = ''
|
preBuild = ''
|
||||||
patchShebangs .
|
patchShebangs .
|
||||||
sed -e "s|systemd_dir = .*|systemd_dir = '$out/lib/systemd/system'|" -i SConstruct
|
sed -e "s|systemd_dir = .*|systemd_dir = '$out/lib/systemd/system'|" -i SConstruct
|
||||||
scons \
|
|
||||||
-j $NIX_BUILD_CORES \
|
sconsFlags+=" udevdir=$out/lib/udev"
|
||||||
prefix="$out" \
|
sconsFlags+=" python_libdir=$out/lib/${python2Packages.python.libPrefix}/site-packages"
|
||||||
leapfetch=no \
|
|
||||||
gpsd_user=${gpsdUser} \
|
|
||||||
gpsd_group=${gpsdGroup} \
|
|
||||||
systemd=yes \
|
|
||||||
udevdir="$out/lib/udev" \
|
|
||||||
python_libdir="$out/lib/${python2Packages.python.libPrefix}/site-packages"
|
|
||||||
'';
|
'';
|
||||||
|
|
||||||
checkPhase = ''
|
sconsFlags = [
|
||||||
|
"leapfetch=no"
|
||||||
|
"gpsd_user=${gpsdUser}"
|
||||||
|
"gpsd_group=${gpsdGroup}"
|
||||||
|
"systemd=yes"
|
||||||
|
];
|
||||||
|
|
||||||
|
preCheck = ''
|
||||||
export LD_LIBRARY_PATH="$PWD"
|
export LD_LIBRARY_PATH="$PWD"
|
||||||
scons check
|
|
||||||
'';
|
'';
|
||||||
|
|
||||||
# TODO: the udev rules file and the hotplug script need fixes to work on NixOS
|
# TODO: the udev rules file and the hotplug script need fixes to work on NixOS
|
||||||
installPhase = ''
|
preInstall = ''
|
||||||
mkdir -p "$out/lib/udev/rules.d"
|
mkdir -p "$out/lib/udev/rules.d"
|
||||||
scons install udev-install
|
|
||||||
'';
|
'';
|
||||||
|
installTargets = "install udev-install";
|
||||||
|
|
||||||
postFixup = ''
|
postFixup = ''
|
||||||
wrapPythonProgramsIn $out/bin "$out $pythonPath"
|
wrapPythonProgramsIn $out/bin "$out $pythonPath"
|
||||||
|
@ -20,25 +20,6 @@ let version = "3.4.10";
|
|||||||
"yaml"
|
"yaml"
|
||||||
] ++ optionals stdenv.isLinux [ "tcmalloc" ];
|
] ++ optionals stdenv.isLinux [ "tcmalloc" ];
|
||||||
|
|
||||||
buildInputs = [
|
|
||||||
sasl boost gperftools pcre-cpp snappy
|
|
||||||
zlib libyamlcpp sasl openssl.dev openssl.out libpcap
|
|
||||||
] ++ stdenv.lib.optionals stdenv.isDarwin [ Security ];
|
|
||||||
|
|
||||||
other-args = concatStringsSep " " ([
|
|
||||||
"--ssl"
|
|
||||||
#"--rocksdb" # Don't have this packaged yet
|
|
||||||
"--wiredtiger=${if stdenv.is64bit then "on" else "off"}"
|
|
||||||
"--js-engine=mozjs"
|
|
||||||
"--use-sasl-client"
|
|
||||||
"--disable-warnings-as-errors"
|
|
||||||
"VARIANT_DIR=nixos" # Needed so we don't produce argument lists that are too long for gcc / ld
|
|
||||||
"CC=$CC"
|
|
||||||
"CXX=$CXX"
|
|
||||||
"CCFLAGS=\"${concatStringsSep " " (map (input: "-I${input}/include") buildInputs)}\""
|
|
||||||
"LINKFLAGS=\"${concatStringsSep " " (map (input: "-L${input}/lib") buildInputs)}\""
|
|
||||||
] ++ map (lib: "--use-system-${lib}") system-libraries);
|
|
||||||
|
|
||||||
in stdenv.mkDerivation rec {
|
in stdenv.mkDerivation rec {
|
||||||
name = "mongodb-${version}";
|
name = "mongodb-${version}";
|
||||||
|
|
||||||
@ -48,7 +29,10 @@ in stdenv.mkDerivation rec {
|
|||||||
};
|
};
|
||||||
|
|
||||||
nativeBuildInputs = [ scons ];
|
nativeBuildInputs = [ scons ];
|
||||||
inherit buildInputs;
|
buildInputs = [
|
||||||
|
sasl boost gperftools pcre-cpp snappy
|
||||||
|
zlib libyamlcpp sasl openssl.dev openssl.out libpcap
|
||||||
|
] ++ stdenv.lib.optionals stdenv.isDarwin [ Security ];
|
||||||
|
|
||||||
patches =
|
patches =
|
||||||
[
|
[
|
||||||
@ -83,14 +67,26 @@ in stdenv.mkDerivation rec {
|
|||||||
|
|
||||||
NIX_CFLAGS_COMPILE = stdenv.lib.optional stdenv.cc.isClang "-Wno-unused-command-line-argument";
|
NIX_CFLAGS_COMPILE = stdenv.lib.optional stdenv.cc.isClang "-Wno-unused-command-line-argument";
|
||||||
|
|
||||||
buildPhase = ''
|
sconsFlags = [
|
||||||
scons -j $NIX_BUILD_CORES core --release ${other-args}
|
"--release"
|
||||||
|
"--ssl"
|
||||||
|
#"--rocksdb" # Don't have this packaged yet
|
||||||
|
"--wiredtiger=${if stdenv.is64bit then "on" else "off"}"
|
||||||
|
"--js-engine=mozjs"
|
||||||
|
"--use-sasl-client"
|
||||||
|
"--disable-warnings-as-errors"
|
||||||
|
"VARIANT_DIR=nixos" # Needed so we don't produce argument lists that are too long for gcc / ld
|
||||||
|
] ++ map (lib: "--use-system-${lib}") system-libraries;
|
||||||
|
|
||||||
|
preBuild = ''
|
||||||
|
sconsFlags+=" CC=$CC"
|
||||||
|
sconsFlags+=" CXX=$CXX"
|
||||||
'';
|
'';
|
||||||
|
|
||||||
installPhase = ''
|
preInstall = ''
|
||||||
mkdir -p $out/lib
|
mkdir -p $out/lib
|
||||||
scons -j $NIX_BUILD_CORES install --release --prefix=$out ${other-args}
|
|
||||||
'';
|
'';
|
||||||
|
prefixKey = "--prefix=";
|
||||||
|
|
||||||
enableParallelBuilding = true;
|
enableParallelBuilding = true;
|
||||||
|
|
||||||
|
@ -15,12 +15,10 @@ stdenv.mkDerivation rec {
|
|||||||
sed -i -e "s@ENV = dict.*@ENV = os.environ@g" SConstruct
|
sed -i -e "s@ENV = dict.*@ENV = os.environ@g" SConstruct
|
||||||
'';
|
'';
|
||||||
|
|
||||||
nativeBuildInputs = [ pkgconfig ];
|
nativeBuildInputs = [ pkgconfig scons ];
|
||||||
buildInputs = [ scons openssl protobuf boost zlib ];
|
buildInputs = [ openssl protobuf boost zlib ];
|
||||||
|
|
||||||
buildPhase = "scons";
|
postInstall = ''
|
||||||
|
|
||||||
installPhase = ''
|
|
||||||
mkdir -p $out/bin
|
mkdir -p $out/bin
|
||||||
cp build/rippled $out/bin/
|
cp build/rippled $out/bin/
|
||||||
'';
|
'';
|
||||||
|
@ -233,7 +233,7 @@ galera = stdenv.mkDerivation rec {
|
|||||||
|
|
||||||
buildInputs = [ asio boost check openssl scons ];
|
buildInputs = [ asio boost check openssl scons ];
|
||||||
|
|
||||||
patchPhase = ''
|
postPatch = ''
|
||||||
substituteInPlace SConstruct \
|
substituteInPlace SConstruct \
|
||||||
--replace "boost_library_path = '''" "boost_library_path = '${boost}/lib'"
|
--replace "boost_library_path = '''" "boost_library_path = '${boost}/lib'"
|
||||||
'';
|
'';
|
||||||
@ -243,11 +243,9 @@ galera = stdenv.mkDerivation rec {
|
|||||||
export LIBPATH="${galeraLibs}/lib"
|
export LIBPATH="${galeraLibs}/lib"
|
||||||
'';
|
'';
|
||||||
|
|
||||||
buildPhase = ''
|
sconsFlags = "ssl=1 system_asio=1 strict_build_flags=0";
|
||||||
scons -j$NIX_BUILD_CORES ssl=1 system_asio=1 strict_build_flags=0
|
|
||||||
'';
|
|
||||||
|
|
||||||
installPhase = ''
|
postInstall = ''
|
||||||
# copied with modifications from scripts/packages/freebsd.sh
|
# copied with modifications from scripts/packages/freebsd.sh
|
||||||
GALERA_LICENSE_DIR="$share/licenses/${name}"
|
GALERA_LICENSE_DIR="$share/licenses/${name}"
|
||||||
install -d $out/{bin,lib/galera,share/doc/galera,$GALERA_LICENSE_DIR}
|
install -d $out/{bin,lib/galera,share/doc/galera,$GALERA_LICENSE_DIR}
|
||||||
|
@ -1,4 +1,4 @@
|
|||||||
{ stdenv, fetchFromGitHub, python, pkgconfig, imagemagick }:
|
{ stdenv, fetchFromGitHub, python, pkgconfig, imagemagick, wafHook }:
|
||||||
|
|
||||||
stdenv.mkDerivation rec {
|
stdenv.mkDerivation rec {
|
||||||
name = "blockhash-${version}";
|
name = "blockhash-${version}";
|
||||||
@ -11,13 +11,9 @@ stdenv.mkDerivation rec {
|
|||||||
sha256 = "0m7ikppl42iicgmwsb7baajmag7v0p1ab06xckifvrr0zm21bq9p";
|
sha256 = "0m7ikppl42iicgmwsb7baajmag7v0p1ab06xckifvrr0zm21bq9p";
|
||||||
};
|
};
|
||||||
|
|
||||||
nativeBuildInputs = [ python pkgconfig ];
|
nativeBuildInputs = [ python pkgconfig wafHook ];
|
||||||
buildInputs = [ imagemagick ];
|
buildInputs = [ imagemagick ];
|
||||||
|
|
||||||
configurePhase = "python waf configure --prefix=$out";
|
|
||||||
buildPhase = "python waf";
|
|
||||||
installPhase = "python waf install";
|
|
||||||
|
|
||||||
meta = with stdenv.lib; {
|
meta = with stdenv.lib; {
|
||||||
homepage = "http://blockhash.io/";
|
homepage = "http://blockhash.io/";
|
||||||
description = ''
|
description = ''
|
||||||
|
@ -1,5 +1,5 @@
|
|||||||
{ stdenv, fetchFromGitHub, pkgconfig, libjpeg, libpng, xorg, libX11, libGL, libdrm,
|
{ stdenv, fetchFromGitHub, pkgconfig, libjpeg, libpng, xorg, libX11, libGL, libdrm,
|
||||||
python27, wayland, udev, mesa_noglu }:
|
python27, wayland, udev, mesa_noglu, wafHook }:
|
||||||
|
|
||||||
stdenv.mkDerivation rec {
|
stdenv.mkDerivation rec {
|
||||||
name = "glmark2-${version}";
|
name = "glmark2-${version}";
|
||||||
@ -12,19 +12,12 @@ stdenv.mkDerivation rec {
|
|||||||
sha256 = "076l75rfl6pnp1wgiwlaihy1vg2advg1z8bi0x84kk259kldgvwn";
|
sha256 = "076l75rfl6pnp1wgiwlaihy1vg2advg1z8bi0x84kk259kldgvwn";
|
||||||
};
|
};
|
||||||
|
|
||||||
nativeBuildInputs = [ pkgconfig ];
|
nativeBuildInputs = [ pkgconfig wafHook ];
|
||||||
buildInputs = [
|
buildInputs = [
|
||||||
libjpeg libpng xorg.libxcb libX11 libGL libdrm python27 wayland udev mesa_noglu
|
libjpeg libpng xorg.libxcb libX11 libGL libdrm python27 wayland udev mesa_noglu
|
||||||
];
|
];
|
||||||
|
|
||||||
buildPhase = ''
|
configureFlags = ["--with-flavors=x11-gl,x11-glesv2,drm-gl,drm-glesv2,wayland-gl,wayland-glesv2"];
|
||||||
python ./waf configure --prefix=$out --with-flavors x11-gl,x11-glesv2,drm-gl,drm-glesv2,wayland-gl,wayland-glesv2
|
|
||||||
python2 ./waf
|
|
||||||
'';
|
|
||||||
|
|
||||||
installPhase = ''
|
|
||||||
python2 ./waf install --destdir="$pkgdir/"
|
|
||||||
'';
|
|
||||||
|
|
||||||
meta = with stdenv.lib; {
|
meta = with stdenv.lib; {
|
||||||
description = "OpenGL (ES) 2.0 benchmark";
|
description = "OpenGL (ES) 2.0 benchmark";
|
||||||
|
@ -5,7 +5,8 @@
|
|||||||
*/
|
*/
|
||||||
stdenv.mkDerivation {
|
stdenv.mkDerivation {
|
||||||
name = "lprof-1.11.4.1";
|
name = "lprof-1.11.4.1";
|
||||||
buildInputs = [ scons qt3 lcms1 libtiff vigra ];
|
nativeBuildInputs = [ scons ];
|
||||||
|
buildInputs = [ qt3 lcms1 libtiff vigra ];
|
||||||
|
|
||||||
hardeningDisable = [ "format" ];
|
hardeningDisable = [ "format" ];
|
||||||
|
|
||||||
@ -19,14 +20,11 @@ stdenv.mkDerivation {
|
|||||||
sha256 = "0q8x24fm5yyvm151xrl3l03p7hvvciqnkbviprfnvlr0lyg9wsrn";
|
sha256 = "0q8x24fm5yyvm151xrl3l03p7hvvciqnkbviprfnvlr0lyg9wsrn";
|
||||||
};
|
};
|
||||||
|
|
||||||
buildPhase = ''
|
sconsFlags = "SYSLIBS=1";
|
||||||
mkdir -p $out
|
preBuild = ''
|
||||||
export CXX=g++
|
export CXX=g++
|
||||||
|
|
||||||
scons PREFIX=$out SYSLIBS=1 install
|
|
||||||
'';
|
'';
|
||||||
|
prefixKey = "PREFIX=";
|
||||||
installPhase = ":";
|
|
||||||
|
|
||||||
patches = [ ./lcms-1.17.patch ./keep-environment.patch ];
|
patches = [ ./lcms-1.17.patch ./keep-environment.patch ];
|
||||||
|
|
||||||
|
@ -1,31 +0,0 @@
|
|||||||
{
|
|
||||||
stdenv, fetchgit,
|
|
||||||
autoconf, automake, cyrus_sasl, db, openssl, perl, pkgconfig, zlib,
|
|
||||||
}:
|
|
||||||
|
|
||||||
stdenv.mkDerivation rec {
|
|
||||||
name = "isync-git-20170514";
|
|
||||||
rev = "4b3768806278a70db696ba52645dc1b6eb8de58a";
|
|
||||||
|
|
||||||
src = fetchgit {
|
|
||||||
url = "https://git.code.sf.net/p/isync/isync";
|
|
||||||
inherit rev;
|
|
||||||
sha256 = "1cv1isw01cfp7724z6f4pf6k4rx3k1lg0pc1xcq17zpikx9d10fb";
|
|
||||||
};
|
|
||||||
|
|
||||||
nativeBuildInputs = [ autoconf automake perl pkgconfig ];
|
|
||||||
buildInputs = [ cyrus_sasl db openssl zlib ];
|
|
||||||
|
|
||||||
preConfigure = ''
|
|
||||||
touch ChangeLog
|
|
||||||
./autogen.sh
|
|
||||||
'';
|
|
||||||
|
|
||||||
meta = with stdenv.lib; {
|
|
||||||
homepage = http://isync.sourceforge.net/;
|
|
||||||
description = "Free IMAP and MailDir mailbox synchronizer";
|
|
||||||
license = licenses.gpl2Plus;
|
|
||||||
maintainers = with maintainers; [ the-kenny ttuegel ];
|
|
||||||
platforms = platforms.unix;
|
|
||||||
};
|
|
||||||
}
|
|
@ -1,4 +1,4 @@
|
|||||||
{ stdenv, fetchgit, python, libev}:
|
{ stdenv, fetchgit, python, libev, wafHook }:
|
||||||
stdenv.mkDerivation rec {
|
stdenv.mkDerivation rec {
|
||||||
name = "weighttp-${version}";
|
name = "weighttp-${version}";
|
||||||
version = "0.4";
|
version = "0.4";
|
||||||
@ -9,12 +9,8 @@ stdenv.mkDerivation rec {
|
|||||||
sha256 = "14yjmdx9p8g8c3zlrx5qid8k156lsagfwhl3ny54162nxjf7kzgr";
|
sha256 = "14yjmdx9p8g8c3zlrx5qid8k156lsagfwhl3ny54162nxjf7kzgr";
|
||||||
};
|
};
|
||||||
|
|
||||||
|
nativeBuildInputs = [ wafHook ];
|
||||||
buildInputs = [ python libev ];
|
buildInputs = [ python libev ];
|
||||||
installPhase = ''
|
|
||||||
python waf configure --prefix=$out
|
|
||||||
python waf build
|
|
||||||
python waf install
|
|
||||||
'';
|
|
||||||
|
|
||||||
meta = {
|
meta = {
|
||||||
platforms = stdenv.lib.platforms.unix;
|
platforms = stdenv.lib.platforms.unix;
|
||||||
|
@ -3492,7 +3492,6 @@ with pkgs;
|
|||||||
ispike = callPackage ../development/libraries/science/robotics/ispike { };
|
ispike = callPackage ../development/libraries/science/robotics/ispike { };
|
||||||
|
|
||||||
isync = callPackage ../tools/networking/isync { };
|
isync = callPackage ../tools/networking/isync { };
|
||||||
isyncUnstable = callPackage ../tools/networking/isync/unstable.nix { };
|
|
||||||
|
|
||||||
jaaa = callPackage ../applications/audio/jaaa { };
|
jaaa = callPackage ../applications/audio/jaaa { };
|
||||||
|
|
||||||
@ -6205,6 +6204,10 @@ with pkgs;
|
|||||||
volumeicon = callPackage ../tools/audio/volumeicon { };
|
volumeicon = callPackage ../tools/audio/volumeicon { };
|
||||||
|
|
||||||
waf = callPackage ../development/tools/build-managers/waf { python = python3; };
|
waf = callPackage ../development/tools/build-managers/waf { python = python3; };
|
||||||
|
wafHook = makeSetupHook {
|
||||||
|
deps = [ python ];
|
||||||
|
substitutions = { inherit waf; };
|
||||||
|
} ../development/tools/build-managers/waf/setup-hook.sh;
|
||||||
|
|
||||||
wakelan = callPackage ../tools/networking/wakelan { };
|
wakelan = callPackage ../tools/networking/wakelan { };
|
||||||
|
|
||||||
@ -15980,8 +15983,6 @@ with pkgs;
|
|||||||
|
|
||||||
bspwm = callPackage ../applications/window-managers/bspwm { };
|
bspwm = callPackage ../applications/window-managers/bspwm { };
|
||||||
|
|
||||||
bspwm-unstable = callPackage ../applications/window-managers/bspwm/unstable.nix { };
|
|
||||||
|
|
||||||
btops = callPackage ../applications/window-managers/btops { };
|
btops = callPackage ../applications/window-managers/btops { };
|
||||||
|
|
||||||
bvi = callPackage ../applications/editors/bvi { };
|
bvi = callPackage ../applications/editors/bvi { };
|
||||||
@ -18224,8 +18225,6 @@ with pkgs;
|
|||||||
|
|
||||||
sxhkd = callPackage ../applications/window-managers/sxhkd { };
|
sxhkd = callPackage ../applications/window-managers/sxhkd { };
|
||||||
|
|
||||||
sxhkd-unstable = callPackage ../applications/window-managers/sxhkd/unstable.nix { };
|
|
||||||
|
|
||||||
mpop = callPackage ../applications/networking/mpop {
|
mpop = callPackage ../applications/networking/mpop {
|
||||||
inherit (darwin.apple_sdk.frameworks) Security;
|
inherit (darwin.apple_sdk.frameworks) Security;
|
||||||
};
|
};
|
||||||
@ -21982,7 +21981,6 @@ with pkgs;
|
|||||||
dell-530cdn = callPackage ../misc/drivers/dell-530cdn {};
|
dell-530cdn = callPackage ../misc/drivers/dell-530cdn {};
|
||||||
|
|
||||||
dosbox = callPackage ../misc/emulators/dosbox { };
|
dosbox = callPackage ../misc/emulators/dosbox { };
|
||||||
dosbox-unstable = callPackage ../misc/emulators/dosbox/unstable.nix { };
|
|
||||||
|
|
||||||
dpkg = callPackage ../tools/package-management/dpkg { };
|
dpkg = callPackage ../tools/package-management/dpkg { };
|
||||||
|
|
||||||
|
Loading…
x
Reference in New Issue
Block a user