diff options
Diffstat (limited to 'pkgs/misc')
-rw-r--r-- | pkgs/misc/busybox/default.nix | 10 | ||||
-rw-r--r-- | pkgs/misc/cups/default.nix | 6 | ||||
-rw-r--r-- | pkgs/misc/cups/pdf-filter.nix | 9 | ||||
-rw-r--r-- | pkgs/misc/emulators/VisualBoyAdvance/default.nix | 23 | ||||
-rw-r--r-- | pkgs/misc/emulators/VisualBoyAdvance/fix.diff | 31 | ||||
-rw-r--r-- | pkgs/misc/emulators/mupen64plus/default.nix | 33 | ||||
-rw-r--r-- | pkgs/misc/emulators/uae/default.nix | 7 | ||||
-rw-r--r-- | pkgs/misc/emulators/vice/default.nix | 2 | ||||
-rw-r--r-- | pkgs/misc/emulators/wine/src-for-default.nix | 8 | ||||
-rw-r--r-- | pkgs/misc/emulators/zsnes/default.nix | 4 | ||||
-rw-r--r-- | pkgs/misc/ghostscript/default.nix | 6 | ||||
-rw-r--r-- | pkgs/misc/misc.nix | 22 | ||||
-rw-r--r-- | pkgs/misc/themes/gtk2/oxygen-gtk/default.nix | 18 |
13 files changed, 139 insertions, 40 deletions
diff --git a/pkgs/misc/busybox/default.nix b/pkgs/misc/busybox/default.nix index a63411367e89..f3a73514ed85 100644 --- a/pkgs/misc/busybox/default.nix +++ b/pkgs/misc/busybox/default.nix @@ -39,11 +39,11 @@ let in stdenv.mkDerivation rec { - name = "busybox-1.18.0"; + name = "busybox-1.19.0"; src = fetchurl { url = "http://busybox.net/downloads/${name}.tar.bz2"; - sha256 = "007bc8k6sc62iyjmyv3di2c8xdxvdhvqg68c7pn40m0455lmx79s"; + sha256 = "0332yxvlfv2hbix9n70dyp4xlm2hrk248qqdg006hyfpjsh49kqr"; }; configurePhase = '' @@ -58,6 +58,12 @@ stdenv.mkDerivation rec { make oldconfig ''; + postInstall = '' + mv -v $out/usr/bin/* $out/bin + mv -v $out/usr/sbin/* $out/sbin + rm -fRv $out/usr/ + ''; + crossAttrs = { extraCrossConfig = '' CONFIG_CROSS_COMPILER_PREFIX "${stdenv.cross.config}-" diff --git a/pkgs/misc/cups/default.nix b/pkgs/misc/cups/default.nix index 52daa939c7b3..8a9efdedcf97 100644 --- a/pkgs/misc/cups/default.nix +++ b/pkgs/misc/cups/default.nix @@ -1,14 +1,16 @@ { stdenv, fetchurl, pkgconfig, zlib, libjpeg, libpng, libtiff, pam, openssl , dbus, libusb, acl }: -let version = "1.4.6"; in +let version = "1.4.7"; in stdenv.mkDerivation { name = "cups-${version}"; + passthru = { inherit version; }; + src = fetchurl { url = "http://ftp.easysw.com/pub/cups/${version}/cups-${version}-source.tar.bz2"; - sha256 = "056mdbz0g1jjihk03xjyp4f1bxl2aksf2vzra1qjrdbp59q131zh"; + sha256 = "1xlnkdqldq81pdqgisqbyh92k249bzz35m1f5bp4la06p00ksvjf"; }; buildInputs = [ pkgconfig zlib libjpeg libpng libtiff pam dbus libusb acl ]; diff --git a/pkgs/misc/cups/pdf-filter.nix b/pkgs/misc/cups/pdf-filter.nix index ab978068e175..50f117a65341 100644 --- a/pkgs/misc/cups/pdf-filter.nix +++ b/pkgs/misc/cups/pdf-filter.nix @@ -1,14 +1,9 @@ { stdenv, fetchurl, pkgconfig, cups, poppler }: -let version = "1.4.5"; in - stdenv.mkDerivation { - name = "cups-pdf-filter-${version}"; + name = "cups-pdf-filter-${cups.version}"; - src = fetchurl { - url = "http://ftp.easysw.com/pub/cups/${version}/cups-${version}-source.tar.bz2"; - sha256 = "1zhf3hvx11i0qnbwyybmdhx4fxkxfd4ch69k59fj5bz8wvcdcl04"; - }; + inherit (cups) src; buildInputs = [ pkgconfig cups poppler ]; diff --git a/pkgs/misc/emulators/VisualBoyAdvance/default.nix b/pkgs/misc/emulators/VisualBoyAdvance/default.nix new file mode 100644 index 000000000000..964a0491adb4 --- /dev/null +++ b/pkgs/misc/emulators/VisualBoyAdvance/default.nix @@ -0,0 +1,23 @@ +{stdenv, fetchurl, zlib, libpng, SDL, nasm}: + +stdenv.mkDerivation { + name = "VisualBoyAdvance-1.7.2"; + src = fetchurl { + url = mirror://sourceforge/vba/VisualBoyAdvance-src-1.7.2.tar.gz; + sha256 = "1dr9w5i296dyq2gbx7sijk6p375aqnwld2n6rwnbzm2g3a94y4gl"; + }; + patches = [ ./fix.diff ]; # patch to shut up lost of precision errors + preConfigure = '' + # Fix errors with invalid conversion from 'const char*' to 'char*' + sed -i -e "s|char \* p = strrchr|const char * p = strrchr|g" src/GBA.cpp + sed -i -e "s|char \* p = strrchr|const char * p = strrchr|g" src/Util.cpp + ''; + buildInputs = [ zlib libpng SDL ] ++ stdenv.lib.optional (stdenv.system == "i686-linux") nasm; + + meta = { + description = "A Game Boy/Game Boy Color/Game Boy Advance Emulator"; + license = "GPLv2+"; + maintainers = [ stdenv.lib.maintainers.sander ]; + homepage = http://vba.ngemu.com; + }; +} diff --git a/pkgs/misc/emulators/VisualBoyAdvance/fix.diff b/pkgs/misc/emulators/VisualBoyAdvance/fix.diff new file mode 100644 index 000000000000..646db9c45e66 --- /dev/null +++ b/pkgs/misc/emulators/VisualBoyAdvance/fix.diff @@ -0,0 +1,31 @@ +diff -urN ../tmp-orig/visualboyadvance-1.7.2/src/sdl/debugger.cpp +./src/sdl/debugger.cpp +--- ../tmp-orig/visualboyadvance-1.7.2/src/sdl/debugger.cpp 2004-05-13 +16:13:14.000000000 +0200 ++++ ./src/sdl/debugger.cpp 2005-03-21 21:57:06.000000000 +0100 +@@ -950,9 +950,9 @@ + { + u32 address = 0; + if(mem >= (u32*)&workRAM[0] && mem <= (u32*)&workRAM[0x3ffff]) +- address = 0x2000000 + ((u32)mem - (u32)&workRAM[0]); ++ address = 0x2000000 + ((unsigned long)mem - (unsigned long)&workRAM[0]); + else +- address = 0x3000000 + ((u32)mem - (u32)&internalRAM[0]); ++ address = 0x3000000 + ((unsigned long)mem - (unsigned long)&internalRAM[0]); + + if(size == 2) + printf("Breakpoint (on write) address %08x old:%08x new:%08x\n", +diff -urN ../tmp-orig/visualboyadvance-1.7.2/src/prof/prof.cpp +./src/prof/prof.cpp +--- ../tmp-orig/visualboyadvance-1.7.2/src/prof/prof.cpp 2004-05-13 +16:31:58.000000000 +0200 ++++ ./src/prof/prof.cpp 2005-03-21 21:56:27.000000000 +0100 +@@ -266,7 +266,7 @@ + for (toindex=froms[fromindex]; toindex!=0; toindex=tos[toindex].link) { + if(profWrite8(fd, GMON_TAG_CG_ARC) || + profWrite32(fd, (u32)frompc) || +- profWrite32(fd, (u32)tos[toindex].selfpc) || ++ profWrite32(fd, (unsigned long)tos[toindex].selfpc) || + profWrite32(fd, tos[toindex].count)) { + systemMessage(0, "mcount: arc"); + fclose(fd); diff --git a/pkgs/misc/emulators/mupen64plus/default.nix b/pkgs/misc/emulators/mupen64plus/default.nix new file mode 100644 index 000000000000..d67121fe430a --- /dev/null +++ b/pkgs/misc/emulators/mupen64plus/default.nix @@ -0,0 +1,33 @@ +{stdenv, fetchurl, which, pkgconfig, SDL, gtk, mesa, SDL_ttf}: + +stdenv.mkDerivation { + name = "mupen64plus-1.5"; + src = fetchurl { + url = http://mupen64plus.googlecode.com/files/Mupen64Plus-1-5-src.tar.gz; + sha256 = "0gygfgyr2sg4yx77ijk133d1ra0v1yxi4xjxrg6kp3zdjmhdmcjq"; + }; + + buildInputs = [ which pkgconfig SDL gtk mesa SDL_ttf ]; + + preConfigure = '' + # Some C++ incompatibility fixes + sed -i -e 's|char \* extstr = strstr|const char * extstr = strstr|' glide64/Main.cpp + sed -i -e 's|char \* extstr = strstr|const char * extstr = strstr|' glide64/Combine.cpp + + # Fix some hardcoded paths + sed -i -e "s|/usr/local|$out|g" main/main.c + + # Remove PATH environment variable from install script + sed -i -e "s|export PATH=|#export PATH=|" ./install.sh + ''; + + buildPhase = "make all"; + installPhase = "PREFIX=$out make install"; + + meta = { + description = "A Nintendo 64 Emulator"; + license = "GPLv2+"; + homepage = http://code.google.com/p/mupen64plus; + maintainers = [ stdenv.lib.maintainers.sander ]; + }; +} diff --git a/pkgs/misc/emulators/uae/default.nix b/pkgs/misc/emulators/uae/default.nix index ad68be11e950..9f93c9957d65 100644 --- a/pkgs/misc/emulators/uae/default.nix +++ b/pkgs/misc/emulators/uae/default.nix @@ -8,4 +8,11 @@ stdenv.mkDerivation { }; configureFlags = [ "--with-sdl" "--with-sdl-sound" "--with-sdl-gfx" "--with-alsa" ]; buildInputs = [ pkgconfig gtk alsaLib SDL ]; + + meta = { + description = "Ultimate/Unix/Unusuable Amiga Emulator"; + license = "GPLv2+"; + homepage = http://www.amigaemulator.org; + maintainers = [ stdenv.lib.maintainers.sander ]; + }; } diff --git a/pkgs/misc/emulators/vice/default.nix b/pkgs/misc/emulators/vice/default.nix index 293fe43d0653..425080d7c625 100644 --- a/pkgs/misc/emulators/vice/default.nix +++ b/pkgs/misc/emulators/vice/default.nix @@ -36,7 +36,7 @@ stdenv.mkDerivation rec { meta = { description = "Commodore 64, 128 and other emulators"; homepage = http://www.viceteam.org; - license = "GPL"; + license = "GPLv2+"; maintainers = [ lib.maintainers.sander ]; }; } diff --git a/pkgs/misc/emulators/wine/src-for-default.nix b/pkgs/misc/emulators/wine/src-for-default.nix index 8a742072fdea..b6669843896a 100644 --- a/pkgs/misc/emulators/wine/src-for-default.nix +++ b/pkgs/misc/emulators/wine/src-for-default.nix @@ -1,9 +1,9 @@ rec { - version="1.3.22"; - name="wine-1.3.22"; - hash="11m5m6dc2hx3nhjwlcxy8z880612aa4qh7ph6fanycby1ha5rh47"; + version="1.3.27"; + name="wine-1.3.27"; + hash="1vdyxlsl2zlhlcl5npq59axlkvjmkp7yz5p9rvwkqia79xrs8qv1"; url="http://prdownloads.sourceforge.net/wine/wine-${version}.tar.bz2"; - advertisedUrl="http://prdownloads.sourceforge.net/wine/wine-1.3.22.tar.bz2"; + advertisedUrl="http://prdownloads.sourceforge.net/wine/wine-1.3.27.tar.bz2"; } diff --git a/pkgs/misc/emulators/zsnes/default.nix b/pkgs/misc/emulators/zsnes/default.nix index d878d34184a8..0b34fc0f9fec 100644 --- a/pkgs/misc/emulators/zsnes/default.nix +++ b/pkgs/misc/emulators/zsnes/default.nix @@ -31,6 +31,8 @@ stdenv.mkDerivation { meta = { description = "A Super Nintendo Entertainment System Emulator"; - license = "GPLv2"; + license = "GPLv2+"; + maintainers = [ stdenv.lib.maintainers.sander ]; + homepage = http://www.zsnes.com; }; } \ No newline at end of file diff --git a/pkgs/misc/ghostscript/default.nix b/pkgs/misc/ghostscript/default.nix index 2068f9fa221b..442fb8a0e50d 100644 --- a/pkgs/misc/ghostscript/default.nix +++ b/pkgs/misc/ghostscript/default.nix @@ -38,10 +38,10 @@ let }; mainlineData = { - name = "ghostscript-9.02"; + name = "ghostscript-9.04"; src = fetchurl { - url = http://downloads.ghostscript.com/public/ghostscript-9.02.tar.bz2; - sha256 = "0np0kr02bsqzag9sdbcg2kkjda0rjsvi484ic28qyvx32fnjrsh3"; + url = http://downloads.ghostscript.com/public/ghostscript-9.04.tar.bz2; + sha256 = "1i0bsfzwppzk112vy62ydz927m9dlc1wvywanzi09hnk9as20b7q"; }; meta = meta // { homepage = http://www.ghostscript.com/; diff --git a/pkgs/misc/misc.nix b/pkgs/misc/misc.nix index a0b13751f717..15ea4f8bcc1e 100644 --- a/pkgs/misc/misc.nix +++ b/pkgs/misc/misc.nix @@ -6,18 +6,16 @@ in { - /* - - usage example creating a derivation installing ruby, sup and a lib: - - packageOverrides = { - rubyCollection = collection { - name = "ruby"; - list = let l = rubyLibs; in - [ pkgs.ruby l.chronic l.sup ]; - }; - } - + /* + Usage example creating a derivation installing ruby, sup and a lib: + + packageOverrides = { + rubyCollection = collection { + name = "ruby"; + list = let l = rubyLibs; in + [ pkgs.ruby l.chronic l.sup ]; + }; + } */ collection = {list, name} : runCommand "collection-${name}" {} '' mkdir -p $out/nix-support diff --git a/pkgs/misc/themes/gtk2/oxygen-gtk/default.nix b/pkgs/misc/themes/gtk2/oxygen-gtk/default.nix index 7679d0ead368..c6aa7baea2fe 100644 --- a/pkgs/misc/themes/gtk2/oxygen-gtk/default.nix +++ b/pkgs/misc/themes/gtk2/oxygen-gtk/default.nix @@ -1,17 +1,19 @@ -{ stdenv, fetchurl, - cmake, glib, gtk, pkgconfig }: +{ stdenv, fetchurl, + cmake, dbus_glib, glib, gtk, gtkLibs, pkgconfig, xorg }: stdenv.mkDerivation rec { - version = "1.0.1"; - name = "oxygen-gtk-${version}"; + version = "1.1.1"; + name = "oxygen-gtk-${version}"; src = fetchurl { url = "mirror://kde/stable/oxygen-gtk/${version}/src/${name}.tar.bz2"; - sha256 = "0ki8qllr5ai48bl2pz8rxzf5cax08ckhgrn0nlf815ba83jfar32"; + sha256 = "66d571f08ec999f56de412f42a0395c9dc60b73adaaece96c6da6e98353fe379"; }; - - buildInputs = [ cmake glib gtk pkgconfig ]; - + + buildInputs = [ cmake dbus_glib glib gtk gtkLibs.gdk_pixbuf + pkgconfig xorg.libXau xorg.libXdmcp xorg.libpthreadstubs + xorg.libxcb xorg.pixman ]; + meta = with stdenv.lib; { description = "Port of the default KDE widget theme (Oxygen), to gtk"; homepage = https://projects.kde.org/projects/playground/artwork/oxygen-gtk; |