Merge from trunk up through r28790

svn path=/nixpkgs/branches/stdenv-updates/; revision=28792
This commit is contained in:
Shea Levy 2011-08-24 19:16:43 +00:00
commit 4d70ba6cc9
2168 changed files with 42927 additions and 19027 deletions

View file

@ -470,7 +470,7 @@ Additional file types can be supported by setting the
<section><title>The configure phase</title>
<para>The configure phase prepares the source tree for building. The
default <function>unpackPhase</function> runs
default <function>configurePhase</function> runs
<filename>./configure</filename> (typically an Autoconf-generated
script) if it exists.</para>
@ -879,7 +879,7 @@ distribution of the package. The default
<function>distPhase</function> first calls <command>make
dist</command>, then it copies the resulting source tarballs to
<filename>$out/tarballs/</filename>. This phase is only executed if
the attribute <varname>doDist</varname> is not set.</para>
the attribute <varname>doDist</varname> is set.</para>
<variablelist>
<title>Variables controlling the distribution phase</title>

View file

@ -5,7 +5,7 @@ exec ${GUILE-guile} -L "$PWD" -l "$0" \
-c "(apply $main (command-line))" "$@"
!#
;;; GNUpdate -- Update GNU packages in Nixpkgs.
;;; Copyright (C) 2010 Ludovic Courtès <ludo@gnu.org>
;;; Copyright (C) 2010, 2011 Ludovic Courtès <ludo@gnu.org>
;;;
;;; This program is free software: you can redistribute it and/or modify
;;; it under the terms of the GNU General Public License as published by
@ -28,6 +28,7 @@ exec ${GUILE-guile} -L "$PWD" -l "$0" \
#:use-module (ice-9 popen)
#:use-module (ice-9 match)
#:use-module (ice-9 rdelim)
#:use-module (ice-9 format)
#:use-module (ice-9 regex)
#:use-module (ice-9 vlist)
#:use-module (srfi srfi-1)
@ -116,8 +117,19 @@ exec ${GUILE-guile} -L "$PWD" -l "$0" \
(if (pair? body)
(values `(derivation ,drv-path ,out-path ,(cdr body))
derivations)
(error "no previous occurrence of derivation"
drv-path)))
;; DRV-PATH hasn't been encountered yet but may be later
;; (see <http://article.gmane.org/gmane.linux.distributions.nixos/5946>.)
;; Return an `unresolved' node.
(values `(unresolved
,(lambda (derivations)
(let ((body (vhash-assoc drv-path derivations)))
(if (pair? body)
`(derivation ,drv-path ,out-path
,(cdr body))
(error "no previous occurrence of derivation"
drv-path)))))
derivations)))
(values `(derivation ,drv-path ,out-path ,body)
(vhash-cons drv-path body derivations)))))
((ellipsis)
@ -145,6 +157,32 @@ exec ${GUILE-guile} -L "$PWD" -l "$0" \
(values `(varpat ,(assq-ref attributes 'name)) derivations))
(else (error "unhandled Nix XML element" elem))))
(define (resolve snix derivations)
"Return a new SNix tree where `unresolved' nodes from SNIX have been
replaced by the result of their application to DERIVATIONS, a vhash."
(let loop ((node snix)
(seen vlist-null))
(if (vhash-assq node seen)
(values node seen)
(match node
(('unresolved proc)
(let ((n (proc derivations)))
(values n seen)))
((tag body ...)
(let ((body+seen (fold (lambda (n body+seen)
(call-with-values
(lambda ()
(loop n (cdr body+seen)))
(lambda (n* seen)
(cons (cons n* (car body+seen))
(vhash-consq n #t seen)))))
(cons '() (vhash-consq node #t seen))
body)))
(values (cons tag (reverse (car body+seen)))
(vhash-consq node #t (cdr body+seen)))))
(anything
(values anything seen))))))
(define xml->snix
;; Return the SNix represention of TREE, an SXML tree as returned by
;; parsing the XML output of `nix-instantiate' on Nixpkgs.
@ -172,9 +210,9 @@ exec ${GUILE-guile} -L "$PWD" -l "$0" \
;; Discard inter-node strings, which are blanks.
seed))))
(lambda (port)
;; Discard the second value returned by the parser (the derivation
;; vhash).
(caar (parse port (cons '() vlist-null))))))
(match (parse port (cons '() vlist-null))
(((snix) . derivations)
(resolve snix derivations))))))
(define (call-with-package snix proc)
(match snix
@ -277,18 +315,27 @@ exec ${GUILE-guile} -L "$PWD" -l "$0" \
"--strict" "--eval-only" "--xml"
script)))
(define (pipe-failed? pipe)
"Close pipe and return its status if it failed."
(let ((status (close-pipe pipe)))
(if (or (status:term-sig status)
(not (= (status:exit-val status) 0)))
status
#f)))
(define (nix-prefetch-url url)
;; Download URL in the Nix store and return the base32-encoded SHA256 hash
;; of the file at URL
(let* ((pipe (open-pipe* OPEN_READ "nix-prefetch-url" url))
(hash (read-line pipe)))
(close-pipe pipe)
(if (eof-object? hash)
(if (or (pipe-failed? pipe)
(eof-object? hash))
(values #f #f)
(let* ((pipe (open-pipe* OPEN_READ "nix-store" "--print-fixed-path"
"sha256" hash (basename url)))
"sha256" hash (basename url)))
(path (read-line pipe)))
(if (eof-object? path)
(if (or (pipe-failed? pipe)
(eof-object? path))
(values #f #f)
(values (string-trim-both hash) (string-trim-both path)))))))
@ -478,8 +525,14 @@ exec ${GUILE-guile} -L "$PWD" -l "$0" \
(throw 'ftp-error conn "LIST" code)))))
(else
(loop (read-line s)
(let ((file (car (reverse (string-tokenize line)))))
(cons file result)))))))
(match (reverse (string-tokenize line))
((file _ ... permissions)
(let ((type (case (string-ref permissions 0)
((#\d) 'directory)
(else 'file))))
(cons (list file type) result)))
((file _ ...)
(cons (cons file 'file) result))))))))
(lambda ()
(close s)
(let-values (((code message) (%ftp-listen (ftp-connection-socket conn))))
@ -498,10 +551,11 @@ exec ${GUILE-guile} -L "$PWD" -l "$0" \
"automake17x"
"automake19x"
"automake110x"
"automake" ;; = 1.10.x
"bison1875"
"bison23"
"bison" ;; = 2.3
"bison24"
"bison" ;; = 2.4
"ccrtp_1_8"
"emacs22"
"emacsSnapshot"
"gcc295"
@ -513,10 +567,24 @@ exec ${GUILE-guile} -L "$PWD" -l "$0" \
"gcc43"
"gcc44"
"gcc45"
"gcc45_real"
"gcc45_realCross"
"gfortran45"
"gcj45"
"gcc46"
"gcc46_real"
"gcc46_realCross"
"gfortran46"
"gcj46"
"glibc25"
"glibc27"
"glibc29"
"guile_1_9"
"guile_1_8"
"icecat3Xul" ;; redundant with `icecat'
"icecatWrapper"
"icecatXulrunner3"
"libzrtpcpp_1_6"
"parted_2_3"
))
(define (gnu? package)
@ -558,15 +626,18 @@ exec ${GUILE-guile} -L "$PWD" -l "$0" \
(define (ftp-server/directory project)
(define quirks
'(("commoncpp2" "ftp.gnu.org" "/gnu/commoncpp" #f)
("ucommon" "ftp.gnu.org" "/gnu/commoncpp" #f)
("libzrtpcpp" "ftp.gnu.org" "/gnu/ccrtp" #f)
("libosip2" "ftp.gnu.org" "/gnu/osip" #f)
("libgcrypt" "ftp.gnupg.org" "/gcrypt" #t)
("libgpg-error" "ftp.gnupg.org" "/gcrypt" #t)
("freefont-ttf" "ftp.gnu.org" "/gnu/freefont" #f)
("gnupg" "ftp.gnupg.org" "/gcrypt" #t)
("gnu-ghostscript" "ftp.gnu.org" "/gnu/ghostscript" #f)
("grub" "alpha.gnu.org" "/gnu" #t)
("GNUnet" "ftp.gnu.org" "/gnu/gnunet" #f)
("mit-scheme" "ftp.gnu.org" "/gnu/mit-scheme/stable.pkg")
("mit-scheme" "ftp.gnu.org" "/gnu/mit-scheme/stable.pkg" #f)
("icecat" "ftp.gnu.org" "/gnu/gnuzilla" #f)
("source-highlight" "ftp.gnu.org" "/gnu/src-highlite" #f)
("TeXmacs" "ftp.texmacs.org" "/TeXmacs/targz" #f)))
(let ((quirk (assoc project quirks)))
@ -594,40 +665,65 @@ exec ${GUILE-guile} -L "$PWD" -l "$0" \
(or (assoc-ref quirks project) project))
(define (releases project)
;; TODO: Handle project release trees like that of IceCat and MyServer.
"Return the list of releases of PROJECT as a list of release name/directory
pairs. Example: (\"mit-scheme-9.0.1\" . \"/gnu/mit-scheme/stable.pkg/9.0.1\"). "
;; TODO: Parse something like fencepost.gnu.org:/gd/gnuorg/packages-ftp.
(define release-rx
(make-regexp (string-append "^" project "-[0-9].*\\.tar\\.")))
(make-regexp (string-append "^" project
"-([0-9]|[^-])*(-src)?\\.tar\\.")))
(catch #t
(define alpha-rx
(make-regexp "^.*-.*[0-9](-|~)?(alpha|beta|rc|cvs|svn|git)-?[0-9\\.]*\\.tar\\."))
(define (sans-extension tarball)
(let ((end (string-contains tarball ".tar")))
(substring tarball 0 end)))
(catch 'ftp-error
(lambda ()
(let-values (((server directory) (ftp-server/directory project)))
(let* ((conn (ftp-open server))
(files (ftp-list conn directory)))
(ftp-close conn)
(map (lambda (tarball)
(let ((end (string-contains tarball ".tar")))
(substring tarball 0 end)))
(define conn (ftp-open server))
;; Filter out signatures, deltas, and files which are potentially
;; not releases of PROJECT (e.g., in /gnu/guile, filter out
;; guile-oops and guile-www).
(filter (lambda (file)
(and (not (string-suffix? ".sig" file))
(regexp-exec release-rx file)))
files)))))
(let loop ((directories (list directory))
(result '()))
(if (null? directories)
(begin
(ftp-close conn)
result)
(let* ((directory (car directories))
(files (ftp-list conn directory))
(subdirs (filter-map (lambda (file)
(match file
((name 'directory . _) name)
(_ #f)))
files)))
(loop (append (map (cut string-append directory "/" <>)
subdirs)
(cdr directories))
(append
;; Filter out signatures, deltas, and files which are potentially
;; not releases of PROJECT (e.g., in /gnu/guile, filter out
;; guile-oops and guile-www; in mit-scheme, filter out
;; binaries).
(filter-map (lambda (file)
(match file
((file 'file . _)
(and (not (string-suffix? ".sig" file))
(regexp-exec release-rx file)
(not (regexp-exec alpha-rx file))
(let ((s (sans-extension file)))
(and (regexp-exec
%package-name-rx s)
(cons s directory)))))
(_ #f)))
files)
result)))))))
(lambda (key subr message . args)
(format (current-error-port)
"failed to get release list for `~A': ~A ~A~%"
"failed to get release list for `~A': ~S ~S~%"
project message args)
'())))
(define pointer->procedure
;; Compatibility hack for Guile up to 1.9.12 included.
(if (defined? 'pointer->procedure)
pointer->procedure
make-foreign-function))
(define version-string>?
(let ((strverscmp
(let ((sym (or (dynamic-func "strverscmp" (dynamic-link))
@ -637,53 +733,64 @@ exec ${GUILE-guile} -L "$PWD" -l "$0" \
(> (strverscmp (string->pointer a) (string->pointer b)) 0))))
(define (latest-release project)
;; Return "FOO-X.Y" or #f.
"Return (\"FOO-X.Y\" . \"/bar/foo\") or #f."
(let ((releases (releases project)))
(and (not (null? releases))
(fold (lambda (release latest)
(if (version-string>? release latest)
(if (version-string>? (car release) (car latest))
release
latest))
""
'("" . "")
releases))))
(define %package-name-rx
;; Regexp for a package name, e.g., "foo-X.Y". Since TeXmacs uses
;; "TeXmacs-X.Y-src", the `-src' suffix is allowed.
(make-regexp "^(.*)-(([0-9]|\\.)+)(-src)?"))
(define (package/version name+version)
(let ((hyphen (string-rindex name+version #\-)))
(if (not hyphen)
"Return the package name and version number extracted from NAME+VERSION."
(let ((match (regexp-exec %package-name-rx name+version)))
(if (not match)
(values name+version #f)
(let ((name (substring name+version 0 hyphen))
(version (substring name+version (+ hyphen 1)
(string-length name+version))))
(values name version)))))
(values (match:substring match 1) (match:substring match 2)))))
(define (file-extension file)
(let ((dot (string-rindex file #\.)))
(and dot (substring file (+ 1 dot) (string-length file)))))
(define (packages-to-update gnu-packages)
(define (unpack latest)
(call-with-values (lambda ()
(package/version (car latest)))
(lambda (name version)
(list name version (cdr latest)))))
(fold (lambda (pkg result)
(call-with-package pkg
(lambda (attribute name+version location meta src)
(let-values (((name old-version)
(package/version name+version)))
(let ((latest (latest-release (nixpkgs->gnu-name name))))
(cond ((not latest)
(format #t "~A [unknown latest version]~%"
name+version)
result)
((string=? name+version latest)
(if (not latest)
(begin
(format #t "~A [unknown latest version]~%"
name+version)
result)
(match (unpack latest)
((_ (? (cut string=? old-version <>)) _)
(format #t "~A [up to date]~%" name+version)
result)
(else
(let-values (((project new-version)
(package/version latest))
((old-name old-hash old-urls)
((project new-version directory)
(let-values (((old-name old-hash old-urls)
(src->values src)))
(format #t "~A -> ~A [~A]~%" name+version latest
(format #t "~A -> ~A [~A]~%"
name+version (car latest)
(and (pair? old-urls) (car old-urls)))
(let* ((url (and (pair? old-urls)
(car old-urls)))
(new-hash (fetch-gnu project new-version
(new-hash (fetch-gnu project directory
new-version
(if url
(file-extension url)
"gz"))))
@ -691,39 +798,38 @@ exec ${GUILE-guile} -L "$PWD" -l "$0" \
old-version old-hash
new-version new-hash
location)
result))))))))))
result)))))))))))
'()
gnu-packages))
(define (fetch-gnu project version archive-type)
(let-values (((server directory)
(ftp-server/directory project)))
(let* ((base (string-append project "-" version ".tar." archive-type))
(url (string-append "ftp://" server "/" directory "/" base))
(sig (string-append base ".sig"))
(sig-url (string-append url ".sig")))
(let-values (((hash path) (nix-prefetch-url url)))
(pk 'prefetch-url url hash path)
(and hash path
(begin
(false-if-exception (delete-file sig))
(system* "wget" sig-url)
(if (file-exists? sig)
(let ((ret (system* "gpg" "--verify" sig path)))
(false-if-exception (delete-file sig))
(if (and ret (= 0 (status:exit-val ret)))
hash
(begin
(format (current-error-port)
"signature verification failed for `~a'~%"
base)
(format (current-error-port)
"(could be because the public key is not in your keyring)~%")
#f)))
(begin
(format (current-error-port)
"no signature for `~a'~%" base)
hash))))))))
(define (fetch-gnu project directory version archive-type)
(let* ((server (ftp-server/directory project))
(base (string-append project "-" version ".tar." archive-type))
(url (string-append "ftp://" server "/" directory "/" base))
(sig (string-append base ".sig"))
(sig-url (string-append url ".sig")))
(let-values (((hash path) (nix-prefetch-url url)))
(pk 'prefetch-url url hash path)
(and hash path
(begin
(false-if-exception (delete-file sig))
(system* "wget" sig-url)
(if (file-exists? sig)
(let ((ret (system* "gpg" "--verify" sig path)))
(false-if-exception (delete-file sig))
(if (and ret (= 0 (status:exit-val ret)))
hash
(begin
(format (current-error-port)
"signature verification failed for `~a'~%"
base)
(format (current-error-port)
"(could be because the public key is not in your keyring)~%")
#f)))
(begin
(format (current-error-port)
"no signature for `~a'~%" base)
hash)))))))
;;;
@ -769,20 +875,31 @@ exec ${GUILE-guile} -L "$PWD" -l "$0" \
(define (gnupdate . args)
;; Assume Nixpkgs is under $NIXPKGS or ~/src/nixpkgs.
(define (nixpkgs->snix xml-file)
(format (current-error-port) "evaluating Nixpkgs...~%")
(let* ((home (getenv "HOME"))
(xml (if xml-file
(open-input-file xml-file)
(open-nixpkgs (or (getenv "NIXPKGS")
(string-append home "/src/nixpkgs")))))
(snix (xml->snix xml)))
(if (not xml-file)
(let ((status (pipe-failed? xml)))
(if status
(begin
(format (current-error-port) "`nix-instantiate' failed: ~A~%"
status)
(exit 1)))))
snix))
(let* ((opts (args-fold (cdr args) %options
(lambda (opt name arg result)
(error "unrecognized option `~A'" name))
(lambda (operand result)
(error "extraneous argument `~A'" operand))
'()))
(home (getenv "HOME"))
(path (or (getenv "NIXPKGS")
(string-append home "/src/nixpkgs")))
(snix (begin
(format (current-error-port) "parsing XML...~%")
(xml->snix
(or (and=> (assoc-ref opts 'xml-file) open-input-file)
(open-nixpkgs path)))))
(snix (nixpkgs->snix (assoc-ref opts 'xml-file)))
(packages (match snix
(('snix _ ('attribute-set attributes))
attributes)
@ -826,3 +943,7 @@ exec ${GUILE-guile} -L "$PWD" -l "$0" \
(_ #f)))
updates)
#t))
;;; Local Variables:
;;; eval: (put 'call-with-package 'scheme-indent-function 1)
;;; End:

View file

@ -6,11 +6,11 @@ stdenv.mkDerivation rec {
name = "${pname}-${version}";
pname = "amarok";
version = "2.3.2";
version = "2.4.3";
src = fetchurl {
url = "mirror://kde/stable/${pname}/${version}/src/${name}.tar.bz2";
sha256 = "0dw2928vkd42h3d8nsb8i4xhp8qfj1zsfc1m9wrzrsxl0vd6j9c4";
sha256 = "0242psqci1b6wfhrrds14h4c4qin9s83cxk1259d9hqcsgn4ir3c";
};
QT_PLUGIN_PATH="${qtscriptgenerator}/lib/qt4/plugins";

View file

@ -0,0 +1,37 @@
{ stdenv, fetchgit, fetchgitrevision
, lib, cmake, qt4, qtscriptgenerator, perl, gettext, curl
, libxml2, mysql, taglib, taglib_extras, loudmouth , kdelibs, automoc4, phonon
, strigi, soprano, qca2, libmtp, liblastfm, libgpod, pkgconfig
, repository ? "git://git.kde.org/amarok"
, branch ? "heads/master"
, rev ? fetchgitrevision repository branch
, src ? fetchgit {
url = repository;
rev = rev;
}
}:
stdenv.mkDerivation rec {
name = "${pname}-${version}";
pname = "amarok";
version = "live";
inherit src;
QT_PLUGIN_PATH="${qtscriptgenerator}/lib/qt4/plugins";
buildInputs = [ cmake qt4 qtscriptgenerator perl stdenv.gcc.libc gettext curl
libxml2 mysql taglib taglib_extras loudmouth kdelibs automoc4 phonon strigi
soprano qca2 libmtp liblastfm libgpod pkgconfig ];
postInstall = ''
mkdir -p $out/nix-support
echo ${qtscriptgenerator} > $out/nix-support/propagated-user-env-packages
'';
meta = {
description = "Popular music player for KDE";
license = "GPL";
homepage = http://amarok.kde.org;
inherit (kdelibs.meta) maintainers;
};
}

View file

@ -0,0 +1,48 @@
{ stdenv, fetchsvn, alsaLib, aubio, boost, cairomm, curl, fftw,
fftwSinglePrec, flac, glib, glibmm, gtk, gtkmm, jackaudio,
libgnomecanvas, libgnomecanvasmm, liblo, libmad, libogg, librdf,
librdf_raptor, librdf_rasqal, libsamplerate, libsigcxx, libsndfile,
libusb, libuuid, libxml2, libxslt, pango, perl, pkgconfig, python }:
let
rev = "9942";
in
stdenv.mkDerivation {
name = "ardour3-svn-${rev}";
src = fetchsvn {
url = http://subversion.ardour.org/svn/ardour2/branches/3.0;
inherit rev;
sha256 = "5f463e5a67bcb1ee6b4d24c25307419ea14ce52130819054b775e377c31a0664";
};
buildInputs = [ alsaLib aubio boost cairomm curl fftw fftwSinglePrec
flac glib glibmm gtk gtkmm jackaudio libgnomecanvas
libgnomecanvasmm liblo libmad libogg librdf librdf_raptor
librdf_rasqal libsamplerate libsigcxx libsndfile libusb libuuid
libxml2 libxslt pango perl pkgconfig python ];
patchPhase = ''
printf '#include "ardour/svn_revision.h"\nnamespace ARDOUR { const char* svn_revision = \"${rev}\"; }\n' > libs/ardour/svn_revision.cc
sed -e 's|^#!/usr/bin/perl.*$|#!${perl}/bin/perl|g' -i tools/fmt-bindings
sed -e 's|^#!/usr/bin/env.*$|#!${perl}/bin/perl|g' -i tools/*.pl
'';
configurePhase = "python waf configure --prefix=$out";
buildPhase = "python waf";
installPhase = "python waf install";
meta = with stdenv.lib; {
description = "Multi-track hard disk recording software";
longDescription = ''
Also read "The importance of Paying Something" on their homepage, please!
'';
homepage = http://ardour.org/;
license = licenses.gpl2;
platforms = platforms.linux;
maintainers = [ maintainers.goibhniu ];
};
}

View file

@ -4,20 +4,20 @@
}:
stdenv.mkDerivation rec {
name = "audacious-2.4.0";
name = "audacious-3.0";
src = fetchurl {
url = "http://distfiles.atheme.org/${name}.tgz";
sha256 = "1n6mfy2j7lqv5d9r92n1frbs7acplfip5vssqp0j9z5qkidx98pj";
url = "http://distfiles.atheme.org/${name}.tar.gz";
sha256 = "0kj78hgf73fmbm6y3idir2kavbnnlv0jb9ka0pcsb12sxb994s68";
};
pluginsSrc = fetchurl {
url = "http://distfiles.atheme.org/audacious-plugins-2.4.0.tgz";
sha256 = "04rsfh7c54ffz6qavl3li5haa7jnaa42m4p1w0s4qpiiw3pvbaf5";
url = "http://distfiles.atheme.org/audacious-plugins-3.0.tar.gz";
sha256 = "0hhxk1mxnnrb1shshpf1nf8mqpc9q1qpsljwn4jzylcnwy6pq4rw";
};
# `--enable-amidiplug' is to prevent configure from looking in /proc/asound.
configureFlags = "--enable-amidiplug";
configureFlags = "--enable-amidiplug --disable-oss";
buildInputs =
[ gettext pkgconfig glib gtk libmowgli libmcs libxml2 dbus_glib
@ -46,6 +46,8 @@ stdenv.mkDerivation rec {
)
'';
enableParallelBuilding = true;
meta = {
description = "Audacious, a media player forked from the Beep Media Player, which was itself an XMMS fork";
homepage = http://audacious-media-player.org/;

View file

@ -1,22 +1,31 @@
{ stdenv, fetchurl, wxGTK, pkgconfig, gettext, gtk, glib, zlib, perl, intltool,
libogg, libvorbis, libmad
libogg, libvorbis, libmad, alsaLib, libsndfile, libsamplerate, flac, lame,
expat, id3lib, ffmpeg, portaudio
}:
stdenv.mkDerivation {
name = "audacity-1.3.7";
stdenv.mkDerivation rec {
version = "1.3.13";
name = "audacity-${version}";
NIX_CFLAGS_COMPILE = "-fPIC -lgtk-x11-2.0 -lglib-2.0 -lgobject-2.0 -lz";
src = fetchurl {
url = mirror://sourceforge/audacity/audacity-fullsrc-1.3.7.tar.bz2;
sha256 = "0b4arafpdyjjk52l6n7aw518hzm65iv9w5g39jqr2bmvn6a9qivi";
url = "mirror://sourceforge/audacity/audacity-minsrc-${version}-beta.tar.bz2";
sha256 = "4c2eda638e16e16dfddd202e86ccbe1d170b04c26cfb2c12ffcba0b79e7e1e83";
};
buildInputs = [ wxGTK pkgconfig gettext gtk glib zlib intltool perl
libogg libvorbis libmad];
libogg libvorbis libmad alsaLib libsndfile libsamplerate flac lame
expat id3lib ffmpeg portaudio];
configureFlags = [
];
dontDisableStatic = true;
meta = {
description = "Sound editor with graphical UI";
homepage = http://audacity.sourceforge.net;
license = "GPLv2+";
platforms = with stdenv.lib.platforms; linux;
};
}

View file

@ -1,6 +0,0 @@
source $stdenv/setup
ensureDir "$out/lib/bmp/Input"
installFlags="install libdir=$out/lib/bmp/Input"
genericBuild

View file

@ -1,11 +0,0 @@
{stdenv, fetchurl, pkgconfig, bmp, libmpcdec, taglib}:
stdenv.mkDerivation {
name = "bmp-plugin-musepack-1.2";
builder = ./builder.sh;
src = fetchurl {
url = http://files2.musepack.net/linux/plugins/bmp-musepack-1.2.tar.bz2;
md5 = "5fe0c9d341ca37d05c780a478f829a5f";
};
buildInputs = [pkgconfig bmp libmpcdec taglib];
}

View file

@ -1,19 +0,0 @@
{stdenv, fetchurl, pkgconfig, bmp}:
stdenv.mkDerivation {
name = "bmp-plugin-wma-1.0.5";
src = fetchurl {
url = http://mcmcc.bat.ru/xmms-wma/xmms-wma-1.0.5.tar.bz2;
md5 = "5d62a0f969617aeb40096362c7a8a506";
};
buildInputs = [pkgconfig bmp];
buildFlags = "-f Makefile.bmp";
installPhase = ''
ensureDir "$out/lib/bmp/Input"
cp libwma.so "$out/lib/bmp/Input"
'';
}

View file

@ -1,21 +0,0 @@
{ stdenv, fetchurl, pkgconfig, alsaLib, esound, libogg, libvorbis, id3lib
, glib, gtk, libglade
}:
stdenv.mkDerivation {
name = "bmp-0.9.7.1";
src = fetchurl {
url = mirror://sourceforge/beepmp/bmp-0.9.7.1.tar.gz;
md5 = "c25d5a8d49cc5851d13d525a20023c4c";
};
buildInputs = [
pkgconfig alsaLib esound libogg libvorbis id3lib libglade
];
meta = {
description = "Beep Media Player, an XMMS fork";
};
propagatedBuildInputs = [glib gtk];
}

View file

@ -1,15 +1,15 @@
{stdenv, fetchurl}:
{ stdenv, fetchurl }:
stdenv.mkDerivation {
name = "cdparanoia-III-alpha9.8";
stdenv.mkDerivation rec {
name = "cdparanoia-III-10.2";
src = fetchurl {
url = http://downloads.xiph.org/releases/cdparanoia/cdparanoia-III-alpha9.8.src.tgz;
md5 = "7218e778b5970a86c958e597f952f193";
url = "http://downloads.xiph.org/releases/cdparanoia/${name}.src.tgz";
sha256 = "1pv4zrajm46za0f6lv162iqffih57a8ly4pc69f7y0gfyigb8p80";
};
patches = [./fix.patch];
meta = {
homepage = http://xiph.org/paranoia;
description = "A tool and library for reading digital audio from CDs";
};
}

View file

@ -1,46 +0,0 @@
*** cdparanoia-III-alpha9.8/interface/utils.h Thu Apr 20 00:41:04 2000
--- cdparanoia-III-alpha9.8-old/interface/utils.h Wed Jan 19 21:44:08 2005
***************
*** 110,117 ****
case CDDA_MESSAGE_LOGIT:
d->errorbuf=catstring(d->errorbuf,s);
break;
- case CDDA_MESSAGE_FORGETIT:
- default:
}
}
}
--- 110,115 ----
***************
*** 125,132 ****
case CDDA_MESSAGE_LOGIT:
d->messagebuf=catstring(d->messagebuf,s);
break;
- case CDDA_MESSAGE_FORGETIT:
- default:
}
}
}
--- 123,128 ----
***************
*** 167,174 ****
}
}
break;
- case CDDA_MESSAGE_FORGETIT:
- default:
}
}
if(malloced)free(buffer);
--- 163,168 ----
***************
*** 203,210 ****
if(!malloced)*messages=catstring(*messages,"\n");
}
break;
- case CDDA_MESSAGE_FORGETIT:
- default:
}
}
if(malloced)free(buffer);
--- 197,202 ----

View file

@ -0,0 +1,35 @@
{stdenv, fetchurl, SDL, SDL_gfx, SDL_image, tremor, flac, mpg123, libmikmod
, speex
, keymap ? "newdefault"
, conf ? "unknown"
}:
stdenv.mkDerivation rec {
name = "gmu-0.7.2";
src = fetchurl {
url = http://wejp.k.vu/files/gmu-0.7.2.tar.gz;
sha256 = "0gvhwhhlj64lc425wqch4g6v59ldd5i3rxll3zdcrdgk2vkh8nys";
};
buildInputs = [ SDL SDL_gfx SDL_image tremor flac mpg123 libmikmod speex ];
NIX_LDFLAGS = "-lgcc_s";
preBuild = ''
makeFlags="$makeFlags PREFIX=$out"
'';
postInstall = ''
cp ${keymap}.keymap $out/share/gmu/default.keymap
cp gmuinput.${conf}.conf $out/share/gmu/gmuinput.conf
ensureDir $out/etc/gmu
cp gmu.${conf}.conf $out/etc/gmu/gmu.conf
'';
meta = {
homepage = http://wejp.k.vu/projects/gmu;
description = "Open source music player for portable gaming consoles and handhelds";
license = "GPLv2";
};
}

View file

@ -0,0 +1,35 @@
{ stdenv, fetchurl,
alsaLib, boost, glib, jackaudio, libarchive, liblrdf, libsndfile,
pkgconfig, qt4, scons, subversion }:
stdenv.mkDerivation rec {
version = "0.9.5";
name = "hydrogen-${version}";
src = fetchurl {
url = "mirror://sourceforge/hydrogen/hydrogen-${version}.tar.gz";
sha256 = "1hyri49va2ss26skd6p9swkx0kbr7ggifbahkrcfgj8yj7pp6g4n";
};
buildInputs = [
alsaLib boost glib jackaudio libarchive liblrdf libsndfile
pkgconfig qt4 scons subversion
];
patches = [ ./scons-env.patch ];
# why doesn't scons find librdf?
buildPhase = ''
scons prefix=$out libarchive=1 lrdf=0 install
'';
installPhase = ":";
meta = with stdenv.lib; {
description = "Advanced drum machine";
homepage = http://www.hydrogen-music.org;
license = licenses.gpl2;
platforms = platforms.linux;
maintainers = [ maintainers.goibhniu ];
};
}

View file

@ -0,0 +1,20 @@
--- hydrogen-0.9.5/Sconstruct 2011-03-15 13:22:35.000000000 +0100
+++ hydrogen-0.9.5/Sconstruct 2011-04-17 16:06:54.000000000 +0200
@@ -178,7 +178,7 @@
includes.append( "libs/hydrogen/include" )
- env = Environment( options = opts )
+ env = Environment( options = opts, ENV = os.environ )
#location of qt4.py
@@ -379,7 +379,7 @@
includes, a , b = get_platform_flags( opts )
-env = Environment(options = opts, CPPPATH = includes)
+env = Environment(options = opts, ENV = os.environ)
Help(opts.GenerateHelpText(env))

View file

@ -0,0 +1,36 @@
{ stdenv, fetchurl, alsaLib, gtk, jackaudio, libuuid, libxml2
, makeWrapper, pkgconfig, readline }:
assert libuuid != null;
stdenv.mkDerivation rec {
name = "lash-${version}";
version = "0.5.4";
src = fetchurl {
url = "mirror://savannah/lash/${name}.tar.gz";
sha256 = "05kc4brcx8mncai0rj2gz4s4bsrsy9q8xlnaddf75i0m8jl7snhh";
};
patches = [ ./socket.patch ];
buildInputs = [ alsaLib gtk jackaudio libuuid libxml2 makeWrapper
pkgconfig readline ];
postInstall = ''
for i in lash_control lash_panel
do wrapProgram "$out/bin/$i" --prefix LD_LIBRARY_PATH ":" "${libuuid}/lib"
done
'';
meta = with stdenv.lib; {
description = "LASH Audio Session Handler";
longDescription = ''
Session management system for GNU/Linux audio applications.
'';
homepage = http://www.nongnu.org/lash;
license = licenses.gpl2Plus;
platforms = platforms.linux;
maintainers = [ maintainers.goibhniu ];
};
}

View file

@ -0,0 +1,16 @@
Via http://bugs.gentoo.org/show_bug.cgi?id=229603
--- lash-0.5.4/liblash/socket.c 2008-06-26 15:20:44.227064193 +0200
+++ lash-0.5.4/liblash/socket.c 2008-06-26 15:21:18.245063129 +0200
@@ -20,6 +20,11 @@
#define _POSIX_SOURCE /* addrinfo */
+#ifdef LASH_BUILD
+#define _GNU_SOURCE
+#include "config.h"
+#endif /* LASH_BUILD */
+
#include <stdint.h>
#include <sys/types.h>
#include <sys/socket.h>

View file

@ -0,0 +1,22 @@
{ stdenv, fetchurl, pkgconfig, intltool, gtk, alsaLib, libglade }:
stdenv.mkDerivation {
name = "lingot-0.9.0";
src = fetchurl {
url = http://download.savannah.gnu.org/releases/lingot/lingot-0.9.0.tar.gz;
sha256 = "07z129lp8m4sz608q409wb11c639w7cbn497r7bscgg08p6c07xb";
};
buildInputs = [ pkgconfig intltool gtk alsaLib libglade ];
configureFlags = "--disable-jack";
meta = {
description = "Not a Guitar-Only tuner";
homepage = http://www.nongnu.org/lingot/;
license = "GPLv2+";
platforms = with stdenv.lib.platforms; linux;
maintainers = with stdenv.lib.maintainers; [viric];
};
}

View file

@ -0,0 +1,23 @@
{ stdenv, fetchurl, SDL, alsaLib, cmake, fftw, jackaudio, libogg,
libsamplerate, libsndfile, pkgconfig, pulseaudio, qt4 }:
stdenv.mkDerivation rec {
name = "lmms-${version}";
version = "0.4.10";
src = fetchurl {
url = "mirror://sourceforge/lmms/${name}.tar.bz2";
sha256 = "035cqmxcbr9ipnicdv5l7h05q2hqbavxkbaxyq06ppnv2y7fxwrb";
};
buildInputs = [ SDL alsaLib cmake fftw jackaudio libogg
libsamplerate libsndfile pkgconfig pulseaudio qt4 ];
meta = with stdenv.lib; {
description = "Linux MultiMedia Studio";
homepage = "http://lmms.sourceforge.net";
license = licenses.gpl2Plus;
platforms = platforms.linux;
maintainers = [ maintainers.goibhniu ];
};
}

View file

@ -1,17 +1,20 @@
{stdenv, fetchurl, libao, libmad, libid3tag, zlib}:
stdenv.mkDerivation {
name = "mpg321-0.2.10";
stdenv.mkDerivation rec {
name = "mpg321-0.2.13-2";
src = fetchurl {
url = mirror://sourceforge/mpg321/mpg321-0.2.10.tar.gz;
sha256 = "db0c299592b8f1f704f41bd3fc3a2bf138658108588d51af61638c551af1b0d4";
url = "mirror://sourceforge/mpg321/0.2.13/${name}.tar.gz";
sha256 = "0zx9xyr97frlyrwyk2msm9h1sn2b84vqaxcy5drbzcd2n585lwlx";
};
buildInputs = [libao libid3tag libmad zlib];
meta = {
description = "Command-line MP3 player.";
description = "mpg321, a command-line MP3 player";
homepage = http://mpg321.sourceforge.net/;
license = "GPLv2";
maintainers = [ stdenv.lib.maintainers.ludo ];
platforms = stdenv.lib.platforms.gnu;
};
}

View file

@ -0,0 +1,28 @@
{ stdenv, fetchurl, alsaLib, autoconf, automake, fftw, gettext, glib,
libX11, libtool, tcl, tk }:
stdenv.mkDerivation rec {
name = "puredata-${version}";
version = "0.43-0";
src = fetchurl {
url = "mirror://sourceforge/pure-data/pd-${version}.src.tar.gz";
sha256 = "1qfq7x8vj12kr0cdrnbvmxfhc03flicc6vcc8bz6hwrrakwciyz2";
};
buildInputs = [ alsaLib autoconf automake fftw gettext glib libX11
libtool tcl tk ];
preConfigure = ''
./autogen.sh
'';
meta = with stdenv.lib; {
description = ''Real-time graphical programming environment for
audio, video, and graphical processing'';
homepage = http://puredata.info;
license = licenses.bsd3;
platforms = platforms.linux;
maintainers = [ maintainers.goibhniu ];
};
}

View file

@ -1,18 +1,19 @@
{ stdenv, fetchurl, qt4, alsaLib, jackaudio }:
{ stdenv, fetchurl, qt4, alsaLib, jackaudio, dbus }:
stdenv.mkDerivation {
name = "qjackctl-0.3.3";
stdenv.mkDerivation rec {
version = "0.3.7";
name = "qjackctl-${version}";
# some dependencies such as killall have to be installed additionally
src = fetchurl {
url = http://downloads.sourceforge.net/qjackctl/qjackctl-0.3.3.tar.gz;
sha256 = "1z9v208fs79ka6ni3p5v5xb0k5y1wqqm2a9cf903387b9p3fhpxj";
url = "mirror://sourceforge/qjackctl/${name}.tar.gz";
sha256 = "1gynym21d8d4d38qyl817qg0v8360brcpga4wcdapccbgpaz3c28";
};
buildInputs = [ qt4 alsaLib jackaudio ];
buildInputs = [ qt4 alsaLib jackaudio dbus ];
meta = {
meta = {
description = "qt jackd control gui tool";
homepage = http://qjackctl.sourceforge.net/;
license = "GPL";

View file

@ -0,0 +1,25 @@
{ alsaLib, autoconf, automake, dssi, fetchurl, gtk, jackaudio,
ladspaH, ladspaPlugins, liblo, libmad, libsamplerate, libsndfile,
libtool, libvorbis, pkgconfig, qt4, rubberband, stdenv }:
stdenv.mkDerivation rec {
version = "0.5.0";
name = "qtractor-${version}";
src = fetchurl {
url = "mirror://sourceforge/qtractor/${name}.tar.gz";
sha256 = "de5991d2d29b2713d73a90ab29efc24db0be68d8e9ca328062d53d229e902e89";
};
buildInputs = [ alsaLib autoconf automake dssi gtk jackaudio ladspaH
ladspaPlugins liblo libmad libsamplerate libsndfile libtool
libvorbis pkgconfig qt4 rubberband ];
meta = with stdenv.lib; {
description = "Audio/MIDI multi-track sequencer";
homepage = http://qtractor.sourceforge.net;
license = licenses.gpl2Plus;
platforms = platforms.linux;
maintainers = [ maintainers.goibhniu ];
};
}

View file

@ -0,0 +1,23 @@
{ stdenv, fetchurl, alsaLib, alsaUtils, fltk, jackaudio, libXft,
libXpm, libjpeg, libpng, libsamplerate, libsndfile, zlib }:
stdenv.mkDerivation rec {
name = "rakarrack-${version}";
version = "0.6.1";
src = fetchurl {
url = "mirror://sourceforge/rakarrack/${name}.tar.bz2";
sha256 = "1rpf63pdn54c4yg13k7cb1w1c7zsvl97c4qxcpz41c8l91xd55kn";
};
buildInputs = [ alsaLib alsaUtils fltk jackaudio libXft libXpm libjpeg
libpng libsamplerate libsndfile zlib ];
meta = with stdenv.lib; {
description = "multi-effects processor emulating a guitar effects pedalboard";
homepage = http://rakarrack.sourceforge.net;
license = licenses.gpl2;
platforms = platforms.linux;
maintainers = [ maintainers.goibhniu ];
};
}

View file

@ -0,0 +1,21 @@
{ stdenv, fetchurl, alsaLib, gtkmm, jackaudio, pkgconfig }:
stdenv.mkDerivation rec {
name = "seq24-${version}";
version = "0.9.2";
src = fetchurl {
url = "http://launchpad.net/seq24/trunk/${version}/+download/${name}.tar.gz";
sha256 = "07n80zj95i80vjmsflnlbqx5vv90qmp5f6a0zap8d30849l4y258";
};
buildInputs = [ alsaLib gtkmm jackaudio pkgconfig ];
meta = with stdenv.lib; {
description = "minimal loop based midi sequencer";
homepage = "http://www.filter24.org/seq24";
license = licenses.gpl2;
platforms = platforms.linux;
maintainers = [ maintainers.goibhniu ];
};
}

View file

@ -0,0 +1,53 @@
# TODO add plugins having various licenses, see http://www.vamp-plugins.org/download.html
{ stdenv, fetchurl, alsaLib, bzip2, fftw, jackaudio, libX11, liblo,
libmad, libogg, librdf, librdf_raptor, librdf_rasqal, libsamplerate,
libsndfile, makeWrapper, pulseaudio, qt4, redland, rubberband, vampSDK
}:
stdenv.mkDerivation {
name = "sonic-visualiser-1.8";
src = fetchurl {
url = http://downloads.sourceforge.net/sv1/sonic-visualiser-1.8.tar.gz;
sha256 = "16ik6q9n92wljvnqcv7hyzb9v3yp3ixxp6df9kasf53fii973dh7";
};
buildInputs =
[ libsndfile qt4 fftw /* should be fftw3f ??*/ bzip2 librdf rubberband
libsamplerate vampSDK alsaLib librdf_raptor librdf_rasqal redland
# optional
jackaudio
# portaudio
pulseaudio
libmad
libogg # ?
# fishsound
liblo
libX11
makeWrapper
];
buildPhase = ''
for i in sonic-visualiser svapp svcore svgui;
do cd $i && qmake -makefile PREFIX=$out && cd ..;
done
make
'';
installPhase = ''
ensureDir $out/{bin,share/sonic-visualiser}
cp sonic-visualiser/sonic-visualiser $out/bin
cp -r sonic-visualiser/samples $out/share/sonic-visualiser/samples
wrapProgram $out/bin/sonic-visualiser --prefix LD_LIBRARY_PATH : ${libX11}/lib
'';
meta = {
description = "View and analyse contents of music audio files";
homepage = http://www.sonicvisualiser.org/;
license = "GPLv2";
maintainers = [ stdenv.lib.maintainers.marcweber
stdenv.lib.maintainers.goibhniu ];
platforms = stdenv.lib.platforms.linux;
};
}

View file

@ -1,45 +0,0 @@
# TODO add plugins having various licenses, see http://www.vamp-plugins.org/download.html
{ stdenv, fetchurl, libsndfile, qt, fftw, librdf, rubberband
, libsamplerate, vampSDK, alsaLib, librdf_raptor, librdf_rasqal
, redland, jackaudio, pulseaudio, libmad, libogg, liblo, bzip2 }:
stdenv.mkDerivation {
name = "sonic-visualizer-1.6";
src = fetchurl {
url = http://downloads.sourceforge.net/sv1/sonic-visualiser-1.6.tar.bz2;
sha256 = "1dbqqa7anii2jnjpfwm4sr83nn4bwmz68xw4n6clycsz5iqk52f5";
};
buildInputs =
[ libsndfile qt fftw /* should be fftw3f ??*/ bzip2 librdf rubberband
libsamplerate vampSDK alsaLib librdf_raptor librdf_rasqal redland
# optional
jackaudio
# portaudio
pulseaudio
libmad
libogg # ?
# fishsound
liblo
];
buildPhase = ''
qmake -makefile PREFIX=$out && make
'';
installPhase = ''
ensureDir $out/{bin,share/sv}
cp sv/sonic-visualiser $out/bin
cp -r sv/samples $out/share/sv/samples
'';
meta = {
description = "View and analyse contents of music audio files";
homepage = http://www.sonicvisualiser.org/;
license = "GPLv2";
maintainers = [ stdenv.lib.maintainers.marcweber ];
platforms = stdenv.lib.platforms.linux;
};
}

View file

@ -0,0 +1,28 @@
{ stdenv, fetchsvn, alsaLib, autoconf, automake, gtk, jackaudio,
libgnomecanvas, libsamplerate, libsndfile, libtool, libxml2, phat,
pkgconfig }:
stdenv.mkDerivation rec {
name = "specimen-svn-89";
# The released version won't compile with newer versions of jack
src = fetchsvn {
url = http://zhevny.com/svn/specimen/trunk;
rev = 89;
sha256 = "1i24nchw14cbjv7kmzs7cvmis2xv4r7bxghi8d6gq5lprwk8xydf";
};
preConfigure = "sh autogen.sh";
buildInputs = [ alsaLib autoconf automake gtk jackaudio
libgnomecanvas libsamplerate libsndfile libtool libxml2 phat
pkgconfig ];
meta = with stdenv.lib; {
description = "MIDI controllable audio sampler";
homepage = http://zhevny.com/specimen/;
license = licenses.gpl2Plus;
platforms = platforms.linux;
maintainers = [ maintainers.goibhniu ];
};
}

View file

@ -0,0 +1,63 @@
{ fetchurl, stdenv, dpkg, xlibs, qt4, alsaLib, makeWrapper }:
assert stdenv.system == "i686-linux" || stdenv.system == "x86_64-linux";
let version = "0.5.2.84"; in
stdenv.mkDerivation {
name = "spotify-${version}";
src =
if stdenv.system == "i686-linux" then
fetchurl {
url = "http://repository.spotify.com/pool/non-free/s/spotify/spotify-client-qt_${version}.g6d797eb-1_i386.deb";
sha256 = "0l1pvvkkssng0yc7zlgxr39jx3cs6i71sspmm4xb84y1bl045pas";
}
else if stdenv.system == "x86_64-linux" then
fetchurl {
url = "http://repository.spotify.com/pool/non-free/s/spotify/spotify-client-qt_${version}.g6d797eb-1_amd64.deb";
sha256 = "1wi1z3dyzjz13mkb0r2ilm914p8sg06923sv872nclrl102qbbni";
}
else throw "Spotify not supported on this platform.";
buildInputs = [ dpkg makeWrapper ];
unpackPhase = "true";
installPhase =
''
mkdir -p $out
dpkg-deb -x $src $out
mv $out/usr/* $out/
rmdir $out/usr
patchelf \
--interpreter "$(cat $NIX_GCC/nix-support/dynamic-linker)" \
--set-rpath ${stdenv.lib.makeLibraryPath [ xlibs.libXScrnSaver xlibs.libX11 qt4 alsaLib stdenv.gcc.gcc ]}:${stdenv.gcc.gcc}/lib64 \
$out/bin/spotify
preload=$out/libexec/spotify/libpreload.so
mkdir -p $out/libexec/spotify
gcc -shared ${./preload.c} -o $preload -ldl -DOUT=\"$out\" -fPIC
wrapProgram $out/bin/spotify --set LD_PRELOAD $preload
''; # */
dontStrip = true;
dontPatchELF = true;
meta = {
homepage = https://www.spotify.com/download/previews/;
description = "Spotify for Linux allows you to play music from the Spotify music service";
license = "unfree";
maintainers = [ stdenv.lib.maintainers.eelco ];
longDescription =
''
Spotify is a digital music streaming service. This package
provides the Spotify client for Linux. At present, it does not
work with free Spotify accounts; it requires a Premium or
Unlimited account.
'';
};
}

View file

@ -0,0 +1,66 @@
/* Spotify looks for its theme data in /usr/share/spotify/theme. This
LD_PRELOAD library intercepts open() and stat() calls to redirect
them to the corresponding location in $out. */
#define _GNU_SOURCE
#include <stdio.h>
#include <stdarg.h>
#include <stdlib.h>
#include <dlfcn.h>
#include <sys/types.h>
#include <sys/stat.h>
#include <fcntl.h>
#include <limits.h>
char themeDir [] = "/usr/share/spotify/theme";
char realThemeDir [] = OUT "/share/spotify/theme";
const char * rewrite(const char * path, char * buf)
{
if (strncmp(path, themeDir, sizeof(themeDir) - 1) != 0) return path;
if (snprintf(buf, PATH_MAX, "%s%s", realThemeDir, path + sizeof(themeDir) - 1) >= PATH_MAX)
abort();
return buf;
}
int open(const char *path, int flags, ...)
{
char buf[PATH_MAX];
int (*_open) (const char *, int, mode_t) = dlsym(RTLD_NEXT, "open");
mode_t mode = 0;
if (flags & O_CREAT) {
va_list ap;
va_start(ap, flags);
mode = va_arg(ap, mode_t);
va_end(ap);
}
return _open(rewrite(path, buf), flags, mode);
}
int open64(const char *path, int flags, ...)
{
char buf[PATH_MAX];
int (*_open64) (const char *, int, mode_t) = dlsym(RTLD_NEXT, "open64");
mode_t mode = 0;
if (flags & O_CREAT) {
va_list ap;
va_start(ap, flags);
mode = va_arg(ap, mode_t);
va_end(ap);
}
return _open64(rewrite(path, buf), flags, mode);
}
int __xstat64(int ver, const char *path, struct stat64 *st)
{
char buf[PATH_MAX];
int (*___xstat64) (int ver, const char *, struct stat64 *) = dlsym(RTLD_NEXT, "__xstat64");
return ___xstat64(ver, rewrite(path, buf), st);
}
int access(const char *path, int mode)
{
char buf[PATH_MAX];
int (*_access) (const char *path, int mode) = dlsym(RTLD_NEXT, "access");
return _access(rewrite(path, buf), mode);
}

View file

@ -0,0 +1,32 @@
{ stdenv, fetchurl, alsaLib, libX11, makeWrapper, tcl, tk }:
stdenv.mkDerivation rec {
name = "vkeybd-${version}";
version = "0.1.18d";
src = fetchurl {
url = "ftp://ftp.suse.com/pub/people/tiwai/vkeybd/${name}.tar.bz2";
sha256 = "0107b5j1gf7dwp7qb4w2snj4bqiyps53d66qzl2rwj4jfpakws5a";
};
buildInputs = [ alsaLib libX11 makeWrapper tcl tk ];
configurePhase = ''
ensureDir $out/bin
sed -e "s@/usr/local@$out@" -i Makefile
'';
makeFlags = [ "TKLIB=-ltk8.5" "TCLLIB=-ltcl8.5" ];
postInstall = ''
wrapProgram $out/bin/vkeybd --set TK_LIBRARY "${tk}/lib/${tk.libPrefix}"
'';
meta = with stdenv.lib; {
description = "Virtual MIDI keyboard";
homepage = http://www.alsa-project.org/~tiwai/alsa.html;
license = licenses.gpl2Plus;
platforms = platforms.linux;
maintainers = [ maintainers.goibhniu ];
};
}

View file

@ -2,18 +2,14 @@
, speex, flac}:
stdenv.mkDerivation {
name = "vorbis-tools-1.1.1";
name = "vorbis-tools-1.4.0";
src = fetchurl {
url = http://downloads.xiph.org/releases/vorbis/vorbis-tools-1.1.1.tar.gz;
sha256 = "617b4aa69e600c215b34fa3fd5764bc1d9d205d9d7d9fe7812bde7ec956fcaad";
url = http://downloads.xiph.org/releases/vorbis/vorbis-tools-1.4.0.tar.gz;
sha256 = "1g12bnh5ah08v529y72kfdz5lhvy75iaz7f9jskyby23m9dkk2d3";
};
# FIXME: Vorbis-tools expects `libOggFLAC', but this library was
# merged with `libFLAC' as of FLAC 1.1.3.
buildInputs = [ libogg libvorbis libao pkgconfig curl speex glibc flac ];
patches = [ ./ogg123-curlopt-mute.patch ];
meta = {
longDescription = ''
A set of command-line tools to manipulate Ogg Vorbis audio

View file

@ -1,13 +0,0 @@
--- vorbis-tools-1.1.1/ogg123/http_transport.c 2005-06-13 15:11:44.000000000 +0200
+++ vorbis-tools-1.1.1/ogg123/http_transport.c 2008-02-12 18:38:41.000000000 +0100
@@ -116,7 +116,9 @@ void set_curl_opts (http_private_t *priv
if (inputOpts.ProxyTunnel)
curl_easy_setopt (handle, CURLOPT_HTTPPROXYTUNNEL, inputOpts.ProxyTunnel);
*/
+#ifdef CURLOPT_MUTE
curl_easy_setopt(handle, CURLOPT_MUTE, 1);
+#endif
curl_easy_setopt(handle, CURLOPT_ERRORBUFFER, private->error);
curl_easy_setopt(handle, CURLOPT_PROGRESSFUNCTION, progress_callback);
curl_easy_setopt(handle, CURLOPT_PROGRESSDATA, private);

View file

@ -0,0 +1,37 @@
{ stdenv, fetchurl, alsaLib, autoconf, automake, dssi, gtk, jackaudio,
ladspaH, ladspaPlugins, liblo, pkgconfig }:
stdenv.mkDerivation rec {
name = "xsynth-dssi-${version}";
version = "0.9.4";
src = fetchurl {
url = "mirror://sourceforge/dssi/${name}.tar.gz";
sha256 = "00nwv2pqjbmxqdc6xdm0cljq6z05lv4y6bibmhz1kih9lm0lklnk";
};
buildInputs = [ alsaLib autoconf automake dssi gtk jackaudio ladspaH
ladspaPlugins liblo pkgconfig ];
installPhase = ''
ensureDir $out/bin
ensureDir $out/lib
cp src/Xsynth_gtk $out/bin
cp src/.libs/* $out/lib
'';
meta = with stdenv.lib; {
description = "classic-analog (VCOs-VCF-VCA) style software synthesizer";
longDescription = ''
Xsynth-DSSI is a classic-analog (VCOs-VCF-VCA) style software
synthesizer which operates as a plugin for the DSSI Soft Synth
Interface. DSSI is a plugin API for software instruments (soft
synths) with user interfaces, permitting them to be hosted
in-process by audio applications.
'';
homepage = "http://dssi.sourceforge.net/download.html#Xsynth-DSSI";
license = licenses.gpl2Plus;
platforms = platforms.linux;
maintainers = [ maintainers.goibhniu ];
};
}

View file

@ -0,0 +1,36 @@
{ stdenv, fetchurl, alsaLib, boost, cmakeCurses, fftwSinglePrec, fltk
, jackaudio, libsndfile, mesa, minixml, pkgconfig, zlib }:
assert stdenv ? glibc;
stdenv.mkDerivation rec {
name = "yoshimi-${version}";
version = "0.060.10";
src = fetchurl {
url = "mirror://sourceforge/yoshimi/${name}.tar.bz2";
sha256 = "0y67w7y515hx2bi5gfjgsw1hdah1bdrrvcfmqyjsvn7jbd0q47v1";
};
buildInputs = [ alsaLib boost cmakeCurses fftwSinglePrec fltk
jackaudio libsndfile mesa minixml pkgconfig zlib ];
preConfigure = ''
cd src
'';
cmakeFlags = [ "-DFLTK_MATH_LIBRARY=${stdenv.glibc}/lib/libm.so" ];
meta = with stdenv.lib; {
description = "high quality software synthesizer based on ZynAddSubFX";
longDescription = ''
Yoshimi delivers the same synthesizer capabilities as
ZynAddSubFX along with very good Jack and Alsa midi/audio
functionality on Linux
'';
homepage = http://yoshimi.sourceforge.net;
license = licenses.gpl2;
platforms = platforms.linux;
maintainers = [ maintainers.goibhniu ];
};
}

View file

@ -0,0 +1,25 @@
{ stdenv, fetchurl, alsaLib, fftw, fltk, minixml, zlib }:
stdenv.mkDerivation rec {
name = "zynaddsubfx-${version}";
version = "2.4.1";
src = fetchurl {
url = "mirror://sourceforge/zynaddsubfx/ZynAddSubFX-${version}.tar.bz2";
sha256 = "1zn5lgh76rrbfj8d4jys2gc1j2pqrbdd18ywfdrk0s7jq4inwyfg";
};
buildInputs = [ alsaLib fftw fltk minixml zlib ];
preConfigure = "cd src";
installPhase = "mkdir -p $out/bin; cp zynaddsubfx $out/bin";
meta = with stdenv.lib; {
description = "high quality software synthesizer";
homepage = http://zynaddsubfx.sourceforge.net;
license = licenses.gpl2;
platforms = platforms.linux;
maintainers = [ maintainers.goibhniu ];
};
}

View file

@ -1,11 +1,11 @@
{stdenv, fetchurl, x11, libjpeg, libpng, libXmu, freetype, pam}:
stdenv.mkDerivation rec {
name = "slim-1.3.1";
name = "slim-1.3.2";
src = fetchurl {
url = "http://download.berlios.de/slim/${name}.tar.gz";
sha256 = "0xqgzvg6h1bd29140mcgg9r16vcmskz7zmym7i7jlz7x9c1a9mxc";
sha256 = "1f42skdp5k1zrb364s3i0ps5wmx9szz9h192i2dkn9az00jh2mpi";
};
patches = [
@ -22,8 +22,6 @@ stdenv.mkDerivation rec {
# Don't set PAM_RHOST to "localhost", it confuses ConsoleKit
# (which assumes that a non-empty string means a remote session).
./pam2.patch
./slim-1.3.1-gcc4.4.patch
];
buildInputs = [x11 libjpeg libpng libXmu freetype pam];

View file

@ -1,17 +0,0 @@
Patch to allow compilation with gcc-4.4
Notified by Daniel J. - from Debian bug tracker
http://bugs.gentoo.org/252745
--- a/switchuser.h 2008-11-11 19:40:18.000000000 +0000
+++ a/switchuser.h 2008-11-11 19:40:28.000000000 +0000
@@ -18,6 +18,7 @@
#include <pwd.h>
#include <grp.h>
#include <paths.h>
+#include <cstdio>
#include <iostream>
#include "const.h"
#include "cfg.h"

View file

@ -1,153 +1,163 @@
{ stdenv, fetchurl, patchelf, makeDesktopItem, makeWrapper
, freetype, fontconfig, libX11, libXext, libXrender, zlib
, glib, gtk, libXtst, jre
# defaulting to this version because not all installable plugins work with 3.5.2 yet
# can also be set to "latest"
, version ? "3.5.1"
}:
/*
Note: Eclipse stores various Eclipse instance specific data in ~/.eclipse/*-instance/...
The '*' depends on the executable location of Eclipse.
So if an Eclipse dependency such as gtk changes a different Eclipse setup directory will be used and
the plugins and update site list and more global settings seem to be gone.
Staring Eclipse from ~/.nix-profile/bin/eclipse doesn't help.
So I suggest copying the store path to ~/eclipse and run ~/eclipse/bin/eclipse instead.
However this still has some drawbacks: If you run nix-collect-garbage the gtk
libs the wrapper refers to might be gone. It should be easy for you to
replace the imortant lines in the wrapper.
You can also put this eclipse wrapper script (which was removed from
all-packages.nix -r 18458)
to your packageOverrides section and use that to run eclipse/eclipse.
Its parameterized by system because you may want to run both: i686 and x86_64 systems.
eclipseRunner =
pkgs.stdenv.mkDerivation {
name = "nix-eclipse-runner-script-${stdenv.system}";
phases = "installPhase";
installPhase = ''
ensureDir $out/bin
target=$out/bin/nix-run-eclipse-${stdenv.system}
cat > $target << EOF
#!/bin/sh
export PATH=${pkgs.jre}/bin:\$PATH
export LD_LIBRARY_PATH=${pkgs.gtkLibs216.glib}/lib:${pkgs.gtkLibs216.gtk}/lib:${pkgs.xlibs.libXtst}/lib
# If you run out of XX space try these? -vmargs -Xms512m -Xmx2048m -XX:MaxPermSize=256m
eclipse="\$1"; shift
exec \$eclipse -vmargs -Xms512m -Xmx2048m -XX:MaxPermSize=256m "\$@"
EOF
chmod +x $target
'';
meta = {
description = "provide environment to run Eclipse";
longDescription = ''
Is there one distribution providing support for up to date Eclipse installations?
There are various reasons why not.
Installing binaries just works. Get Eclipse binaries form eclipse.org/downloads
install this wrapper then run Eclipse like this:
nix-run-eclipse $PATH_TO_ECLIPSE/eclipse/eclipse
and be happy. Everything works including update sites.
'';
maintainers = [pkgs.lib.maintainers.marcweber];
platforms = pkgs.lib.platforms.linux;
};
};
*/
let
v = if version == "latest" then "3.5.2" else version;
in
assert stdenv ? glibc;
stdenv.mkDerivation rec {
name = "eclipse-${v}";
src =
if v == "3.5.2" then
let
buildEclipse =
{ name, src, description }:
stdenv.mkDerivation rec {
inherit name src;
desktopItem = makeDesktopItem {
name = "Eclipse";
exec = "eclipse";
icon = "eclipse";
comment = "Integrated Development Environment";
desktopName = "Eclipse IDE";
genericName = "Integrated Development Environment";
categories = "Application;Development;";
};
buildInputs = [ makeWrapper patchelf ];
buildCommand = ''
# Unpack tarball.
ensureDir $out
tar xfvz $src -C $out
# Patch binaries.
interpreter=$(echo ${stdenv.glibc}/lib/ld-linux*.so.2)
patchelf --set-interpreter $interpreter $out/eclipse/eclipse
patchelf --set-rpath ${freetype}/lib:${fontconfig}/lib:${libX11}/lib:${libXrender}/lib:${zlib}/lib $out/eclipse/libcairo-swt.so
# Create wrapper script. Pass -configuration to store
# settings in ~/.eclipse/org.eclipse.platform_<version> rather
# than ~/.eclipse/org.eclipse.platform_<version>_<number>.
productId=$(sed 's/id=//; t; d' $out/eclipse/.eclipseproduct)
productVersion=$(sed 's/version=//; t; d' $out/eclipse/.eclipseproduct)
makeWrapper $out/eclipse/eclipse $out/bin/eclipse \
--prefix PATH : ${jre}/bin \
--prefix LD_LIBRARY_PATH : ${glib}/lib:${gtk}/lib:${libXtst}/lib \
--add-flags "-configuration \$HOME/.eclipse/''${productId}_$productVersion/configuration"
# Create desktop item.
ensureDir $out/share/applications
cp ${desktopItem}/share/applications/* $out/share/applications
''; # */
meta = {
homepage = http://www.eclipse.org/;
inherit description;
};
};
in {
eclipse_sdk_35 = buildEclipse {
name = "eclipse-sdk-3.5.2";
description = "Eclipse Classic";
src =
if stdenv.system == "x86_64-linux" then
fetchurl {
url = http://ftp-stud.fht-esslingen.de/pub/Mirrors/eclipse/eclipse/downloads/drops/R-3.5.2-201002111343/eclipse-SDK-3.5.2-linux-gtk-x86_64.tar.gz;
url = http://archive.eclipse.org/eclipse/downloads/drops/R-3.5.2-201002111343/eclipse-SDK-3.5.2-linux-gtk-x86_64.tar.gz;
md5 = "54e2ce0660b2b1b0eb4267acf70ea66d";
}
else
fetchurl {
url = http://mirror.selfnet.de/eclipse/eclipse/downloads/drops/R-3.5.2-201002111343/eclipse-SDK-3.5.2-linux-gtk.tar.gz;
url = http://archive.eclipse.org/eclipse/downloads/drops/R-3.5.2-201002111343/eclipse-SDK-3.5.2-linux-gtk.tar.gz;
md5 = "bde55a2354dc224cf5f26e5320e72dac";
};
};
# !!! Use mirror://eclipse/.
eclipse_sdk_36 = buildEclipse {
name = "eclipse-sdk-3.6.2";
description = "Eclipse Classic";
src =
if stdenv.system == "x86_64-linux" then
fetchurl {
url = http://ftp.ing.umu.se/mirror/eclipse/eclipse/downloads/drops/R-3.6.2-201102101200/eclipse-SDK-3.6.2-linux-gtk-x86_64.tar.gz;
sha256 = "0dfcfadcd6337c897fbfd5b292de481931dfce12d43289ecb93691fd27dd47f4";
}
else if v == "3.5.1" then
if stdenv.system == "x86_64-linux" then
fetchurl {
url = http://ftp.ing.umu.se/mirror/eclipse/eclipse/downloads/drops/R-3.5.1-200909170800/eclipse-SDK-3.5.1-linux-gtk-x86_64.tar.gz;
sha256 = "132zd7q9q29h978wnlsfbrlszc85r1wj30yqs2aqbv3l5xgny1kk";
}
else
fetchurl {
url = http://mirrors.linux-bg.org/eclipse/eclipse/downloads/drops/R-3.5.1-200909170800/eclipse-SDK-3.5.1-linux-gtk.tar.gz;
sha256 = "0a0lpa7gxg91zswpahi6fvg3csl4csvlym4z2ad5cc1d4yvicp56";
}
else if v == "3.6.1" then
if stdenv.system == "x86_64-linux" then
fetchurl {
url = http://ftp.ing.umu.se/mirror/eclipse/eclipse/downloads/drops/R-3.6.1-201009090800/eclipse-SDK-3.6.1-linux-gtk-x86_64.tar.gz;
sha256 = "1cg9rrb5w978sdqbzz9lnli1lds9zhb6wfsj3wp725bqf1i6v9lg";
}
else
fetchurl {
url = http://ftp.ing.umu.se/mirror/eclipse/eclipse/downloads/drops/R-3.6.1-201009090800/eclipse-SDK-3.6.1-linux-gtk.tar.gz;
sha256 = "0s48rjaswi8m5gan1zlqvfwb4l06x5nslkq41wpkrbyj9ka8gh4x";
}
else throw "no source for eclipse version ${v} known";
desktopItem = makeDesktopItem {
name = "Eclipse";
exec = "eclipse";
icon = "eclipse";
comment = "Integrated Development Environment";
desktopName = "Eclipse IDE";
genericName = "Integrated Development Environment";
categories = "Application;Development;";
else
fetchurl {
url = http://ftp.ing.umu.se/mirror/eclipse/eclipse/downloads/drops/R-3.6.2-201102101200/eclipse-SDK-3.6.2-linux-gtk.tar.gz;
sha256 = "1bh8ykliqr8wbciv13vpiy50rvm7yszk7y8dslr796dbwhi5b1cj";
};
};
buildInputs = [ makeWrapper patchelf ];
buildCommand = ''
# Unpack tarball
ensureDir $out
tar xfvz $src -C $out
# Patch binaries
interpreter=$(echo ${stdenv.glibc}/lib/ld-linux*.so.2)
patchelf --set-interpreter $interpreter $out/eclipse/eclipse
patchelf --set-rpath ${freetype}/lib:${fontconfig}/lib:${libX11}/lib:${libXrender}/lib:${zlib}/lib $out/eclipse/libcairo-swt.so
# Create wrapper script
makeWrapper $out/eclipse/eclipse $out/bin/eclipse \
--prefix PATH : ${jre}/bin \
--prefix LD_LIBRARY_PATH : ${glib}/lib:${gtk}/lib:${libXtst}/lib
# Create desktop item
ensureDir $out/share/applications
cp ${desktopItem}/share/applications/* $out/share/applications
'';
meta = {
homepage = http://www.eclipse.org/;
description = "A extensible multi-language software development environment";
longDescription = ''
'';
eclipse_cpp_36 = buildEclipse {
name = "eclipse-cpp-3.6.2";
description = "Eclipse IDE for C/C++ Developers";
src =
if stdenv.system == "x86_64-linux" then
fetchurl {
url = http://ftp-stud.fht-esslingen.de/pub/Mirrors/eclipse/technology/epp/downloads/release/helios/SR2/eclipse-cpp-helios-SR2-linux-gtk-x86_64.tar.gz;
sha1 = "6f914e11fa15a900c46825e4aa8299afd76e7e65";
}
else
fetchurl {
url = http://ftp-stud.fht-esslingen.de/pub/Mirrors/eclipse/technology/epp/downloads/release/helios/SR2/eclipse-cpp-helios-SR2-linux-gtk.tar.gz;
sha1 = "1156e4bc0253ae3a3a4e54839e4944dc64d3108f";
};
};
eclipse_modeling_36 = buildEclipse {
name = "eclipse-modeling-3.6.2";
description = "Eclipse Modeling Tools (includes Incubating components)";
src =
if stdenv.system == "x86_64-linux" then
fetchurl {
url = http://ftp-stud.fht-esslingen.de/pub/Mirrors/eclipse/technology/epp/downloads/release/helios/SR2/eclipse-modeling-helios-SR2-incubation-linux-gtk-x86_64.tar.gz;
sha1 = "e96f5f006298f68476f4a15a2be8589158d5cc61";
}
else
fetchurl {
url = http://ftp-stud.fht-esslingen.de/pub/Mirrors/eclipse/technology/epp/downloads/release/helios/SR2/eclipse-modeling-helios-SR2-incubation-linux-gtk.tar.gz;
sha1 = "696377895bb26445de39d82a916b7e69edb1d939";
};
};
eclipse_sdk_37 = buildEclipse {
name = "eclipse-sdk-3.7";
description = "Eclipse Classic";
src =
if stdenv.system == "x86_64-linux" then
fetchurl {
url = http://eclipse.ialto.com/eclipse/downloads/drops/R-3.7-201106131736/eclipse-SDK-3.7-linux-gtk-x86_64.tar.gz;
sha256 = "00ig3ww98r8imf32sx5npm6csn5nx288gvdk6w653nijni0di16j";
}
else
fetchurl {
url = http://eclipse.ialto.com/eclipse/downloads/drops/R-3.7-201106131736/eclipse-SDK-3.7-linux-gtk.tar.gz;
sha256 = "08rgw85cam51l98mzb39fdc3ykb369v8pap93qhknbs6a3f5dnff";
};
};
eclipse_cpp_37 = buildEclipse {
name = "eclipse-cpp-3.7";
description = "Eclipse IDE for C/C++ Developers";
src =
if stdenv.system == "x86_64-linux" then
fetchurl {
url = http://eclipse.ialto.com/technology/epp/downloads/release/indigo/R/eclipse-cpp-indigo-incubation-linux-gtk-x86_64.tar.gz;
sha256 = "14ppc9g9igzvj1pq7jl01vwhzb66nmzbl9wsdl1sf3xnwa9wnqk3";
}
else
fetchurl {
url = http://eclipse.ialto.com/technology/epp/downloads/release/indigo/R/eclipse-cpp-indigo-incubation-linux-gtk.tar.gz;
sha256 = "1cvg1vgyazrkinwzlvlf0dpl197p4784752srqybqylyj5psdi3b";
};
};
}

View file

@ -8,22 +8,28 @@ assert (libXft != null) -> libpng != null; # probably a bug
assert stdenv.isDarwin -> libXaw != null; # fails to link otherwise
stdenv.mkDerivation rec {
name = "emacs-23.2";
name = "emacs-23.3";
builder = ./builder.sh;
src = fetchurl {
url = "mirror://gnu/emacs/${name}.tar.bz2";
sha256 = "1i96hp91s86jawrqjhfxm5y2sjxizv99009128b4bh06bgx6dm7z";
sha256 = "0kfa546qi0idkwk29gclgi13qd8q54pcqgy9qwjknlclszprdp3a";
};
buildInputs = [
ncurses x11 texinfo libXaw Xaw3d libXpm dbus libpng libjpeg libungif
libtiff librsvg gtk (if gtk != null then pkgconfig else null) libXft gconf
];
buildInputs =
[ ncurses x11 texinfo libXaw Xaw3d libXpm libpng libjpeg libungif
libtiff librsvg libXft gconf
]
++ stdenv.lib.optionals (gtk != null) [ gtk pkgconfig ]
++ stdenv.lib.optional stdenv.isLinux dbus;
configureFlags =
stdenv.lib.optionals (gtk != null) [ "--with-x-toolkit=gtk" "--with-xft" ];
stdenv.lib.optionals (gtk != null) [ "--with-x-toolkit=gtk" "--with-xft"]
# On NixOS, help Emacs find `crt*.o'.
++ stdenv.lib.optional (stdenv ? glibc)
[ "--with-crt-dir=${stdenv.glibc}/lib" ];
doCheck = true;

View file

@ -1,12 +0,0 @@
source "$stdenv/setup" || exit 1
unpackPhase && \
cd bbdb-*.* && patchPhase && \
./configure --prefix="$out" \
--with-package-dir="$out/share/emacs/site-lisp" && \
make && make install-pkg && \
mkdir -p "$out/info" && \
make -C texinfo install-pkg && \
mv "$out/share/emacs/site-lisp/lisp/bbdb/"* \
"$out/share/emacs/site-lisp" && \
rm -rf "$out/share/emacs/site-lisp/lisp"

View file

@ -11,7 +11,20 @@ stdenv.mkDerivation {
patches = [ ./install-infodir.patch ];
buildInputs = [emacs texinfo ctags];
builder = ./builder.sh;
configureFlags = "--with-package-dir=$$out/share/emacs/site-lisp";
preInstall = "ensureDir $out/info";
installTargets = "install-pkg texinfo";
postInstall = ''
mv $out/info $out/share/
mv "$out/share/emacs/site-lisp/lisp/bbdb/"* $out/share/emacs/site-lisp/
mv $out/share/emacs/site-lisp/etc/bbdb $out/share/
rm -rf $out/share/emacs/site-lisp/{lisp,etc}
mv bits $out/share/bbdb/
# Make optional modules from bbdb available for import, but symlink
# them into the site-lisp directory to make it obvious that they are
# not a genuine part of the distribution.
ln -s "$out/share/bbdb/bits/"*.el $out/share/emacs/site-lisp/
'';
meta = {
description = "The Insidious Big Brother Database (BBDB), a contact management utility for Emacs";

View file

@ -1,20 +1,25 @@
{ stdenv, fetchurl, emacs, texinfo }:
let
version = "0.8.2";
version = "1.0.0";
in
stdenv.mkDerivation {
name = "magit-${version}";
src = fetchurl {
url = "http://github.com/downloads/philjackson/magit/magit-${version}.tar.gz";
sha256 = "fc02c23e3e8994e9c3e3299d560d0cbfed888dcc66088f06b8cea3bc89cd6ae8";
url = "http://github.com/downloads/magit/magit/magit-${version}.tar.gz";
sha256 = "1hfdl90d96zin31v8x4p8zx5f0x0i5i9hccysx6q3prdgw9r6wzq";
};
buildInputs = [emacs texinfo];
configurePhase =
'' sed -i Makefile \
-e "s|^PREFIX=.*$|PREFIX=$out|g ; s|/etc/emacs/|$out/etc/emacs/|"
'';
meta = {
description = "An an interface to Git, implemented as an extension to Emacs.";
description = "Magit, an Emacs interface to Git";
longDescription = ''
With Magit, you can inspect and modify your Git repositories with
@ -31,6 +36,6 @@ stdenv.mkDerivation {
license = "GPLv3+";
homepage = "http://github.com/philjackson/magit";
platforms = stdenv.lib.platforms.all;
maintainers = [ stdenv.lib.maintainers.simons ];
maintainers = with stdenv.lib.maintainers; [ simons ludo ];
};
}

View file

@ -1,11 +1,11 @@
{ fetchurl, stdenv, emacs, texinfo, which }:
stdenv.mkDerivation rec {
name = "org-7.01f";
name = "org-7.5";
src = fetchurl {
url = "http://orgmode.org/${name}.tar.gz";
sha256 = "1db7s57g8gh8w0464n18lxpcz270x9ns63b2blhkz8wrdnk57fia";
sha256 = "978822bc4c5f9f67450fbaa8572f1d4217406b7e28551278c9f23f7e9515cd4b";
};
buildInputs = [ emacs texinfo ];
@ -19,11 +19,21 @@ stdenv.mkDerivation rec {
-e "s|^prefix=.*$|prefix=$out|g"
'';
#XXX: fails because of missing UTILITIES/manfull.pl, currently not
# included in the release tarball, but git.
#postBuild =
# '' make doc
# '';
installPhase =
'' make install install-info
ensureDir "$out/share/doc/${name}"
cp -v doc/orgcard*.{pdf,txt} "$out/share/doc/${name}"
cp -v doc/org*.{html,pdf,txt} "$out/share/doc/${name}"
ensureDir "$out/share/org"
cp -R contrib "$out/share/org/contrib"
'';
meta = {
@ -39,7 +49,7 @@ stdenv.mkDerivation rec {
license = "GPLv3+";
maintainers = [ stdenv.lib.maintainers.ludo ];
maintainers = [ stdenv.lib.maintainers.ludo stdenv.lib.maintainers.chaoflow ];
platforms = stdenv.lib.platforms.gnu; # arbitrary choice
};
}

View file

@ -1,25 +1,20 @@
{ stdenv, fetchurl, emacs, texinfo, texLive, perl, which, automake }:
let
pname = "ProofGeneral";
version = "3.7.1.1";
name = "${pname}-${version}";
website = "http://proofgeneral.inf.ed.ac.uk";
in
stdenv.mkDerivation {
inherit name;
stdenv.mkDerivation (rec {
name = "ProofGeneral-4.0";
src = fetchurl {
url = "http://www.cl.cam.ac.uk/research/hvg/Isabelle/dist/contrib/${name}.tar.gz";
sha256 = "ae430590d6763618df50a662a37f0627d3c3c8f31372f6f0bb2116b738fc92d8";
url = http://proofgeneral.inf.ed.ac.uk/releases/ProofGeneral-4.0.tgz;
sha256 = "1ang2lsc97vl70fkgypfsr1ivdzsdliq3bkvympj30wnc7ayzbmq";
};
sourceRoot = name;
buildInputs = [ emacs texinfo texLive perl which ];
patchPhase =
patches = [ ./emacs-23.3.patch ];
postPatch =
'' sed -i "Makefile" \
-e "s|^\(\(DEST_\)\?PREFIX\)=.*$|\1=$out|g ; \
s|/sbin/install-info|install-info|g"
@ -27,6 +22,8 @@ stdenv.mkDerivation {
sed -i "bin/proofgeneral" -e's/which/type -p/g'
'';
preBuild = "make clean";
installPhase =
# Copy `texinfo.tex' in the right place so that `texi2pdf' works.
'' cp -v "${automake}/share/"automake-*/texinfo.tex doc
@ -39,8 +36,8 @@ stdenv.mkDerivation {
Proof General is a generic front-end for proof assistants (also known as
interactive theorem provers), based on the customizable text editor Emacs.
'';
homepage = website;
homepage = http://proofgeneral.inf.ed.ac.uk;
license = "GPLv2+";
platforms = stdenv.lib.platforms.gnu; # arbitrary choice
};
}
})

View file

@ -0,0 +1,45 @@
diff -Nuar ProofGeneral-4.0/contrib/mmm/mmm-mode.el ProofGeneral-4.0-nix/contrib/mmm/mmm-mode.el
--- ProofGeneral-4.0/contrib/mmm/mmm-mode.el 2010-10-11 00:56:57.000000000 +0200
+++ ProofGeneral-4.0-nix/contrib/mmm/mmm-mode.el 2011-05-14 21:55:12.000000000 +0200
@@ -160,9 +160,9 @@
(mmm-add-hooks)
(mmm-fixup-skeleton)
(make-local-variable 'font-lock-fontify-region-function)
- (make-local-variable 'font-lock-beginning-of-syntax-function)
+ (make-local-variable 'syntax-begin-function)
(setq font-lock-fontify-region-function 'mmm-fontify-region
- font-lock-beginning-of-syntax-function 'mmm-beginning-of-syntax)
+ syntax-begin-function 'mmm-beginning-of-syntax)
(setq mmm-mode t)
(condition-case err
(mmm-apply-all)
@@ -190,7 +190,7 @@
(mmm-update-submode-region)
(setq font-lock-fontify-region-function
(get mmm-primary-mode 'mmm-fontify-region-function)
- font-lock-beginning-of-syntax-function
+ syntax-begin-function
(get mmm-primary-mode 'mmm-beginning-of-syntax-function))
(mmm-update-font-lock-buffer)
(mmm-refontify-maybe)
diff -Nuar ProofGeneral-4.0/contrib/mmm/mmm-region.el ProofGeneral-4.0-nix/contrib/mmm/mmm-region.el
--- ProofGeneral-4.0/contrib/mmm/mmm-region.el 2010-10-11 00:56:57.000000000 +0200
+++ ProofGeneral-4.0-nix/contrib/mmm/mmm-region.el 2011-05-14 21:58:01.000000000 +0200
@@ -548,7 +548,7 @@
(put mode 'mmm-fontify-region-function
font-lock-fontify-region-function))
(put mode 'mmm-beginning-of-syntax-function
- font-lock-beginning-of-syntax-function))
+ syntax-begin-function))
;; Get variables
(setq global-vars (mmm-get-locals 'global)
buffer-vars (mmm-get-locals 'buffer)
@@ -768,7 +768,7 @@
;; For some reason `font-lock-fontify-block' binds this to nil, thus
;; preventing `mmm-beginning-of-syntax' from doing The Right Thing.
;; I don't know why it does this, but let's undo it here.
- (let ((font-lock-beginning-of-syntax-function 'mmm-beginning-of-syntax))
+ (let ((syntax-begin-function 'mmm-beginning-of-syntax))
(mapc #'(lambda (elt)
(when (get (car elt) 'mmm-font-lock-mode)
(mmm-fontify-region-list (car elt) (cdr elt))))

View file

@ -1,18 +1,23 @@
{ stdenv, fetchurl, kdevplatform, cmake, pkgconfig, automoc4, shared_mime_info,
kdebase_workspace, gettext, perl }:
kdebase_workspace, gettext, perl, kdeutils, kdesdk }:
let
okteta = if kdeutils ? okteta then kdeutils.okteta else kdesdk.okteta;
in
stdenv.mkDerivation rec {
name = "${pname}-${version}";
version = "4.0.2";
version = "4.2.3";
pname = "kdevelop";
src = fetchurl {
url = "mirror://kde/stable/${pname}/${version}/src/${name}.tar.bz2";
sha256 = "1y8ydx0fcmsab31qf5id5r5fcmp3j2l8mibvbbjfy66xgxarmnpc";
sha256 = "0ay3d2s5442pvdsx9lyfzb986kh6848qhbls9ff982f0glzqdcya";
};
buildInputs = [ kdevplatform cmake pkgconfig automoc4 shared_mime_info
kdebase_workspace gettext stdenv.gcc.libc perl ];
kdebase_workspace gettext stdenv.gcc.libc perl okteta ];
NIX_CFLAGS_COMPILE = "-I${okteta}/include/KDE";
meta = with stdenv.lib; {
maintainers = [ maintainers.urkud ];

View file

@ -1,27 +1,28 @@
{cabal, gtk, glib, binary, binaryShared, deepseq, hslogger, ltk, network, parsec,
leksahServer, processLeksah, regexBase, regexTDFA, utf8String, gtksourceview2,
makeWrapper}:
{ cabal, binary, binaryShared, deepseq, glib, gtk, gtksourceview2
, hslogger, leksahServer, ltk, mtl, network, parsec, processLeksah
, regexBase, regexTdfa, strict, time, utf8String
}:
cabal.mkDerivation (self : {
cabal.mkDerivation (self: {
pname = "leksah";
version = "0.8.0.8";
sha256 = "1d6n5dlnqlqfckg9f611qf9lvi6b7ghrkk1l0myh6h667fxh8a1r";
propagatedBuildInputs =
[gtk glib binary binaryShared deepseq hslogger ltk network parsec
leksahServer processLeksah regexBase regexTDFA utf8String gtksourceview2];
extraBuildInputs = [makeWrapper];
# postInstall =
# ''
# wrapProgram $out/bin/leksah --prefix XDG_DATA_DIRS : ${gtk2hs.gtksourceview}/share
# '';
version = "0.10.0.4";
sha256 = "1g12w1kl63fxzz1c2x237yrqkaja9awiqyyipkdms5iql0ini7bw";
isLibrary = true;
isExecutable = true;
buildDepends = [
binary binaryShared deepseq glib gtk gtksourceview2 hslogger
leksahServer ltk mtl network parsec processLeksah regexBase
regexTdfa strict time utf8String
];
noHaddock = true;
meta = {
homepage = http://leksah.org/;
description = "An Integrated Development Environment for Haskell written in Haskell";
homepage = "http://www.leksah.org";
description = "Haskell IDE written in Haskell";
license = "GPL";
maintainers = [self.stdenv.lib.maintainers.andres];
platforms = self.stdenv.lib.platforms.linux;
maintainers = [
self.stdenv.lib.maintainers.andres
self.stdenv.lib.maintainers.simons
];
};
})
})

View file

@ -1,4 +1,4 @@
{stdenv, fetchurl, guile, libX11, libXext, xmodmap, which, makeWrapper,
{stdenv, fetchurl, guile, libX11, libXext, xmodmap, which, makeWrapper, freetype,
tex ? null,
aspell ? null,
ghostscriptX ? null,
@ -9,7 +9,7 @@
let
pname = "TeXmacs";
version = "1.0.7.6";
version = "1.0.7.10";
extraFontsSrc = fetchurl {
url = "ftp://ftp.texmacs.org/pub/TeXmacs/fonts/TeXmacs-extra-fonts-1.0-noarch.tar.gz";
sha256 = "0hylgjmd95y9yahbblmawkkw0i71vb145xxv2xqrmff81301n6k7";
@ -40,10 +40,10 @@ stdenv.mkDerivation rec {
src = fetchurl {
url = "ftp://ftp.texmacs.org/pub/${pname}/targz/${name}-src.tar.gz";
sha256 = "0x4qy3ai9nmz1i90mbqi1n2vgwyllxwmlpllfwcz0fad7yby7msh";
sha256 = "02gqalr775r4xyfy4bq3qq1h3pkarsxjb6ami7lgxfgmyg6ca5kn";
};
buildInputs = [ guile libX11 libXext makeWrapper ];
buildInputs = [ guile libX11 libXext makeWrapper ghostscriptX freetype ];
patchPhase = (if tex == null then ''
gunzip < ${fullFontsSrc} | (cd TeXmacs && tar xvf -)

View file

@ -1,11 +1,11 @@
{ fetchurl, stdenv, ncurses, help2man }:
stdenv.mkDerivation rec {
name = "zile-2.3.21";
name = "zile-2.3.24";
src = fetchurl {
url = "mirror://gnu/zile/${name}.tar.gz";
sha256 = "1cmw98khpyk0yv3fn94506fm7589adfbs57czrdsm4q8xf2xrj4i";
sha256 = "12by1f5nbk2qcq0f35aqjq5g54nsnajk2rk5060icsjc86pv52r1";
};
buildInputs = [ ncurses ];

View file

@ -12,19 +12,20 @@
, libtool
, jasper
, libX11
, xz
, tetex ? null
, librsvg ? null
}:
let
version = "6.6.5-4";
version = "6.6.9-4";
in
stdenv.mkDerivation rec {
name = "ImageMagick-${version}";
src = fetchurl {
url = "mirror://imagemagick/${name}.tar.bz2";
sha256 = "1s3l98xc1gnxi2wdg3sy9723f6qf5yk81wln8ghn2z9kvi09w7gw";
url = "mirror://imagemagick/${name}.tar.xz";
sha256 = "035j3i3cm29bwc9lipn838gznswrc69g7mwh8h9jj24ss2dmqrf1";
};
configureFlags = ''
@ -34,10 +35,13 @@ stdenv.mkDerivation rec {
${if librsvg != null then "--with-rsvg" else ""}
'';
buildInputs =
[ bzip2 freetype graphviz ghostscript libjpeg libpng
libtiff libxml2 zlib tetex librsvg libtool jasper libX11
];
propagatedBuildInputs =
[ bzip2 freetype ghostscript libjpeg libpng libtiff libxml2 zlib librsvg
libtool jasper libX11 ];
buildInputs = [ tetex graphviz ];
buildNativeInputs = [ xz ];
preConfigure = if tetex != null then
''

View file

@ -0,0 +1,47 @@
{ stdenv, fetchurl,
GConf, atk, cairo, cmake, curl, dbus_glib, exiv2, glib,
gnome_keyring, gphoto2, gtk, ilmbase, intltool, lcms, lcms2,
lensfun, libXau, libXdmcp, libexif, libglade, libgphoto2, libjpeg,
libpng, libpthreadstubs, libraw1394, librsvg, libtiff, libxcb,
openexr, pixman, pkgconfig, sqlite}:
stdenv.mkDerivation rec {
version = "0.9.1";
name = "darktable-${version}";
src = fetchurl {
url = "mirror://sourceforge/darktable/darktable-${version}.tar.gz";
sha256 = "b687a5f1b2a6c8aa230c1dc3ef83bf74a103e3ebe1c61cdea95a612a7375f21e";
};
buildInputs = [
GConf atk cairo cmake curl dbus_glib exiv2 glib gnome_keyring gtk
ilmbase intltool lcms lcms2 lensfun libXau libXdmcp libexif
libglade libgphoto2 libjpeg libpng libpthreadstubs libraw1394
librsvg libtiff libxcb openexr pixman pkgconfig sqlite];
preConfigure = ''
export NIX_CFLAGS_COMPILE="$NIX_CFLAGS_COMPILE -I${gtk}/include/gtk-2.0"
export NIX_CFLAGS_COMPILE="$NIX_CFLAGS_COMPILE -I${gtk}/lib/gtk-2.0/include"
export NIX_CFLAGS_COMPILE="$NIX_CFLAGS_COMPILE -I${cairo}/include/cairo"
export NIX_CFLAGS_COMPILE="$NIX_CFLAGS_COMPILE -I${atk}/include/atk-1.0"
export NIX_CFLAGS_COMPILE="$NIX_CFLAGS_COMPILE -I${ilmbase}/include/OpenEXR"
export NIX_CFLAGS_COMPILE="$NIX_CFLAGS_COMPILE -I${openexr}/include/OpenEXR"
'';
cmakeFlags = [
"-DPTHREAD_INCLUDE_DIR=${stdenv.glibc}/include"
"-DPTHREAD_LIBRARY=${stdenv.glibc}/lib/libpthread.so"
"-DCMAKE_BUILD_TYPE=Release"
"-DGTK2_GLIBCONFIG_INCLUDE_DIR=${glib}/lib/glib-2.0/include"
"-DGTK2_GDKCONFIG_INCLUDE_DIR=${gtk}/lib/gtk-2.0/include"
];
meta = with stdenv.lib; {
description = "Virtual lighttable and darkroom for photographers";
homepage = http://darktable.sourceforge.net;
license = licenses.gpl3Plus;
platforms = platforms.linux;
maintainers = [ maintainers.goibhniu ];
};
}

View file

@ -9,6 +9,10 @@ stdenv.mkDerivation {
buildInputs = [djvulibre qt4];
passthru = {
mozillaPlugin = "/lib/netscape/plugins";
};
meta = {
homepage = http://djvu.sourceforge.net/djview4.html;
description = "A new portable DjVu viewer and browser plugin";

View file

@ -1,34 +1,33 @@
a :
let
fetchurl = a.fetchurl;
{ stdenv, fetchurl, libjpeg, libexif, giflib, libtiff, libpng
, pkgconfig, freetype, fontconfig
}:
version = a.lib.attrByPath ["version"] "2.07" a;
buildInputs = with a; [
libjpeg libexif giflib libtiff libpng
imagemagick ghostscript which curl
pkgconfig freetype fontconfig
];
in
rec {
stdenv.mkDerivation rec {
name = "fbida-2.07";
src = fetchurl {
url = "http://dl.bytesex.org/releases/fbida/fbida-${version}.tar.gz";
url = "http://dl.bytesex.org/releases/fbida/${name}.tar.gz";
sha256 = "0i6v3fvjc305pfw48sglb5f22lwxldmfch6mjhqbcp7lqkkxw435";
};
inherit buildInputs;
configureFlags = [];
makeFlags = [
"prefix=$out"
"verbose=yes"
];
preBuild =
''
# Fetch a segfault in exiftran (http://bugs.gentoo.org/284753).
# `fbida' contains a copy of some internal libjpeg source files.
# If these do not match with the actual libjpeg, exiftran may
# fail.
tar xvf ${libjpeg.src}
for i in jpegint.h jpeglib.h jinclude.h transupp.c transupp.h; do
cp jpeg-*/$i jpeg/
done
'';
buildInputs =
[ pkgconfig libexif libjpeg giflib libpng giflib freetype fontconfig ];
makeFlags = [ "prefix=$(out)" "verbose=yes" ];
/* doConfigure should be removed if not needed */
phaseNames = ["doMakeInstall" (a.doPatchShebangs "$out/bin")];
name = "fbida-" + version;
meta = {
description = "Framebuffer image viewing programs";
maintainers = [
];
description = "Image viewing and manipulation programs";
};
}

View file

@ -1,15 +1,15 @@
{ stdenv, fetchurl, x11, imlib2, libjpeg, libpng, giblib
, libXinerama }:
, libXinerama, curl }:
stdenv.mkDerivation {
name = "feh-1.6.1";
name = "feh-1.14.2";
src = fetchurl {
url = http://www.chaosdorf.de/~derf/feh/feh-1.6.1.tar.bz2;
sha256 = "1mv09b34ar0dx4wl22xak2g554xgpylicqy5zbnk3bh66vn9pxz2";
url = http://feh.finalrewind.org/feh-1.14.2.tar.bz2;
sha256 = "117g1caihil88a3q0qy9gqj521l3illlsk56cgxhpc2am6ch5nwr";
};
buildInputs = [x11 imlib2 giblib libjpeg libpng libXinerama];
buildInputs = [x11 imlib2 giblib libjpeg libpng libXinerama curl];
preBuild = ''
makeFlags="PREFIX=$out"

View file

@ -0,0 +1,55 @@
Index: src/3rdParty/salomesmesh/CMakeLists.txt
===================================================================
--- a/src/3rdParty/salomesmesh/CMakeLists.txt (revision 4193)
+++ a/src/3rdParty/salomesmesh/CMakeLists.txt (working copy)
@@ -191,7 +191,7 @@
INCLUDE_DIRECTORIES(src/StdMeshers)
ADD_LIBRARY(StdMeshers SHARED ${StdMeshers_source_files})
-TARGET_LINK_LIBRARIES(StdMeshers SMESH TKernel TKMath TKAdvTools f2c)
+TARGET_LINK_LIBRARIES(StdMeshers SMESH TKernel TKMath TKAdvTools f2c gfortran)
SET(StdMeshers_CFLAGS "")
IF(WIN32)
SET(StdMeshers_CFLAGS "-DSTDMESHERS_EXPORTS -DMEFISTO2D_EXPORTS")
@@ -218,9 +218,9 @@
# Libraries are installed by default in /usr/local/lib/SMESH-5.1.2.7
INSTALL(TARGETS SMDS Driver DriverSTL DriverDAT DriverUNV
SMESHDS SMESH StdMeshers
- DESTINATION /usr/local/lib/${INSTALL_PATH_NAME})
+ DESTINATION lib)
# Headers are installed by default in /usr/local/include/SMESH-5.1.2.7
INSTALL(DIRECTORY inc/
- DESTINATION /usr/local/include/${INSTALL_PATH_NAME}
+ DESTINATION include
FILES_MATCHING PATTERN "*.h*")
ENDIF(UNIX)
Index: src/3rdParty/Pivy-0.5/CMakeLists.txt
===================================================================
--- a/src/3rdParty/Pivy-0.5/CMakeLists.txt (revision 4193)
+++ a/src/3rdParty/Pivy-0.5/CMakeLists.txt (working copy)
@@ -56,6 +56,7 @@
set_target_properties(coin PROPERTIES OUTPUT_NAME "_coin")
set_target_properties(coin PROPERTIES LIBRARY_OUTPUT_DIRECTORY ${CMAKE_BINARY_DIR}/bin/pivy)
set_target_properties(coin PROPERTIES PREFIX "")
+ install(TARGETS coin DESTINATION bin/pivy)
endif(MSVC)
fc_copy_sources_outpath("bin/pivy" "coin"
Index: CMakeLists.txt
===================================================================
--- a/CMakeLists.txt (revision 4193)
+++ a/CMakeLists.txt (working copy)
@@ -57,13 +57,6 @@
# ================================================================================
-
-if(WIN32)
- SET(CMAKE_INSTALL_PREFIX ${CMAKE_BINARY_DIR})
-else(WIN32)
- SET(CMAKE_INSTALL_PREFIX "/usr/lib/freecad")
-endif(WIN32)
-
# ================================================================================
# == Win32 is default behaviour use the LibPack copied in Source tree ============
if(MSVC)

View file

@ -0,0 +1,47 @@
{ fetchsvn, stdenv, cmake, coin3d, xercesc, ode, eigen, qt4, opencascade, gts,
boost, zlib,
python, swig, gfortran, soqt, libf2c, pyqt4, makeWrapper }:
# It builds but fails to install
stdenv.mkDerivation rec {
name = "freecad-${version}";
version = "svn-${src.rev}";
src = fetchsvn {
url = https://free-cad.svn.sourceforge.net/svnroot/free-cad/trunk;
rev = "4184";
sha256 = "26bd8407ce38f070b81ef39145aed093eed3c200d165a605b8169162d66568ce";
};
buildInputs = [ cmake coin3d xercesc ode eigen qt4 opencascade gts boost
zlib python swig gfortran soqt libf2c pyqt4 makeWrapper ];
enableParallelBuilding = true;
# The freecad people are used to boost 1.42, and we have newer boost that
# require the -DBOOST_FILESYSTEM_VERSION=2 for freecad to build
# For zlib to build in i686-linux, as g++ plus glibc defines _LARGEFILE64_SOURCE,
# we need the -D-FILE_OFFSET_BITS=64 indication for zlib headers to work.
NIX_CFLAGS_COMPILE = "-DBOOST_FILESYSTEM_VERSION=2 -D_FILE_OFFSET_BITS=64";
# This should work on both x86_64, and i686 linux
preBuild = ''
export NIX_LDFLAGS="-L${gfortran.gcc}/lib64 -L${gfortran.gcc}/lib $NIX_LDFLAGS";
'';
postInstall = ''
wrapProgram $out/bin/FreeCAD --prefix PYTHONPATH : $PYTHONPATH \
--set COIN_GL_NO_CURRENT_CONTEXT_CHECK 1
'';
patches = [ ./cmakeinstall.patch ./pythonpath.patch ];
meta = {
homepage = http://free-cad.sourceforge.net/;
license = [ "GPLv2+" "LGPLv2+" ];
description = "General purpose Open Source 3D CAD/MCAD/CAx/CAE/PLM modeler";
maintainers = with stdenv.lib.maintainers; [viric];
platforms = with stdenv.lib.platforms; linux;
};
}

View file

@ -0,0 +1,19 @@
http://sourceforge.net/apps/phpbb/free-cad/viewtopic.php?f=4&t=847&p=6364
Index: src/Main/MainGui.cpp
===================================================================
--- a/src/Main/MainGui.cpp (revision 4193)
+++ a/src/Main/MainGui.cpp (working copy)
@@ -149,10 +149,10 @@
// http://bugs.debian.org/cgi-bin/bugreport.cgi?bug=559846
putenv("LANG=C");
putenv("LC_ALL=C");
- putenv("PYTHONPATH=");
+ //putenv("PYTHONPATH=");
#else
setlocale(LC_NUMERIC, "C");
- _putenv("PYTHONPATH=");
+ //_putenv("PYTHONPATH=");
#endif
// Name and Version of the Application

View file

@ -1,5 +1,5 @@
{ stdenv, fetchurl, pkgconfig, gtk, libpng, exiv2, lcms
, intltool, gettext, libchamplain }:
, intltool, gettext, libchamplain, fbida }:
stdenv.mkDerivation rec {
name = "geeqie-1.0";
@ -23,6 +23,14 @@ stdenv.mkDerivation rec {
libchamplain
];
postInstall =
''
# Allow geeqie to find exiv2 and exiftran, necessary to
# losslessly rotate JPEG images.
sed -i $out/lib/geeqie/geeqie-rotate \
-e '1 a export PATH=${exiv2}/bin:${fbida}/bin:$PATH'
'';
meta = {
description = "Geeqie, a lightweight GTK+ based image viewer";

View file

@ -0,0 +1,44 @@
Get the environment propagated to scons forked childs, and correct the dicom plugin about
a typedef of size_t that failed at least on x86_64-linux.
diff --git a/SConstruct b/SConstruct
index 16eccd9..603e931 100644
--- a/SConstruct
+++ b/SConstruct
@@ -7,8 +7,7 @@ else:
cppflags = ['-O2']
variant = 'Release'
-env = Environment(LIBPATH=[],
- CPPFLAGS = cppflags)
+env = Environment(ENV = os.environ)
env['SBOX'] = False
diff --git a/giv/SConstruct b/giv/SConstruct
index 047839a..2c267aa 100644
--- a/giv/SConstruct
+++ b/giv/SConstruct
@@ -3,8 +3,9 @@
import sys
import re
+import os
-env = Environment()
+env = Environment(ENV = os.environ)
src = ["giv.c",
"giv-backstore.c",
diff --git a/src/plugins/dcmtk/SConstruct.standalone b/src/plugins/dcmtk/SConstruct.standalone
index ffce001..74246f8 100644
--- a/src/plugins/dcmtk/SConstruct.standalone
+++ b/src/plugins/dcmtk/SConstruct.standalone
@@ -1,4 +1,6 @@
-env = Environment()
+import os
+
+env = Environment(ENV = os.environ)
variant = "Debug"

View file

@ -0,0 +1,35 @@
{ stdenv, fetchurl, gdk_pixbuf, scons, pkgconfig, gtk, glib,
pcre, cfitsio, perl, gob2, vala, libtiff }:
stdenv.mkDerivation rec {
name = "giv-0.9.19";
src = fetchurl {
url = "mirror://sourceforge/giv/${name}.tar.gz";
sha256 = "07sgpp4k27417ymavcvil4waq6ac2mj08g42g1l52l435xm5mnh7";
};
# It built code to be put in a shared object without -fPIC
NIX_CFLAGS_COMPILE = "-fPIC";
prePatch = ''
sed -i s,/usr/bin/perl,${perl}/bin/perl, doc/eperl
sed -i s,/usr/local,$out, SConstruct
'';
patches = [ ./build.patch ./union.patch ];
buildPhase = "scons";
installPhase = "scons install";
buildInputs = [ gdk_pixbuf pkgconfig gtk glib scons pcre cfitsio perl gob2 vala libtiff ];
meta = {
description = "Cross platform image and hierarchical vector viewer based";
homepage = http://giv.sourceforge.net/giv/;
license = "GPLv2+";
maintainers = with stdenv.lib.maintainers; [viric];
platforms = with stdenv.lib.platforms; linux;
};
}

View file

@ -0,0 +1,38 @@
Already reported uptream
diff --git a/src/giv-data.h b/src/giv-data.h
index 64e7696..d34bfe4 100644
--- a/src/giv-data.h
+++ b/src/giv-data.h
@@ -88,7 +88,7 @@ typedef struct
typedef struct
{
gint op;
- union
+ struct
{
struct
{
diff --git a/src/giv_types.h b/src/giv_types.h
index 02abebe..c3cfb78 100644
--- a/src/giv_types.h
+++ b/src/giv_types.h
@@ -11,13 +11,11 @@ typedef struct {
typedef struct {
gint op;
- union {
- struct {
- gdouble x,y;
- } point;
- double arc_dev;
- text_mark_t *text_object;
- } data;
+ struct {
+ gdouble x,y;
+ } point;
+ double arc_dev;
+ text_mark_t *text_object;
} point_t;
typedef struct {

View file

@ -3,11 +3,11 @@
glew, libXmu, libXi }:
stdenv.mkDerivation rec {
name = "hugin-2010.0.0";
name = "hugin-2010.4.0";
src = fetchurl {
url = "mirror://sourceforge/hugin/${name}.tar.gz";
sha256 = "08xm7ggfrh536lqvdzw7zg09p2awbclw5r7i8c59gf092w1cac7d";
url = "mirror://sourceforge/hugin/${name}.tar.bz2";
sha256 = "13n3p4f39mbdydsjqy48csjgvv30lfcwvln5y5dyy95lyrfwcp6l";
};
NIX_CFLAGS_COMPILE = "-I${ilmbase}/include/OpenEXR";

View file

@ -4,11 +4,11 @@
, gsl, python, pyxml, lxml, poppler }:
stdenv.mkDerivation rec {
name = "inkscape-0.48.0";
name = "inkscape-0.48.1";
src = fetchurl {
url = "mirror://sourceforge/inkscape/${name}.tar.bz2";
sha256 = "0w72xf76vxpm3fpslmix0x71l2rd2sdhrvgwx2vk7hxfjqdxib1n";
sha256 = "11mvwil787pj3kx3qvjqvd6z5hlk40i6g95g4vs52hrp2ifs9ga4";
};
patches = [ ./configure-python-libs.patch ];

View file

@ -0,0 +1,38 @@
{ stdenv, fetchsvn, buildPythonPackage, python, pyGtkGlade, makeWrapper, pyexiv2, lxml, pil, fbida, which }:
buildPythonPackage {
name = "jbrout-338";
version = "338";
src = fetchsvn {
url = "http://jbrout.googlecode.com/svn/trunk";
rev = "338";
sha256 = "0257ni4vkxgd0qhs73fw5ppw1qpf11j8fgwsqc03b1k1yv3hk4hf";
};
doCheck = false;
# XXX: preConfigure to avoid this
# File "/nix/store/vnyjxn6h3rbrn49m25yyw7i1chlxglhw-python-2.7.1/lib/python2.7/zipfile.py", line 348, in FileHeader
# len(filename), len(extra))
#struct.error: ushort format requires 0 <= number <= USHRT_MAX
preConfigure = ''
find | xargs touch
'';
postInstall = ''
ensureDir $out/bin
echo '#!/bin/sh' > $out/bin/jbrout
echo "python $out/lib/python2.7/site-packages/jbrout-src-py2.7.egg/jbrout/jbrout.py" >> $out/bin/jbrout
chmod +x $out/bin/jbrout
wrapProgram $out/bin/jbrout \
--set PYTHONPATH "$out/lib/python:$(toPythonPath ${pyGtkGlade})/gtk-2.0:$(toPythonPath ${pyexiv2}):$(toPythonPath ${lxml}):$(toPythonPath ${pil}):$PYTHONPATH" \
--set PATH "${fbida}/bin:${which}/bin:$PATH"
'';
buildInputs = [ python pyGtkGlade makeWrapper pyexiv2 lxml pil fbida which ];
meta = {
homepage = "http://code.google.com/p/jbrout";
description = "jBrout is a photo manager";
};
}

View file

@ -1,20 +1,21 @@
{ stdenv, fetchurl, cmake, qt4, kdelibs, automoc4, phonon, qimageblitz, qca2,
kdegraphics, kdepimlibs, libxml2, libxslt, gettext, opencv, libgpod, gtk }:
{ stdenv, fetchurl, kdelibs, qimageblitz, qca2, libkexiv2, libkdcraw, libkipi
, libksane, kdepimlibs, libxml2, libxslt, gettext, opencv, libgpod, gdk_pixbuf
, qjson , pkgconfig }:
stdenv.mkDerivation rec {
name = "kipi-plugins-1.5.0";
name = "kipi-plugins-1.9.0";
src = fetchurl {
url = "mirror://sourceforge/kipi/${name}.tar.bz2";
sha256 = "1wsqh0lbsqyzdfmb9f53bmmypw00n80p62ym4pnxb8w0zwlhbkbw";
sha256 = "0k4k9v1rj7129n0s0i5pvv4rabx0prxqs6sca642fj95cxc6c96m";
};
buildInputs = [ cmake qt4 kdelibs kdegraphics automoc4 phonon qimageblitz qca2 kdepimlibs
libxml2 libxslt gettext opencv libgpod gtk ];
buildInputs =
[ kdelibs libkexiv2 libkdcraw libkipi qimageblitz qca2 kdepimlibs libxml2
libksane libxslt gettext opencv libgpod gdk_pixbuf qjson
];
KDEDIRS = kdegraphics;
patches = [ ./find-gdk.patch ];
buildNativeInputs = [ pkgconfig ];
meta = {
description = "Photo Management Program";

View file

@ -1,16 +0,0 @@
diff --git a/cmake/modules/FindGdk.cmake b/cmake/modules/FindGdk.cmake
index 033959a..ff61961 100644
--- a/cmake/modules/FindGdk.cmake
+++ b/cmake/modules/FindGdk.cmake
@@ -23,8 +23,9 @@ else (GDK_INCLUDE_DIR AND GDK_LIBRARIES)
set(GDK_DEFINITIONS ${_GDKCflags})
endif(NOT WIN32)
- FIND_PATH(GDK_INCLUDE_DIR gdk-pixbuf/gdk-pixbuf.h /usr/include/gtk-2.0
- ${_GDKIncDir}
+ FIND_PATH(GDK_INCLUDE_DIR gdk-pixbuf/gdk-pixbuf.h
+ HINTS ${_GDKIncDir}
+ PATH_SUFFIXES gtk-2.0
)
FIND_LIBRARY(GDK_LIBRARIES NAMES gdk_pixbuf-2.0

View file

@ -0,0 +1,26 @@
{stdenv, fetchurl, libtiff, gettext }:
stdenv.mkDerivation {
name = "minidjvu-0.8";
src = fetchurl {
url = mirror://sourceforge/minidjvu/minidjvu-0.8.tar.gz;
sha256 = "0jmpvy4g68k6xgplj9zsl6brg6vi81mx3nx2x9hfbr1f4zh95j79";
};
patchPhase = ''
sed -i s,/usr/bin/gzip,gzip, Makefile.in
'';
buildInputs = [ libtiff gettext];
preInstall = ''
ensureDir $out/lib
'';
meta = {
homepage = http://djvu.sourceforge.net/djview4.html;
description = "Black-and-white djvu page encoder and decoder that use interpage information";
license = "GPLv2+";
maintainers = [ stdenv.lib.maintainers.viric ];
};
}

View file

@ -0,0 +1,34 @@
{ fetchurl, stdenv }:
stdenv.mkDerivation rec {
name = "ocrad-0.21";
src = fetchurl {
url = "mirror://gnu/ocrad/${name}.tar.gz";
sha256 = "1k58ha70r0cqahssx67hfgyzia9ymf691yay06n7nrkbklii3isf";
};
doCheck = true;
meta = {
description = "GNU Ocrad, optical character recognition (OCR) program & library";
longDescription =
'' GNU Ocrad is an OCR (Optical Character Recognition) program based on
a feature extraction method. It reads images in pbm (bitmap), pgm
(greyscale) or ppm (color) formats and produces text in byte (8-bit)
or UTF-8 formats.
Also includes a layout analyser able to separate the columns or
blocks of text normally found on printed pages.
Ocrad can be used as a stand-alone console application, or as a
backend to other programs.
'';
license = "GPLv3+";
maintainers = [ stdenv.lib.maintainers.ludo ];
platforms = stdenv.lib.platforms.gnu; # arbitrary choice
};
}

View file

@ -1,20 +1,41 @@
{ fetchurl, stdenv, cmake, qt4 }:
{ fetchurl, stdenv, cmake, qt4
, hdf5
, mpich2
, python
, libxml2
, mesa
}:
stdenv.mkDerivation rec {
name = "paraview-3.8.1";
name = "paraview-3.10.1";
src = fetchurl {
url = "http://www.paraview.org/files/v3.8/ParaView-3.8.1.tar.gz";
sha256 = "0g169vc956gifkd90lcini63dkr5x3id3hkwcwxzriqamxr72r1p";
url = "http://www.paraview.org/files/v3.10/ParaView-3.10.1.tar.gz";
sha256 = "1z2wvywpd3rvz4jhfs3mi35hsx4yqkdim58d075jx9kg7gifwga5";
};
# [ 5%] Generating vtkGLSLShaderLibrary.h
# ../../../bin/ProcessShader: error while loading shared libraries: libvtksys.so.pv3.10: cannot open shared object file: No such file or directory
preConfigure = ''
export NIX_LDFLAGS="$NIX_LDFLAGS -rpath $out/lib/paraview-3.8"
export NIX_LDFLAGS="$NIX_LDFLAGS -rpath $out/lib/paraview-3.10 -rpath ../../../bin -rpath ../../bin"
'';
cmakeFlags = [
# "-DPARAVIEW_USE_MPI:BOOL=ON"
"-DPARAVIEW_USE_SYSTEM_HDF5:BOOL=ON"
"-DVTK_USE_SYSTEM_LIBXML2:BOOL=ON"
"-DPARAVIEW_ENABLE_PYTHON:BOOL=ON"
# use -DPARAVIEW_INSTALL_THIRD_PARTY_LIBRARIES:BOOL=OFF \ to fix make install error: http://www.cmake.org/pipermail/paraview/2011-February/020268.html
"-DPARAVIEW_INSTALL_THIRD_PARTY_LIBRARIES:BOOL=OFF"
"-DCMAKE_SKIP_BUILD_RPATH=ON"
"-DVTK_USE_RPATH:BOOL=ON"
"-DPARAVIEW_INSTALL_DEVELOPMENT=ON"
# "-DPYTHON_INCLUDE_DIR=${python}/include"
# "-DPYTHON_LIBRARY="
];
# I don't enable it due to memory bounds
enableParallelBuilding = false;
buildInputs = [ cmake qt4 ];
buildInputs = [ cmake qt4 hdf5 mpich2 python libxml2 mesa ];
meta = {
homepage = "http://www.paraview.org/";

View file

@ -0,0 +1,39 @@
{ stdenv, fetchurl, libtiff }:
let
f = lang : sha256 : let
src = fetchurl {
url = "http://tesseract-ocr.googlecode.com/files/${lang}.traineddata.gz";
inherit sha256;
};
in
"gunzip -c ${src} > $out/share/tessdata/${lang}.traineddata";
extraLanguages = ''
${f "cat" "1qndk8qygw9bq7nzn7kzgxkm3jhlq7jgvdqpj5id4rrcaavjvifw"}
${f "rus" "0yjzks189bgcmi2vr4v0l0fla11qdrw3cb1nvpxl9mdis8qr9vcc"}
${f "spa" "1q1hw3qi95q5ww3l02fbhjqacxm34cp65fkbx10wjdcg0s5p9q2x"}
${f "nld" "0cbqfhl2rwb1mg4y1140nw2vhhcilc0nk7bfbnxw6bzj1y5n49i8"}
'';
in
stdenv.mkDerivation {
name = "tesseract-3.0.0";
src = fetchurl {
url = http://tesseract-ocr.googlecode.com/files/tesseract-3.00.tar.gz;
sha256 = "111r9hy1rcs2ch4kdi9dkzwch3xg38vv379sf3cjpkswkigx8clw";
};
buildInputs = [ libtiff ];
postInstall = extraLanguages;
meta = {
description = "OCR engine";
homepage = http://code.google.com/p/tesseract-ocr/;
license = "Apache2.0";
maintainers = with stdenv.lib.maintainers; [viric];
platforms = with stdenv.lib.platforms; linux;
};
}

View file

@ -1,30 +1,29 @@
{ stdenv, fetchurl, pkgconfig, bc, perl, pam
, libXext, libXScrnSaver, libX11, libXrandr, libXmu, libXxf86vm, libXrender
, libXxf86misc
, libjpeg, mesa, gtk , libxml2, libglade}:
, libjpeg, mesa, gtk, libxml2, libglade
}:
stdenv.mkDerivation rec {
version = "5.12";
version = "5.14";
name = "xscreensaver-${version}";
src = fetchurl {
url = "http://www.jwz.org/xscreensaver/${name}.tar.gz";
sha256="1knvxxr50iq3wrx1qsgg174gzv7xg8c74i1a66ff55f8flksa7di";
sha256 = "08zhxccdny7198x4yi3hm7jrw98bi3mnc1c4fwhmf5rf8l7h9siy";
};
buildInputs =
[ pkgconfig bc perl libjpeg mesa gtk libxml2 libglade pam
libXext libXScrnSaver libX11 libXrandr libXmu libXxf86vm libXrender
libXxf86misc ];
libXext libXScrnSaver libX11 libXrandr libXmu libXxf86vm libXrender
libXxf86misc
];
configureFlags =
[
"--with-gl" "--with-pam" "--with-pixbuf" "--with-proc-interrupts"
[ "--with-gl" "--with-pam" "--with-pixbuf" "--with-proc-interrupts"
"--with-dpms-ext" "--with-randr-ext" "--with-xinerama-ext"
"--with-xf86vmode-ext" "--with-xf86gamma-ext" "--with-randr-ext"
"--with-xshm-ext" "--with-xdbe-ext" "--without-readdisplay"
"--with-x-app-defaults=\${out}/share/xscreensaver/app-defaults"
];

View file

@ -1,15 +1,15 @@
{ stdenv, fetchurl, libX11, cups, glib, pango, atk, gtk, zlib, libxml2 }:
{ stdenv, fetchurl, libX11, cups, gtkLibs, zlib, libxml2 }:
assert stdenv.system == "i686-linux";
stdenv.mkDerivation {
name = "adobe-reader-9.4-1";
name = "adobe-reader-9.4.2-1";
builder = ./builder.sh;
src = fetchurl {
url = http://ardownload.adobe.com/pub/adobe/reader/unix/9.x/9.4.0/enu/AdbeRdr9.4-1_i486linux_enu.tar.bz2;
sha256 = "093msw0b5k3ab0vv7bh4n81fxp51s2lynvsm076i5jvlp71l8adf";
url = http://ardownload.adobe.com/pub/adobe/reader/unix/9.x/9.4.2/enu/AdbeRdr9.4.2-1_i486linux_enu.tar.bz2;
sha256 = "0xm8ngr7lslhxli9ly1g2w7ichip88vpf7lfx1ma0liaw4m2gv0h";
};
# !!! Adobe Reader contains copies of OpenSSL, libcurl, and libicu.
@ -17,7 +17,13 @@ stdenv.mkDerivation {
# versions.
libPath = stdenv.lib.makeLibraryPath
[ stdenv.gcc.gcc libX11 glib pango atk gtk zlib libxml2 cups ];
[ stdenv.gcc.gcc libX11 zlib libxml2 cups
gtkLibs.pango
gtkLibs.atk
gtkLibs.gtk
gtkLibs.glib
gtkLibs.gdk_pixbuf
];
meta = {
description = "Adobe Reader, a viewer for PDF documents";

View file

@ -0,0 +1,44 @@
{ fetchurl, stdenv, openssl, db4, boost, zlib, glib, libSM, gtk, wxGTK, miniupnpc }:
stdenv.mkDerivation rec {
version = "0.3.24";
name = "bitcoin-${version}";
src = fetchurl {
url = "mirror://sourceforge/project/bitcoin/Bitcoin/${name}/${name}-src.tar.gz";
sha256 = "18n8i37c478b275m2x82411i1fsw8l34qm1k65ynnw38fpaj4h3r";
};
buildInputs = [ openssl db4 boost zlib glib libSM gtk wxGTK miniupnpc ];
preConfigure = ''
cd src
substituteInPlace makefile.unix \
--replace "-Wl,-Bstatic" "" \
--replace "-Wl,-Bdynamic" "" \
--replace "DEBUGFLAGS=-g -D__WXDEBUG__" "DEBUGFLAGS=" \
'';
makefile = "makefile.unix";
buildFlags = "bitcoin bitcoind";
installPhase = ''
ensureDir $out/bin
cp bitcoin $out/bin
cp bitcoind $out/bin
'';
meta = {
description = "Bitcoin is a peer-to-peer currency";
longDescription=''
Bitcoin is a free open source peer-to-peer electronic cash system that is
completely decentralized, without the need for a central server or trusted
parties. Users hold the crypto keys to their own money and transact directly
with each other, with the help of a P2P network to check for double-spending.
'';
homepage = "http://www.bitcoin.org/";
maintainers = [ stdenv.lib.maintainers.roconnor ];
license = "MIT";
};
}

View file

@ -1,24 +1,27 @@
{stdenv, fetchurl, cmake, mesa, gettext, python, libjpeg, libpng, zlib, openal, SDL
, openexr, libsamplerate, libXi, libtiff, ilmbase }:
{ stdenv, fetchurl, SDL, cmake, gettext, ilmbase, libXi, libjpeg,
libpng, libsamplerate, libtiff, mesa, openal, openexr, openjpeg,
python, zlib }:
stdenv.mkDerivation rec {
name = "blender-2.50a1";
name = "blender-2.57";
src = fetchurl {
url = "http://download.blender.org/source/${name}.tar.gz";
sha256 = "1cik05fmf9b8z3qpwsm6q9h1ia87w1piz87hxhfs24jw6l5pyiwr";
sha256 = "1f4l0zkfmbd8ydzwvmb5jw89y7ywd9k8m2f1b3hrdpgjcqhq3lcb";
};
buildInputs = [ cmake mesa gettext python libjpeg libpng zlib openal SDL openexr libsamplerate
libXi libtiff ilmbase ];
buildInputs = [ cmake mesa gettext python libjpeg libpng zlib openal
SDL openexr libsamplerate libXi libtiff ilmbase openjpeg ];
cmakeFlags = [ "-DOPENEXR_INC=${openexr}/include/OpenEXR" "-DWITH_OPENCOLLADA=OFF"
"-DPYTHON_LIBPATH=${python}/lib" ];
patchPhase = ''
sed -e "s@/usr/local@${python}@" -i build_files/cmake/FindPythonLibsUnix.cmake
'';
cmakeFlags = [ "-DOPENEXR_INC=${openexr}/include/OpenEXR"
"-DWITH_OPENCOLLADA=OFF" "-DWITH_INSTALL_PORTABLE=OFF"];
NIX_CFLAGS_COMPILE = "-iquote ${ilmbase}/include/OpenEXR -I${python}/include/${python.libPrefix}";
patches = [ ./python-chmod.patch ];
meta = {
description = "3D Creation/Animation/Publishing System";
homepage = http://www.blender.org;

View file

@ -1,14 +0,0 @@
As the code copied from the nix store, the files there do not have the 'writeable' permission.
Hence this fix, needed on nix but not on usual LSB linuces.
diff --git a/source/creator/CMakeLists.txt b/source/creator/CMakeLists.txt
index 386ef1b..6a180fa 100644
--- a/source/creator/CMakeLists.txt
+++ b/source/creator/CMakeLists.txt
@@ -152,6 +152,7 @@ IF(WITH_INSTALL)
COMMAND mkdir ${TARGETDIR}/.blender/python # PYTHONPATH and PYTHONHOME is set here
COMMAND mkdir ${TARGETDIR}/.blender/python/lib/
COMMAND cp -R ${PYTHON_LIBPATH}/python${PYTHON_VERSION} ${TARGETDIR}/.blender/python/lib/
+ COMMAND chmod -R +w ${TARGETDIR}/.blender/python/lib/
COMMAND rm -rf ${TARGETDIR}/.blender/python/lib/python${PYTHON_VERSION}/distutils
COMMAND rm -rf ${TARGETDIR}/.blender/python/lib/python${PYTHON_VERSION}/lib2to3

View file

@ -1,6 +1,6 @@
{ stdenv, fetchurl, python, pyqt4, sip, popplerQt4, pkgconfig, libpng
, imagemagick, libjpeg, fontconfig, podofo, qt4, mechanize, lxml, dateutil
, pil, cssutils, beautifulsoap, makeWrapper, unrar, chmlib
, imagemagick, libjpeg, fontconfig, podofo, qt4
, pil, makeWrapper, unrar, chmlib, pythonPackages
}:
stdenv.mkDerivation rec {
@ -15,8 +15,9 @@ stdenv.mkDerivation rec {
buildInputs =
[ python pyqt4 sip popplerQt4 pkgconfig libpng imagemagick libjpeg
fontconfig podofo qt4 mechanize lxml dateutil pil makeWrapper
cssutils beautifulsoap chmlib
fontconfig podofo qt4 pil makeWrapper chmlib
pythonPackages.mechanize pythonPackages.lxml pythonPackages.dateutil
pythonPackages.cssutils pythonPackages.beautifulsoap pythonPackages.sqlite3
];
installPhase = ''

View file

@ -1,12 +1,12 @@
{ stdenv, fetchurl, lib, useQt3 ? false, libjpeg, libtiff, libpng, ghostscript
, libungif, zlib, x11, libX11, mesa, qt3 }:
stdenv.mkDerivation {
name = "djvulibre-3.5.22";
stdenv.mkDerivation rec {
name = "djvulibre-3.5.24";
src = fetchurl {
url = mirror://sourceforge/djvu/djvulibre-3.5.22.tar.gz;
sha256 = "1gphi67qiq1ky7k8vymkwcgla80cwy8smk1rla6grxdqipwl54ix";
url = "mirror://sourceforge/djvu/${name}.tar.gz";
sha256 = "0d1592cmc7scg2jzah47mnvbqldhxb1x9vxm7y64a3iasa0lqwy0";
};
buildInputs = [ libjpeg libtiff libpng ghostscript zlib libungif ] ++

View file

@ -1,11 +1,11 @@
{stdenv, fetchurl, libX11, libXinerama}:
stdenv.mkDerivation rec {
name = "dmenu-4.1.1";
name = "dmenu-4.4";
src = fetchurl {
url = "http://dl.suckless.org/tools/${name}.tar.gz";
sha256 = "02p687yi3fmnpkbvnskpryz54dc4i8pzf1spxc554s91wrd7fpwy";
sha256 = "016hfnmk4kb2n3slxrg4z27p2l8x1awqsig961syssw4p1zybpav";
};
buildInputs = [ libX11 libXinerama ];

View file

@ -1,9 +1,9 @@
{ stdenv, fetchurl, pkgconfig, gtk, poppler }:
stdenv.mkDerivation rec {
name = "epdfview-0.1.7";
name = "epdfview-0.1.8";
src = fetchurl {
url = "http://trac.emma-soft.com/epdfview/chrome/site/releases/${name}.tar.bz2";
sha256 = "1s2af09ij5jjqryv4dl10flsdk5p953qp94dymn93fnl93rv1yqa";
sha256 = "1w7qybh8ssl4dffi5qfajq8mndw7ipsd92vkim03nywxgjp4i1ll";
};
buildInputs = [ pkgconfig gtk poppler ];
meta = {

View file

@ -3,16 +3,16 @@
, libgnome, libgnomeui, scrollkeeper, libxslt
, libglade, gnome_keyring, dbus, dbus_glib
, poppler, libspectre, djvulibre, shared_mime_info
, makeWrapper, which
, makeWrapper, which, ghostscript
, recentListSize ? null # 5 is not enough, allow passing a different number
}:
stdenv.mkDerivation rec {
name = "evince-2.26.0";
name = "evince-2.32.0";
src = fetchurl {
url = "http://ftp.gnome.org/pub/GNOME/sources/evince/2.26/${name}.tar.bz2";
sha256 = "1wsl5vdrj0829wq223dryq5p7izgzsz6mfl4igix7b5wga42zff1";
url = "http://ftp.gnome.org/pub/GNOME/sources/evince/2.32/${name}.tar.bz2";
sha256 = "2a4c91ae38f8b5028cebb91b9da9ddc50ea8ae3f3d429df89ba351da2d787ff7";
};
buildInputs = [
@ -21,10 +21,13 @@ stdenv.mkDerivation rec {
scrollkeeper gnome_keyring
libxslt # for `xsltproc'
dbus dbus_glib poppler libspectre djvulibre makeWrapper which
ghostscript
];
configureFlags = "--with-libgnome --enable-dbus --enable-pixbuf "
# Do not use nautilus
+ " --disable-nautilus "
# Do not update Scrollkeeper's database (GNOME's help system).
+ "--disable-scrollkeeper";
@ -37,7 +40,7 @@ stdenv.mkDerivation rec {
# Tell Glib/GIO about the MIME info directory, which is used
# by `g_file_info_get_content_type ()'.
wrapProgram "$out/bin/evince" \
--set XDG_DATA_DIRS "${shared_mime_info}/share"
--prefix XDG_DATA_DIRS : "${shared_mime_info}/share:$out/share"
'';
meta = {
@ -53,4 +56,4 @@ stdenv.mkDerivation rec {
license = "GPLv2+";
};
}
}

View file

@ -1,18 +1,33 @@
args: with args;
{ stdenv, fetchurl, openssl }:
let
version = "6.3.20";
in
stdenv.mkDerivation {
name="fetchmail-6.3.8";
name="fetchmail-${version}";
src = fetchurl {
url = http://download.berlios.de/fetchmail/fetchmail-6.3.8.tar.bz2;
sha256 = "5612f9af367f641e0efd084f44fcf1889669e711dbd8c60f6b7953e494d1b09b";
url = "http://download.berlios.de/fetchmail/fetchmail-${version}.tar.bz2";
sha256 = "22e94f11d885cb9330a197fd80217d44f65e6b087e4d4b4d83e573adfc24aa7b";
};
buildInputs = [ openssl ];
configureFlags = "--with-ssl=${openssl}";
patches = [ ./security-fix.patch ];
meta = {
homepage = http://www.fetchmail.info;
homepage = "http://www.fetchmail.info/";
description = "a full-featured remote-mail retrieval and forwarding utility";
longDescription = ''
A full-featured, robust, well-documented remote-mail retrieval and
forwarding utility intended to be used over on-demand TCP/IP links
(such as SLIP or PPP connections). It supports every remote-mail
protocol now in use on the Internet: POP2, POP3, RPOP, APOP, KPOP,
all flavors of IMAP, ETRN, and ODMR. It can even support IPv6 and
IPSEC.
'';
platforms = stdenv.lib.platforms.unix;
maintainers = [ stdenv.lib.maintainers.simons ];
};
}

View file

@ -1,29 +0,0 @@
{ stdenv, fetchurl }:
stdenv.mkDerivation {
name = "flite-1.3-release";
src = fetchurl {
url = http://www.speech.cs.cmu.edu/flite/packed/flite-1.3/flite-1.3-release.tar.gz;
sha256 = "12wanxx57bbqgkag54dlqzv6h2kr9053p0z8mkxs0mqy03vja8lj";
};
buildPhase =
''
unset buildPhase
ensureDir $out/lib
buildPhase
'';
installPhase =
''
ensureDir $out/share/flite
cp -r bin $out
'';
meta = {
description = "Flite text to speech engine";
homepage = http://www.speech.cs.cmu.edu/flite/download.html;
license = "BSD as-is";
};
}

View file

@ -1,16 +1,16 @@
{ stdenv, fetchurl, glibc, mesa, freetype, glib, libSM, libICE, libXi, libXv,
libXrender, libXrandr, libXfixes, libXcursor, libXinerama, libXext, libX11, qt4,
zlib }:
{ stdenv, fetchurl, glibc, mesa, freetype, glib, libSM, libICE, libXi, libXv
, libXrender, libXrandr, libXfixes, libXcursor, libXinerama, libXext, libX11, qt4
, zlib, fontconfig }:
/* I haven't found any x86_64 package from them */
assert stdenv.system == "i686-linux";
stdenv.mkDerivation {
name = "googleearth-5.2.0001";
name = "googleearth-6.0.3.2197";
src = fetchurl {
url = http://dl.google.com/earth/client/current/GoogleEarthLinux.bin;
sha256 = "2e6fcbd2384446e2a6eed8ca23173e32c5f3f9ae4d1168e2e348c3924fd2bf30";
sha256 = "0bcpmnlk03382x577qbnbw3i6y08hr3qmg85pqj35scnl6van74c";
};
buildNativeInputs = [
@ -32,6 +32,7 @@ stdenv.mkDerivation {
libX11
qt4
zlib
fontconfig
];
phases = "unpackPhase installPhase";

View file

@ -1,5 +1,5 @@
{ stdenv, fetchurl, gtk, glib, pkgconfig, libgnome, libgnomeui, vte
, curl, cdparanoia, libid3tag }:
, curl, cdparanoia, libid3tag, ncurses }:
stdenv.mkDerivation {
name = "grip-3.2.0";
@ -9,9 +9,9 @@ stdenv.mkDerivation {
sha256 = "1jh5x35rq15n8ivlp9wbdx8x9mj6agf5rfdv8sd6gai851zsclas";
};
buildInputs = [ gtk glib pkgconfig libgnome libgnomeui vte curl cdparanoia libid3tag ];
buildInputs = [ gtk glib pkgconfig libgnome libgnomeui vte curl cdparanoia libid3tag ncurses ];
meta = {
meta = {
description = "GTK+-based audio CD player/ripper";
homepage = http://nostatic.org/grip;
license = "GPLv2";

View file

@ -1,11 +1,11 @@
{ stdenv, fetchurl, Xaw3d, ghostscriptX, perl }:
stdenv.mkDerivation rec {
name = "gv-3.7.1";
name = "gv-3.7.2";
src = fetchurl {
url = "mirror://gnu/gv/${name}.tar.gz";
sha256 = "0541p3jlxvvw4136250rizybrl8sqyg03avy0w4r4kiw9w5f31ys";
sha256 = "1cj03rb7xs0l3krax4z2llwnldh876p1h3p5vql4gygcxki8vhk2";
};
buildInputs = [ Xaw3d ghostscriptX perl ];

View file

@ -1,13 +1,11 @@
{ stdenv, fetchurl }:
stdenv.mkDerivation rec {
name = "hello-2.6";
name = "hello-2.7";
x = 108;
src = fetchurl {
url = "mirror://gnu/hello/${name}.tar.gz";
sha256 = "1h6fjkkwr7kxv0rl5l61ya0b49imzfaspy7jk9jas1fil31sjykl";
sha256 = "1h17p5lgg47lbr2cnp4qqkr0q0f0rpffyzmvs7bvc6vdrxdknngx";
};
doCheck = true;

View file

@ -1,6 +1,6 @@
{ stdenv, fetchurl, perl, gettext, makeWrapper, lib, PerlMagick,
TextMarkdown, URI, HTMLParser, HTMLScrubber, HTMLTemplate, TimeDate,
CGISession, CGIFormBuilder, DBFile, LocaleGettext, RpcXML, XMLSimple
{ stdenv, fetchurl, perl, gettext, makeWrapper, lib, PerlMagick, YAML
, TextMarkdown, URI, HTMLParser, HTMLScrubber, HTMLTemplate, TimeDate
, CGISession, CGIFormBuilder, DBFile, LocaleGettext, RpcXML, XMLSimple
, gitSupport ? false
, git ? null
, monotoneSupport ? false
@ -13,23 +13,22 @@ assert monotoneSupport -> (monotone != null);
let
name = "ikiwiki";
version = "3.20100704";
version = "3.20110715";
in
stdenv.mkDerivation {
name = "${name}-${version}";
src = fetchurl {
url = "http://ftp.de.debian.org/debian/pool/main/i/ikiwiki/${name}_${version}.tar.gz";
sha256 = "1kakh2bf9k0fhvqhn9p9g4wwck64if2y9z23zmlcrm02bw1m6lr9";
sha256 = "ef9cbe5ddf484e6b75de05cc6a5b51dfdff1f5920b1c4c66309b1409266df9c7";
};
buildInputs = [ perl TextMarkdown URI HTMLParser HTMLScrubber HTMLTemplate
TimeDate gettext makeWrapper DBFile CGISession CGIFormBuilder LocaleGettext
RpcXML XMLSimple PerlMagick]
RpcXML XMLSimple PerlMagick YAML]
++ stdenv.lib.optionals gitSupport [git]
++ stdenv.lib.optionals monotoneSupport [monotone];
patchPhase = ''
sed -i s@/usr/bin/perl@${perl}/bin/perl@ pm_filter mdwn2man
sed -i s@/etc/ikiwiki@$out/etc@ Makefile.PL
@ -42,11 +41,11 @@ stdenv.mkDerivation {
configurePhase = "perl Makefile.PL PREFIX=$out";
postInstall = ''
for a in $out/bin/*; do
for a in "$out/bin/"*; do
wrapProgram $a --suffix PERL5LIB : $PERL5LIB --prefix PATH : ${perl}/bin:$out/bin \
${lib.optionalString (git != null)
${lib.optionalString gitSupport
''--prefix PATH : ${git}/bin \''}
${lib.optionalString (monotone != null)
${lib.optionalString monotoneSupport
''--prefix PATH : ${monotone}/bin \''}
${lib.concatMapStrings (x: "--prefix PATH : ${x}/bin ") extraUtils}
done

View file

@ -0,0 +1,50 @@
{ stdenv, fetchurl, java }:
stdenv.mkDerivation rec {
pname = "jbidwatcher";
version = "2.1.5";
name = "${pname}-${version}";
src = fetchurl {
url = "http://www.jbidwatcher.com/download/JBidwatcher-${version}.jar";
sha256 = "0nrs9ly56cqn33dm1sjm53pzj1cf7jncwn4c8v0xyva4jqyz2y5p";
};
buildInputs = [ java ];
jarfile = "$out/share/java/${pname}/JBidwatcher.jar";
unpackPhase = "true";
buildPhase = "true";
installPhase = ''
ensureDir "$out/bin"
echo > "$out/bin/${pname}" "#!/bin/sh"
echo >>"$out/bin/${pname}" "${java}/bin/java -Xmx512m -jar ${jarfile}"
chmod +x "$out/bin/${pname}"
install -D -m644 ${src} ${jarfile}
'';
meta = {
homepage = "http://www.jbidwatcher.com/";
description = "monitor and snipe Ebay auctions";
license = "LGPL";
longDescription = ''
A Java-based application allowing you to monitor auctions you're
not part of, submit bids, snipe (bid at the last moment), and
otherwise track your auction-site experience. It includes
adult-auction management, MANY currencies (pound, dollar (US,
Canada, Australian, and New Taiwanese) and euro, presently),
drag-and-drop of auction URLs, an original, unique and powerful
'multisniping' feature, a relatively nice UI, and is known to work
cleanly under Linux, Windows, Solaris, and MacOSX from the same
binary.
'';
platforms = stdenv.lib.platforms.linux ++ stdenv.lib.platforms.darwin;
maintainers = [ stdenv.lib.maintainers.simons ];
};
}

View file

@ -1,29 +1,25 @@
{ stdenv, fetchurl, cmake, qt4, perl, shared_mime_info, libvorbis, taglib
, ffmpeg, flac, libsamplerate, libdvdread, lame, libsndfile, libmad, gettext
, kdelibs, kdemultimedia, cdrdao, cdrtools, dvdplusrwtools
, automoc4, phonon, makeWrapper
, kdelibs, kdemultimedia, automoc4, phonon, makeWrapper
}:
stdenv.mkDerivation rec {
name = "k3b-2.0.1";
name = "k3b-2.0.2";
src = fetchurl {
url = "mirror://sourceforge/k3b/${name}.tar.bz2";
sha256 = "1dyd3i2hqd5xs9rz4f8k74zca91j9sp72lhl0zws2cvqc474ccc6";
sha256 = "1kdpylz3w9bg02jg4mjhqz8bq1yb4xi4fqfl9139qcyjq4lny5xg";
};
buildInputs = [ cmake qt4 perl shared_mime_info libvorbis taglib
ffmpeg flac libsamplerate libdvdread lame libsndfile
libmad gettext stdenv.gcc.libc cdrdao cdrtools
kdelibs kdemultimedia automoc4 phonon dvdplusrwtools
libmad gettext stdenv.gcc.libc
kdelibs kdemultimedia automoc4 phonon
makeWrapper ];
postInstall = ''
wrapProgram $out/bin/k3b --suffix PATH : "${cdrdao}/bin:${dvdplusrwtools}/bin:${cdrtools}/bin"
'';
meta = with stdenv.lib; {
description = "CD/DVD Burning Application for KDE";
license = licenses.gpl2Plus;
maintainers = [ maintainers.sander maintainers.urkud ];
platforms = with stdenv.lib.platforms; linux;
};
}

View file

@ -0,0 +1,20 @@
{ stdenv, fetchurl, automoc4, cmake, kdelibs }:
stdenv.mkDerivation rec {
name = "wacomtablet-1.2.5";
src = fetchurl {
url = "http://kde-apps.org/CONTENT/content-files/114856-${name}.tar.gz";
sha256 = "11hfab6sqmhvd0m1grc9m9yfi0p7rk0bycj9wqgkgbc8cwgps6sf";
};
buildInputs = [ automoc4 cmake kdelibs ];
meta = with stdenv.lib; {
description = "KDE Wacom graphic tablet configuration tool";
license = "GPLv2";
homepage = http://kde-apps.org/content/show.php/wacom+tablet?content=114856;
platforms = platforms.linux;
maintainers = [ maintainers.goibhniu maintainers.urkud ];
};
}

View file

@ -0,0 +1,24 @@
{ stdenv, fetchurl, bzip2, qt4, libX11, xextproto, libXtst }:
stdenv.mkDerivation rec {
name = "keepassx-0.4.3";
src = fetchurl {
url = "mirror://sourceforge/keepassx/${name}.tar.gz";
sha256 = "cd901a0611ce57e62cf6df7eeeb1b690b5232302bdad8626994eb54adcfa1e85";
};
configurePhase = ''
qmake PREFIX=$out
'';
buildInputs = [ bzip2 qt4 libX11 xextproto libXtst ];
meta = {
description = "Qt password manager compatible with its Win32 and Pocket PC versions";
homepage = http://www.keepassx.org/;
license = stdenv.lib.licenses.gpl2;
maintainers = with stdenv.lib.maintainers; [qknight];
platforms = with stdenv.lib.platforms; linux;
};
}

View file

@ -1,4 +1,4 @@
{ stdenv, fetchurl, cmake, automoc4, kdelibs, taglib, exiv2, podofo, gettext}:
{ stdenv, fetchurl, cmake, automoc4, kdelibs, taglib, exiv2, podofo, gettext, qt, phonon }:
stdenv.mkDerivation rec {
name = "krename-4.0.4";
@ -8,7 +8,7 @@ stdenv.mkDerivation rec {
sha256 = "12qhclw1vbg5bv6619qd4408y8d1w26499gcr8gwhgfzk0v83hic";
};
buildInputs = [ cmake automoc4 kdelibs taglib exiv2 podofo gettext ];
buildInputs = [ cmake automoc4 kdelibs taglib exiv2 podofo gettext qt phonon ];
meta = {
homepage = http://www.krename.net;

View file

@ -1,4 +1,4 @@
{stdenv, fetchurl, cmake, qt4, perl, gettext, kdelibs, kdebase, automoc4, phonon}:
{stdenv, fetchurl, cmake, qt4, perl, gettext, kdelibs, kde_baseapps, automoc4, phonon}:
stdenv.mkDerivation rec {
name = "krusader-2.2.0-beta1";
@ -6,7 +6,7 @@ stdenv.mkDerivation rec {
url = "mirror://sourceforge/krusader/${name}.tar.bz2";
sha256 = "0rbk0hw8p1bb03w74gspljbzhvpbs3dcr6ckp38gh5r80mcmqfbs";
};
buildInputs = [ cmake qt4 perl gettext kdelibs automoc4 phonon kdebase ];
buildInputs = [ cmake qt4 perl gettext kdelibs automoc4 phonon kde_baseapps ];
meta = {
description = "Norton/Total Commander clone for KDE";
license = "GPL";

View file

@ -1,18 +1,18 @@
# I haven't put much effort into this expressions .. so some optional depencencies may be missing - Marc
{ fetchurl, stdenv, texLive, python, makeWrapper
, libX11, qt
, libX11, qt, xz
}:
stdenv.mkDerivation rec {
version = "1.6.5";
version = "2.0.0";
name = "lyx-${version}";
src = fetchurl {
url = "ftp://ftp.lyx.org/pub/lyx/stable/1.6.x/${name}.tar.bz2";
sha256 = "0xxj37l4ghaa2ij5nfxlg90rfw0znipigjlh271mfmwjw9ykcw1n";
url = "ftp://ftp.lyx.org/pub/lyx/stable/2.0.x/${name}.tar.xz";
sha256 = "a790951d6ed660b254e82d682b478665f119dd522ab4759fdeb5cd8d42f66f61";
};
buildInputs = [texLive qt python makeWrapper ];
buildInputs = [texLive qt python makeWrapper xz ];
# don't ask me why it can't find libX11.so.6
postInstall = ''

View file

@ -0,0 +1,23 @@
{ stdenv, fetchurl }:
stdenv.mkDerivation rec {
name = "makeself-2.1.5";
src = fetchurl {
url = "http://megastep.org/makeself/makeself.run";
sha256 = "0khs19xpid4ng0igrjyz3vsi6a5xyixrrrhgdxpdhd2wnf5nc9w2";
};
unpackPhase = "sh ${src}";
installPhase = ''
cd ${name}
ensureDir $out/{bin,share/{${name},man/man1}}
mv makeself.lsm README $out/share/${name}
mv makeself.sh $out/bin/makeself
mv makeself.1 $out/share/man/man1/
mv makeself-header.sh $out/share/${name}
sed -e 's|HEADER=`dirname $0`/makeself-header.sh|HEADER=`dirname $0`/../share/${name}/makeself-header.sh|' -i $out/bin/makeself
'';
meta = {
homepage = http://megastep.org/makeself;
description = "Utility to create self-extracting packages";
};
}

View file

@ -1,23 +1,23 @@
{stdenv, fetchurl, qt, boost}:
{stdenv, fetchurl, qt4, boost}:
stdenv.mkDerivation {
name = "merkaartor-0.16.0";
stdenv.mkDerivation rec {
name = "merkaartor-0.17.2";
src = fetchurl {
url = http://www.merkaartor.org/downloads/source/merkaartor-0.16.0.tar.bz2;
sha256 = "0l33vgwwkqj65i86qq5j33bbf6q02hs8r1frjnd7icqdaqqv08d7";
url = "http://merkaartor.be/attachments/download/253/merkaartor-0.17.2.tar.bz2";
sha256 = "0akhp9czzn39132mgj9h38nlh4l9ibzn3vh93bfs685zxyn4yps2";
};
configurePhase = ''
qmake -makefile PREFIX=$out
'';
buildInputs = [ qt boost ];
buildInputs = [ qt4 boost ];
meta = {
description = "An openstreetmap editor";
homepage = http://merkaartor.org/;
license = "GPLv2+";
maintainers = with stdenv.lib.maintainers; [viric];
platforms = qt.meta.platforms;
maintainers = with stdenv.lib.maintainers; [viric urkud];
inherit (qt4.meta) platforms;
};
}

View file

@ -1,4 +1,4 @@
{ stdenv, fetchurl, makeWrapper, autoconf, automake, boost, file, gettext
{ stdenv, fetchurl, makeWrapper, boost, file, gettext
, glib, glibc, gnome_keyring, gtk, gtkmm, intltool, libctemplate, libglade
, libgnome, libsigcxx, libtool, libuuid, libxml2, libzip, lua, mesa, mysql
, pango, paramiko, pcre, pexpect, pkgconfig, pycrypto, python, sqlite
@ -6,22 +6,20 @@
stdenv.mkDerivation rec {
pname = "mysql-workbench";
version = "5.2.30";
version = "5.2.33";
name = "${pname}-${version}";
src = fetchurl {
url = "http://mirror.services.wisc.edu/mysql/Downloads/MySQLGUITools/mysql-workbench-gpl-${version}-src.tar.gz";
sha256 = "0dlhnq7pv2ccgm0d7a3hzf9jxa09jzw36h0ljs9vw9q5nyd5kq71";
sha256 = "193iikz0wfm3yvazficxfiqb84f34psq0bcasp3l41n9dygbgldc";
};
buildInputs = [ autoconf automake boost file gettext glib glibc gnome_keyring gtk gtkmm intltool
buildInputs = [ boost file gettext glib glibc gnome_keyring gtk gtkmm intltool
libctemplate libglade libgnome libsigcxx libtool libuuid libxml2 libzip lua makeWrapper mesa
mysql paramiko pcre pexpect pkgconfig pycrypto python sqlite ];
preConfigure = ''
substituteInPlace $(pwd)/frontend/linux/workbench/mysql-workbench.in --replace "catchsegv" "${glibc}/bin/catchsegv"
./autogen.sh --prefix=$out
'';
postInstall = ''
@ -29,6 +27,7 @@ stdenv.mkDerivation rec {
--prefix LD_LIBRARY_PATH : "${python}/lib" \
--prefix LD_LIBRARY_PATH : "$(cat ${stdenv.gcc}/nix-support/orig-gcc)/lib64" \
--prefix PATH : "${gnome_keyring}/bin" \
--prefix PATH : "${python}/bin" \
--set PYTHONPATH $PYTHONPATH \
--run '
# The gnome-keyring-daemon must be running. To allow for environments like
@ -57,7 +56,7 @@ mkfifo $FIFOCTL
) &
exec 19> $FIFOCTL
'
'
'';
meta = with stdenv.lib; {

View file

@ -0,0 +1,30 @@
{stdenv, fetchurl, pkgconfig, neon, libusb, hal, openssl, udev}:
stdenv.mkDerivation {
name = "nut-2.6.1";
src = fetchurl {
url = http://www.networkupstools.org/source/2.6/nut-2.6.1.tar.gz;
sha256 = "f5c46b856c0cf5b7f0e4b22d82b670af64cc98717a90eaac8723dd402a181c00";
};
buildInputs = [pkgconfig neon libusb hal openssl udev];
configureFlags = [
"--with-all"
"--without-snmp" # Until we have it ...
"--without-powerman" # Until we have it ...
"--without-cgi"
];
meta = {
description = "Network UPS Tools";
longDescription = ''
Network UPS Tools is a collection of programs which provide a common
interface for monitoring and administering UPS, PDU and SCD hardware.
It uses a layered approach to connect all of the parts.
'';
homepage = http://www.networkupstools.org/;
platforms = with stdenv.lib.platforms; linux;
maintainers = with stdenv.lib.maintainers; [ pierron ];
};
}

Some files were not shown because too many files have changed in this diff Show more