forked from mirrors/nixpkgs
Merge remote-tracking branch 'upstream/master'
This commit is contained in:
commit
68abd5bedf
lib
nixos/modules
pkgs
applications
graphics
misc
networking/newsreaders/liferea
science/math/sloane
development
compilers/agda
libraries
haskell
DAV
GLFW
MFlow
Vec
attoparsec
auto-update
cgrep
cookie
generics-sop
ghc-mod
hsshellscript
network-metrics
pandoc-types
persistent-template
statistics
wai-logger
warp
yesod-bin
yesod-form
libgksu
default.nixlibgksu-2.0.0-fbsd.patchlibgksu-2.0.12-automake-1.11.2.patchlibgksu-2.0.12-fix-make-3.82.patchlibgksu-2.0.12-notests.patchlibgksu-2.0.12-revert-forkpty.patchlibgksu-2.0.7-libs.patchlibgksu-2.0.7-polinguas.patch
libva
qt-5
vaapi-intel
misc/intelgen4asm
pharo/vm
tools/misc/intel-gpu-tools
games/astromenace
servers
tools
filesystems/bindfs
misc/riemann-c-client
networking/chrony
system
text/peco
top-level
|
@ -65,6 +65,7 @@
|
|||
modulistic = "Pablo Costa <modulistic@gmail.com>";
|
||||
mornfall = "Petr Ročkai <me@mornfall.net>";
|
||||
msackman = "Matthew Sackman <matthew@wellquite.org>";
|
||||
notthemessiah = "Brian Cohen <brian.cohen.88@gmail.com>";
|
||||
ocharles = "Oliver Charles <ollie@ocharles.org.uk>";
|
||||
offline = "Jaka Hudoklin <jakahudoklin@gmail.com>";
|
||||
orbitz = "Malcolm Matalka <mmatalka@gmail.com>";
|
||||
|
@ -108,6 +109,7 @@
|
|||
winden = "Antonio Vargas Gonzalez <windenntw@gmail.com>";
|
||||
wizeman = "Ricardo M. Correia <rcorreia@wizy.org>";
|
||||
wjlroe = "William Roe <willroe@gmail.com>";
|
||||
wkennington = "William A. Kennington III <william@wkennington.com>";
|
||||
wmertens = "Wout Mertens <Wout.Mertens@gmail.com>";
|
||||
z77z = "Marco Maggesi <maggesi@math.unifi.it>";
|
||||
zef = "Zef Hemel <zef@zef.me>";
|
||||
|
|
|
@ -138,6 +138,7 @@
|
|||
znc = 128;
|
||||
polipo = 129;
|
||||
mopidy = 130;
|
||||
unifi = 131;
|
||||
|
||||
# When adding a uid, make sure it doesn't match an existing gid. And don't use uids above 399!
|
||||
|
||||
|
|
|
@ -233,6 +233,7 @@
|
|||
./services/networking/teamspeak3.nix
|
||||
./services/networking/tftpd.nix
|
||||
./services/networking/unbound.nix
|
||||
./services/networking/unifi.nix
|
||||
./services/networking/vsftpd.nix
|
||||
./services/networking/wakeonlan.nix
|
||||
./services/networking/websockify.nix
|
||||
|
|
|
@ -8,10 +8,6 @@ let
|
|||
configFile = pkgs.writeText "logrotate.conf"
|
||||
cfg.config;
|
||||
|
||||
cronJob = ''
|
||||
5 * * * * root ${pkgs.logrotate}/sbin/logrotate ${configFile}
|
||||
'';
|
||||
|
||||
in
|
||||
{
|
||||
options = {
|
||||
|
@ -33,6 +29,16 @@ in
|
|||
};
|
||||
|
||||
config = mkIf cfg.enable {
|
||||
services.cron.systemCronJobs = [ cronJob ];
|
||||
systemd.services.logrotate = {
|
||||
description = "Logrotate Service";
|
||||
wantedBy = [ "multi-user.target" ];
|
||||
startAt = "*-*-* *:05:00";
|
||||
|
||||
serviceConfig.Restart = "no";
|
||||
serviceConfig.User = "root";
|
||||
script = ''
|
||||
exec ${pkgs.logrotate}/sbin/logrotate ${configFile}
|
||||
'';
|
||||
};
|
||||
};
|
||||
}
|
||||
|
|
88
nixos/modules/services/networking/unifi.nix
Normal file
88
nixos/modules/services/networking/unifi.nix
Normal file
|
@ -0,0 +1,88 @@
|
|||
{ config, lib, pkgs, ... }:
|
||||
with lib;
|
||||
let
|
||||
cfg = config.services.unifi;
|
||||
stateDir = "/var/lib/unifi";
|
||||
cmd = "@${pkgs.icedtea7_jre}/bin/java java -jar ${stateDir}/lib/ace.jar";
|
||||
in
|
||||
{
|
||||
|
||||
options = {
|
||||
|
||||
services.unifi.enable = mkOption {
|
||||
type = types.uniq types.bool;
|
||||
default = false;
|
||||
description = ''
|
||||
Whether or not to enable the unifi controller service.
|
||||
'';
|
||||
};
|
||||
|
||||
};
|
||||
|
||||
config = mkIf cfg.enable {
|
||||
|
||||
users.extraUsers.unifi = {
|
||||
uid = config.ids.uids.unifi;
|
||||
description = "UniFi controller daemon user";
|
||||
home = "${stateDir}";
|
||||
};
|
||||
|
||||
# We must create the binary directories as bind mounts instead of symlinks
|
||||
# This is because the controller resolves all symlinks to absolute paths
|
||||
# to be used as the working directory.
|
||||
systemd.mounts = map ({ what, where }: {
|
||||
bindsTo = [ "unifi.service" ];
|
||||
requiredBy = [ "unifi.service" ];
|
||||
before = [ "unifi.service" ];
|
||||
options = "bind";
|
||||
what = what;
|
||||
where = where;
|
||||
}) [
|
||||
{
|
||||
what = "${pkgs.unifi}/dl";
|
||||
where = "${stateDir}/dl";
|
||||
}
|
||||
{
|
||||
what = "${pkgs.unifi}/lib";
|
||||
where = "${stateDir}/lib";
|
||||
}
|
||||
{
|
||||
what = "${pkgs.mongodb}/bin";
|
||||
where = "${stateDir}/bin";
|
||||
}
|
||||
];
|
||||
|
||||
systemd.services.unifi = {
|
||||
description = "UniFi controller daemon";
|
||||
wantedBy = [ "multi-user.target" ];
|
||||
after = [ "network.target" ];
|
||||
|
||||
preStart = ''
|
||||
# Ensure privacy of state
|
||||
chown unifi "${stateDir}"
|
||||
chmod 0700 "${stateDir}"
|
||||
|
||||
# Create the volatile webapps
|
||||
mkdir -p "${stateDir}/webapps"
|
||||
chown unifi "${stateDir}/webapps"
|
||||
ln -s "${pkgs.unifi}/webapps/ROOT.war" "${stateDir}/webapps/ROOT.war"
|
||||
'';
|
||||
|
||||
postStop = ''
|
||||
rm "${stateDir}/webapps/ROOT.war"
|
||||
'';
|
||||
|
||||
serviceConfig = {
|
||||
Type = "simple";
|
||||
ExecStart = "${cmd} start";
|
||||
ExecStop = "${cmd} stop";
|
||||
User = "unifi";
|
||||
PermissionsStartOnly = true;
|
||||
UMask = "0077";
|
||||
WorkingDirectory = "${stateDir}";
|
||||
};
|
||||
};
|
||||
|
||||
};
|
||||
|
||||
}
|
|
@ -180,4 +180,4 @@ echo "starting systemd..."
|
|||
PATH=/run/current-system/systemd/lib/systemd \
|
||||
MODULE_DIR=/run/booted-system/kernel-modules/lib/modules \
|
||||
LOCALE_ARCHIVE=/run/current-system/sw/lib/locale/locale-archive \
|
||||
exec systemd --log-target=journal # --log-level=debug --log-target=console --crash-shell
|
||||
exec systemd
|
||||
|
|
|
@ -66,13 +66,22 @@ let kernel = config.boot.kernelPackages.kernel; in
|
|||
# Panic if an error occurs in stage 1 (rather than waiting for
|
||||
# user intervention).
|
||||
boot.kernelParams =
|
||||
[ "console=tty1" "console=ttyS0" "panic=1" "boot.panic_on_fail" ];
|
||||
[ "console=ttyS0" "panic=1" "boot.panic_on_fail" ];
|
||||
|
||||
# `xwininfo' is used by the test driver to query open windows.
|
||||
environment.systemPackages = [ pkgs.xorg.xwininfo ];
|
||||
|
||||
# Log everything to the serial console.
|
||||
services.journald.console = "/dev/console";
|
||||
services.journald.extraConfig =
|
||||
''
|
||||
ForwardToConsole=yes
|
||||
MaxLevelConsole=debug
|
||||
'';
|
||||
|
||||
# Don't clobber the console with duplicate systemd messages.
|
||||
systemd.extraConfig = "ShowStatus=no";
|
||||
|
||||
boot.consoleLogLevel = 7;
|
||||
|
||||
# Prevent tests from accessing the Internet.
|
||||
networking.defaultGateway = mkOverride 150 "";
|
||||
|
@ -88,6 +97,9 @@ let kernel = config.boot.kernelPackages.kernel; in
|
|||
|
||||
networking.usePredictableInterfaceNames = false;
|
||||
|
||||
# Make it easy to log in as root when running the test interactively.
|
||||
security.initialRootPassword = mkDefault "";
|
||||
|
||||
};
|
||||
|
||||
}
|
||||
|
|
|
@ -12,7 +12,7 @@ in {
|
|||
virtualbox = {
|
||||
baseImageSize = mkOption {
|
||||
type = types.str;
|
||||
default = 10G;
|
||||
default = "10G";
|
||||
description = ''
|
||||
The size of the VirtualBox base image. The size string should be on
|
||||
a format the qemu-img command accepts.
|
||||
|
|
31
pkgs/applications/graphics/gcolor2/default.nix
Normal file
31
pkgs/applications/graphics/gcolor2/default.nix
Normal file
|
@ -0,0 +1,31 @@
|
|||
{stdenv, fetchurl, gtk, perl, perlXMLParser, pkgconfig } :
|
||||
|
||||
let version = "0.4"; in
|
||||
stdenv.mkDerivation {
|
||||
name = "gcolor2-${version}";
|
||||
arch = if stdenv.system == "x86_64-linux" then "amd64" else "386";
|
||||
|
||||
src = fetchurl {
|
||||
url = "mirror://sourceforge/project/gcolor2/gcolor2/${version}/gcolor2-${version}.tar.bz2";
|
||||
sha1 = "e410a52dcff3d5c6c3d448b68a026d04ccd744be";
|
||||
|
||||
};
|
||||
|
||||
preConfigure = ''
|
||||
sed -i 's/\[:space:\]/[&]/g' configure
|
||||
'';
|
||||
|
||||
# from https://github.com/PhantomX/slackbuilds/tree/master/gcolor2/patches
|
||||
patches = if stdenv.system == "x86_64-linux" then
|
||||
[ ./gcolor2-amd64.patch ] else
|
||||
[ ];
|
||||
|
||||
buildInputs = [ gtk perl perlXMLParser pkgconfig ];
|
||||
|
||||
meta = {
|
||||
description = "Simple GTK+2 color selector";
|
||||
homepage = http://gcolor2.sourceforge.net/;
|
||||
license = stdenv.lib.licenses.gpl2Plus;
|
||||
maintainers = with stdenv.lib.maintainers; [ notthemessiah ];
|
||||
};
|
||||
}
|
46
pkgs/applications/graphics/gcolor2/gcolor2-amd64.patch
Normal file
46
pkgs/applications/graphics/gcolor2/gcolor2-amd64.patch
Normal file
|
@ -0,0 +1,46 @@
|
|||
diff --exclude-from=/home/dang/bin/scripts/diffrc -up -ruN gcolor2-0.4.orig/src/callbacks.c gcolor2-0.4/src/callbacks.c
|
||||
--- gcolor2-0.4.orig/src/callbacks.c 2005-07-12 14:06:12.000000000 -0400
|
||||
+++ gcolor2-0.4/src/callbacks.c 2007-02-17 19:19:38.000000000 -0500
|
||||
@@ -4,6 +4,9 @@
|
||||
|
||||
#include <gtk/gtk.h>
|
||||
#include <stdio.h>
|
||||
+#include <string.h>
|
||||
+#include <glib.h>
|
||||
+#include <glib/gprintf.h>
|
||||
|
||||
#include "callbacks.h"
|
||||
#include "interface.h"
|
||||
@@ -172,6 +175,9 @@ void on_copy_color_to_clipboard_activate
|
||||
gtk_clipboard_set_text (cb, hex, strlen (hex));
|
||||
}
|
||||
|
||||
+void add_rgb_file (gchar *filename, gchar *type);
|
||||
+gchar* get_system_file (void);
|
||||
+
|
||||
void on_show_system_colors_activate (GtkMenuItem *menuitem, gpointer user_data)
|
||||
{
|
||||
if (gtk_check_menu_item_get_active (GTK_CHECK_MENU_ITEM (menuitem)))
|
||||
@@ -266,6 +272,8 @@ void on_save_button_clicked (GtkButton *
|
||||
gtk_widget_destroy (savedialog);
|
||||
}
|
||||
|
||||
+void add_list_color (gchar *spec, gchar *name, gchar *type, gboolean is_new_color);
|
||||
+
|
||||
void add_color_to_treeview ()
|
||||
{
|
||||
GtkTreeView *treeview;
|
||||
diff --exclude-from=/home/dang/bin/scripts/diffrc -up -ruN gcolor2-0.4.orig/src/main.c gcolor2-0.4/src/main.c
|
||||
--- gcolor2-0.4.orig/src/main.c 2005-07-11 10:55:49.000000000 -0400
|
||||
+++ gcolor2-0.4/src/main.c 2007-02-17 19:18:23.000000000 -0500
|
||||
@@ -4,6 +4,10 @@
|
||||
|
||||
#include <gtk/gtk.h>
|
||||
#include <stdio.h>
|
||||
+#include <stdlib.h>
|
||||
+#include <string.h>
|
||||
+#include <glib.h>
|
||||
+#include <glib/gprintf.h>
|
||||
|
||||
#include "interface.h"
|
||||
#include "support.h"
|
|
@ -1,4 +1,4 @@
|
|||
{ stdenv, fetchurl, buildPythonPackage, pygtk, pil }:
|
||||
{ stdenv, fetchurl, buildPythonPackage, pygtk, pil, python27Packages }:
|
||||
|
||||
buildPythonPackage rec {
|
||||
namePrefix = "";
|
||||
|
@ -11,7 +11,7 @@ buildPythonPackage rec {
|
|||
|
||||
doCheck = false;
|
||||
|
||||
pythonPath = [ pygtk pil ];
|
||||
pythonPath = [ pygtk pil python27Packages.sqlite3 ];
|
||||
|
||||
meta = {
|
||||
description = "Image viewer designed to handle comic books";
|
||||
|
|
48
pkgs/applications/misc/gksu/default.nix
Normal file
48
pkgs/applications/misc/gksu/default.nix
Normal file
|
@ -0,0 +1,48 @@
|
|||
{ stdenv, fetchurl, pkgconfig, makeWrapper, gtk, gnome3, libgksu,
|
||||
intltool, libstartup_notification, gtk_doc
|
||||
}:
|
||||
|
||||
stdenv.mkDerivation rec {
|
||||
version = "2.0.2";
|
||||
pname = "gksu";
|
||||
name = "${pname}-${version}";
|
||||
|
||||
src = fetchurl {
|
||||
url = "http://people.debian.org/~kov/gksu/${name}.tar.gz";
|
||||
sha256 = "0npfanlh28daapkg25q4fncxd89rjhvid5fwzjaw324x0g53vpm1";
|
||||
};
|
||||
|
||||
patches = [
|
||||
# https://savannah.nongnu.org/bugs/index.php?36127
|
||||
./gksu-2.0.2-glib-2.31.patch
|
||||
];
|
||||
|
||||
postPatch = ''
|
||||
sed -i -e 's|/usr/bin/x-terminal-emulator|-l gnome-terminal|g' gksu.desktop
|
||||
'';
|
||||
|
||||
configureFlags = "--disable-nautilus-extension";
|
||||
|
||||
buildInputs = [
|
||||
pkgconfig makeWrapper gtk gnome3.gconf intltool
|
||||
libstartup_notification gnome3.libgnome_keyring gtk_doc
|
||||
];
|
||||
|
||||
propagatedBuildInputs = [
|
||||
libgksu
|
||||
];
|
||||
|
||||
meta = {
|
||||
description = "A graphical frontend for libgksu";
|
||||
longDescription = ''
|
||||
GKSu is a library that provides a Gtk+ frontend to su and sudo.
|
||||
It supports login shells and preserving environment when acting as
|
||||
a su frontend. It is useful to menu items or other graphical
|
||||
programs that need to ask a user's password to run another program
|
||||
as another user.
|
||||
'';
|
||||
homepage = "http://www.nongnu.org/gksu/";
|
||||
license = stdenv.lib.licenses.gpl2;
|
||||
maintainers = [ stdenv.lib.maintainers.romildo ];
|
||||
};
|
||||
}
|
29
pkgs/applications/misc/gksu/gksu-2.0.2-glib-2.31.patch
Normal file
29
pkgs/applications/misc/gksu/gksu-2.0.2-glib-2.31.patch
Normal file
|
@ -0,0 +1,29 @@
|
|||
From 10c7e67e11a56e2fe1acf9b085772bc995d35bc0 Mon Sep 17 00:00:00 2001
|
||||
From: Alexandre Rostovtsev <tetromino@gentoo.org>
|
||||
Date: Sat, 7 Apr 2012 17:57:36 -0400
|
||||
Subject: [PATCH] Fix glib includes for building with >=glib-2.31
|
||||
|
||||
glib-2.31 and newer no longer allow most glib subheaders to be included
|
||||
directly.
|
||||
|
||||
https://savannah.nongnu.org/bugs/index.php?36127
|
||||
---
|
||||
nautilus-gksu/libnautilus-gksu.c | 2 +-
|
||||
1 files changed, 1 insertions(+), 1 deletions(-)
|
||||
|
||||
diff --git a/nautilus-gksu/libnautilus-gksu.c b/nautilus-gksu/libnautilus-gksu.c
|
||||
index 8e44d29..4acf3f8 100644
|
||||
--- a/nautilus-gksu/libnautilus-gksu.c
|
||||
+++ b/nautilus-gksu/libnautilus-gksu.c
|
||||
@@ -5,7 +5,7 @@
|
||||
#include <string.h>
|
||||
#include <pthread.h>
|
||||
|
||||
-#include <glib/gkeyfile.h>
|
||||
+#include <glib.h>
|
||||
#include <gtk/gtk.h>
|
||||
#include <gio/gio.h>
|
||||
#include <libnautilus-extension/nautilus-extension-types.h>
|
||||
--
|
||||
1.7.8.5
|
||||
|
30
pkgs/applications/misc/xcruiser/default.nix
Normal file
30
pkgs/applications/misc/xcruiser/default.nix
Normal file
|
@ -0,0 +1,30 @@
|
|||
{ stdenv, fetchurl, gccmakedep, xlibs }:
|
||||
|
||||
stdenv.mkDerivation {
|
||||
name = "xcruiser-0.30";
|
||||
|
||||
src = fetchurl {
|
||||
url = mirror://sourceforge/xcruiser/xcruiser/xcruiser-0.30/xcruiser-0.30.tar.gz;
|
||||
sha256 = "1r8whva38xizqdh7jmn6wcmfmsndc67pkw22wzfzr6rq0vf6hywi";
|
||||
};
|
||||
|
||||
buildInputs = with xlibs; [ gccmakedep imake libXt libXaw libXpm libXext ];
|
||||
|
||||
configurePhase = "xmkmf -a";
|
||||
|
||||
preBuild = ''
|
||||
makeFlagsArray=( BINDIR=$out/bin XAPPLOADDIR=$out/etc/X11/app-defaults)
|
||||
'';
|
||||
|
||||
meta = with stdenv.lib;
|
||||
{ description = "Filesystem visualization utility";
|
||||
longDescription = ''
|
||||
XCruiser, formerly known as XCruise, is a filesystem visualization utility.
|
||||
It constructs a virtually 3-D formed universe from a directory
|
||||
tree and allows you to "cruise" within a visualized filesystem.
|
||||
'';
|
||||
homepage = http://xcruiser.sourceforge.net/;
|
||||
license = licenses.gpl2;
|
||||
maintainers = with maintainers; [ emery ];
|
||||
};
|
||||
}
|
|
@ -6,14 +6,14 @@
|
|||
}:
|
||||
|
||||
let pname = "liferea";
|
||||
version = "1.10.9";
|
||||
version = "1.10.10";
|
||||
in
|
||||
stdenv.mkDerivation rec {
|
||||
name = "${pname}-${version}";
|
||||
|
||||
src = fetchurl {
|
||||
url = "https://github.com/lwindolf/${pname}/releases/download/v${version}/${name}.tar.bz2";
|
||||
sha256 = "0s6rg30xwdxzh2r1n4m9ns4pbq0p428h4nh72bcrcf9m0mdcg0ai";
|
||||
sha256 = "0y01lhw0fn5m0j9ykz8x7i0wchjqbxp33cvvprsfxfwzz4x31jm4";
|
||||
};
|
||||
|
||||
buildInputs = with gst_all_1; [
|
||||
|
|
|
@ -1,18 +1,18 @@
|
|||
# This file was auto-generated by cabal2nix. Please do NOT edit manually!
|
||||
|
||||
{ cabal, ansiTerminal, filepath, HTTP, network, optparseApplicative
|
||||
, terminalSize, text, time, zlib
|
||||
{ cabal, ansiTerminal, cereal, downloadCurl, filepath, HTTP
|
||||
, network, optparseApplicative, terminalSize, text, zlib
|
||||
}:
|
||||
|
||||
cabal.mkDerivation (self: {
|
||||
pname = "sloane";
|
||||
version = "1.8.2";
|
||||
sha256 = "0kdznrvyrax1gihqxxw36jfbmjri808ii827fa71v2ijlm416hk1";
|
||||
version = "1.9.1";
|
||||
sha256 = "0scnvir7il8ldy3g846xmrdkk2rxnlsiyqak0jvcarf2qi251x5i";
|
||||
isLibrary = false;
|
||||
isExecutable = true;
|
||||
buildDepends = [
|
||||
ansiTerminal filepath HTTP network optparseApplicative terminalSize
|
||||
text time zlib
|
||||
ansiTerminal cereal downloadCurl filepath HTTP network
|
||||
optparseApplicative terminalSize text zlib
|
||||
];
|
||||
postInstall = ''
|
||||
mkdir -p $out/share/man/man1
|
||||
|
|
|
@ -1,29 +0,0 @@
|
|||
{ cabal, alex, binary, deepseq, emacs, filepath, geniplate, happy
|
||||
, hashable, hashtables, haskeline, haskellSrcExts, mtl, parallel
|
||||
, QuickCheck, text, time, unorderedContainers, xhtml, zlib
|
||||
}:
|
||||
|
||||
cabal.mkDerivation (self: {
|
||||
pname = "Agda";
|
||||
version = "2.3.2.2";
|
||||
sha256 = "0zr2rg2yvq6pqg69c6h7hqqpc5nj8prfhcvj5p2alkby0vs110qc";
|
||||
isLibrary = true;
|
||||
isExecutable = true;
|
||||
buildDepends = [
|
||||
binary deepseq filepath geniplate hashable hashtables haskeline
|
||||
haskellSrcExts mtl parallel QuickCheck text time
|
||||
unorderedContainers xhtml zlib
|
||||
];
|
||||
buildTools = [ alex emacs happy ];
|
||||
jailbreak = true;
|
||||
postInstall = ''
|
||||
$out/bin/agda-mode compile
|
||||
'';
|
||||
meta = {
|
||||
homepage = "http://wiki.portal.chalmers.se/agda/";
|
||||
description = "A dependently typed functional programming language and proof assistant";
|
||||
license = "unknown";
|
||||
platforms = self.ghc.meta.platforms;
|
||||
maintainers = [ self.stdenv.lib.maintainers.andres ];
|
||||
};
|
||||
})
|
|
@ -1,31 +0,0 @@
|
|||
{ cabal, fetchurl, filemanip, Agda }:
|
||||
|
||||
cabal.mkDerivation (self: {
|
||||
pname = "Agda-stdlib";
|
||||
version = "0.7";
|
||||
|
||||
src = fetchurl {
|
||||
url = "http://www.cse.chalmers.se/~nad/software/lib-0.7.tar.gz";
|
||||
sha256 = "1ynjgqk8hhnm6rbngy8fjsrd6i4phj2hlan9bk435bbywbl366k3";
|
||||
};
|
||||
|
||||
buildDepends = [ filemanip Agda ];
|
||||
|
||||
preConfigure = "cd ffi";
|
||||
|
||||
postInstall = ''
|
||||
mkdir -p $out/share
|
||||
cd ..
|
||||
runhaskell GenerateEverything
|
||||
agda -i . -i src Everything.agda
|
||||
cp -pR src $out/share/agda
|
||||
'';
|
||||
|
||||
meta = {
|
||||
homepage = "http://wiki.portal.chalmers.se/agda/pmwiki.php?n=Libraries.StandardLibrary";
|
||||
description = "A standard library for use with the Agda compiler.";
|
||||
license = "unknown";
|
||||
platforms = self.ghc.meta.platforms;
|
||||
maintainers = [ self.stdenv.lib.maintainers.jwiegley ];
|
||||
};
|
||||
})
|
|
@ -8,8 +8,8 @@
|
|||
|
||||
cabal.mkDerivation (self: {
|
||||
pname = "DAV";
|
||||
version = "0.6.2";
|
||||
sha256 = "1alnjm0rfr7kwj6jax10bg8rcs8523n5dxyvw0mm65qykf78cprl";
|
||||
version = "0.8";
|
||||
sha256 = "0khjid5jaaf4c3xn9cbph8ay4ibqr7pg3b3w7d0kfvci90ksc08r";
|
||||
isLibrary = true;
|
||||
isExecutable = true;
|
||||
buildDepends = [
|
||||
|
|
|
@ -4,8 +4,8 @@
|
|||
|
||||
cabal.mkDerivation (self: {
|
||||
pname = "GLFW";
|
||||
version = "0.5.2.0";
|
||||
sha256 = "06vps929dmk9yimfv7jj12m0p0bf4ih0ssf6rbcq2j6i9wbhpxq3";
|
||||
version = "0.5.2.2";
|
||||
sha256 = "0yqvfkg9p5h5bv3ak6b89am9kan9lbcq26kg1wk53xl6mz1aaijf";
|
||||
buildDepends = [ OpenGL ];
|
||||
extraLibraries = [ libX11 mesa ];
|
||||
meta = {
|
||||
|
|
|
@ -9,8 +9,8 @@
|
|||
|
||||
cabal.mkDerivation (self: {
|
||||
pname = "MFlow";
|
||||
version = "0.4.5.6";
|
||||
sha256 = "12rgp4x2in3r1hf4j1fr5ih0x0mb54x1rdr1mjllbh8c09ricrah";
|
||||
version = "0.4.5.7";
|
||||
sha256 = "0faw082z8yyzf0k1vrgpqa8kvwb2zwmasy1p1vvj3a7lhhnlr20s";
|
||||
buildDepends = [
|
||||
blazeHtml blazeMarkup caseInsensitive clientsession conduit
|
||||
conduitExtra extensibleExceptions httpTypes monadloc mtl parsec
|
||||
|
|
|
@ -4,8 +4,8 @@
|
|||
|
||||
cabal.mkDerivation (self: {
|
||||
pname = "Vec";
|
||||
version = "1.0.1";
|
||||
sha256 = "1v0v0ph881vynx8q8xwmn9da6qrd16g83q5i132nxys3ynl5s76m";
|
||||
version = "1.0.5";
|
||||
sha256 = "0hyk553pdn72zc1i82njz3md8ycmzfiwi799y08qr3fg0i8r88zm";
|
||||
meta = {
|
||||
homepage = "http://github.net/sedillard/Vec";
|
||||
description = "Fixed-length lists and low-dimensional linear algebra";
|
||||
|
|
|
@ -6,8 +6,8 @@
|
|||
|
||||
cabal.mkDerivation (self: {
|
||||
pname = "attoparsec";
|
||||
version = "0.12.1.0";
|
||||
sha256 = "1y7sikk5hg9yj3mn21k026ni6lznsih0lx03rgdz4gmb6aqh54bn";
|
||||
version = "0.12.1.1";
|
||||
sha256 = "0whj2wscw9pdf6avnhnqiapsllh6228j4hifyfvr4v0w663plh7p";
|
||||
buildDepends = [ deepseq scientific text ];
|
||||
testDepends = [
|
||||
deepseq QuickCheck scientific testFramework
|
|
@ -4,8 +4,8 @@
|
|||
|
||||
cabal.mkDerivation (self: {
|
||||
pname = "auto-update";
|
||||
version = "0.1.0.0";
|
||||
sha256 = "000aaccwpi373fnnmnq08d3128ncgv3w6pj25px25c2kp56z4c0l";
|
||||
version = "0.1.1.0";
|
||||
sha256 = "0nag7x41fbi8ic0f9kr14vllk7nyzd47364fpirkydjqp48qfv3j";
|
||||
testDepends = [ hspec ];
|
||||
meta = {
|
||||
homepage = "https://github.com/yesodweb/wai";
|
||||
|
|
|
@ -1,18 +1,18 @@
|
|||
# This file was auto-generated by cabal2nix. Please do NOT edit manually!
|
||||
|
||||
{ cabal, ansiTerminal, cmdargs, dlist, filepath, regexPosix, safe
|
||||
, split, stm, stringsearch, unorderedContainers
|
||||
{ cabal, ansiTerminal, cmdargs, dlist, either, filepath, mtl
|
||||
, regexPosix, safe, split, stm, stringsearch, unorderedContainers
|
||||
}:
|
||||
|
||||
cabal.mkDerivation (self: {
|
||||
pname = "cgrep";
|
||||
version = "6.4.5";
|
||||
sha256 = "0pp3gfy8dvdbv40vfy3dhqymjp0knnbzv9hmbc18f3s8zpy4lis0";
|
||||
version = "6.4.6";
|
||||
sha256 = "13plsh6411k273qllpkcrkakwxcdmw0p6arj0j3gdqa7bbxii99s";
|
||||
isLibrary = false;
|
||||
isExecutable = true;
|
||||
buildDepends = [
|
||||
ansiTerminal cmdargs dlist filepath regexPosix safe split stm
|
||||
stringsearch unorderedContainers
|
||||
ansiTerminal cmdargs dlist either filepath mtl regexPosix safe
|
||||
split stm stringsearch unorderedContainers
|
||||
];
|
||||
meta = {
|
||||
homepage = "http://awgn.github.io/cgrep/";
|
||||
|
|
|
@ -7,8 +7,8 @@
|
|||
|
||||
cabal.mkDerivation (self: {
|
||||
pname = "cookie";
|
||||
version = "0.4.1.2";
|
||||
sha256 = "1dxga56m4mza3annhb48ryb31kf0kxr3w99c4mwh9w9l77xhcq3i";
|
||||
version = "0.4.1.3";
|
||||
sha256 = "184ymp1pbi49fm4jl9s04dfyrgdbc9vlmqahqha4yncppr5s1sdw";
|
||||
buildDepends = [ blazeBuilder dataDefault deepseq text time ];
|
||||
testDepends = [
|
||||
blazeBuilder HUnit QuickCheck testFramework testFrameworkHunit
|
||||
|
|
|
@ -1,3 +1,5 @@
|
|||
# This file was auto-generated by cabal2nix. Please do NOT edit manually!
|
||||
|
||||
{ cabal, tagged }:
|
||||
|
||||
cabal.mkDerivation (self: {
|
||||
|
|
|
@ -23,7 +23,6 @@ cabal.mkDerivation (self: {
|
|||
configureFlags = "--datasubdir=${self.pname}-${self.version}";
|
||||
postInstall = ''
|
||||
cd $out/share/$pname-$version
|
||||
sed -i -e 's/"-b" "\\n" "-l"/"-l" "-b" "\\"\\\\n\\""/' ghc-process.el
|
||||
make
|
||||
rm Makefile
|
||||
cd ..
|
||||
|
|
|
@ -4,8 +4,8 @@
|
|||
|
||||
cabal.mkDerivation (self: {
|
||||
pname = "hsshellscript";
|
||||
version = "3.3.1";
|
||||
sha256 = "0z3afp3r1j1in03fv2yb5sfbzgcrhdig6gay683bzgh85glwxhlp";
|
||||
version = "3.3.2";
|
||||
sha256 = "0rc78yx82gy7a3dxl1mn9hrj1cqhq51zq6w4nf11rzgn6106zdln";
|
||||
buildDepends = [ parsec random ];
|
||||
buildTools = [ c2hs ];
|
||||
meta = {
|
||||
|
|
|
@ -4,8 +4,8 @@
|
|||
|
||||
cabal.mkDerivation (self: {
|
||||
pname = "network-metrics";
|
||||
version = "0.3.2";
|
||||
sha256 = "14yf9di909443gkgaw7n262453d60pp9mw8vncmd6q7pywhdz9hh";
|
||||
version = "0.4";
|
||||
sha256 = "0dvrjf84pdm42pxwc7fm4gvswc5nzmdsq7cr7ab8jyzvjqb8684c";
|
||||
buildDepends = [ binary dataDefault network random time ];
|
||||
meta = {
|
||||
homepage = "http://github.com/brendanhay/network-metrics";
|
||||
|
|
|
@ -4,8 +4,8 @@
|
|||
|
||||
cabal.mkDerivation (self: {
|
||||
pname = "pandoc-types";
|
||||
version = "1.12.4";
|
||||
sha256 = "10vlw8iabaay0xqlshagl45ksawlanlg6fyqwv9d448qm32ngvdn";
|
||||
version = "1.12.4.1";
|
||||
sha256 = "1wbgm0s45smi8gix0byapkiarbb416fv765fc329qsvl295xlyqq";
|
||||
buildDepends = [ aeson deepseqGenerics syb ];
|
||||
meta = {
|
||||
homepage = "http://johnmacfarlane.net/pandoc";
|
||||
|
|
|
@ -6,8 +6,8 @@
|
|||
|
||||
cabal.mkDerivation (self: {
|
||||
pname = "persistent-template";
|
||||
version = "1.3.1.4";
|
||||
sha256 = "1ys5s1vb9w3nrv9kwvzgjwfs2j09pslpplz05idpfn02xx03hcfk";
|
||||
version = "1.3.2.1";
|
||||
sha256 = "1i7jlp16bwxrfbbln1izjmjjicgqw5i6hsylfjmh622vri2rxi31";
|
||||
buildDepends = [
|
||||
aeson monadControl monadLogger persistent text transformers
|
||||
unorderedContainers
|
||||
|
|
|
@ -8,8 +8,8 @@
|
|||
|
||||
cabal.mkDerivation (self: {
|
||||
pname = "statistics";
|
||||
version = "0.13.2.0";
|
||||
sha256 = "0xxi0w7jxgj31zgwppvjx1iw80plrq2fxz6vaa9mr9ijqqi36xad";
|
||||
version = "0.13.2.1";
|
||||
sha256 = "0giibqpnjndnhvxqsr8ikcxxfhz3ws0mk3ckykq2sfwz7gkipvva";
|
||||
buildDepends = [
|
||||
aeson binary deepseq erf mathFunctions monadPar mwcRandom primitive
|
||||
vector vectorAlgorithms vectorBinaryInstances
|
||||
|
|
|
@ -1,16 +1,16 @@
|
|||
# This file was auto-generated by cabal2nix. Please do NOT edit manually!
|
||||
|
||||
{ cabal, autoUpdate, blazeBuilder, byteorder, caseInsensitive
|
||||
, doctest, fastLogger, httpTypes, network, unixTime, wai
|
||||
, doctest, easyFile, fastLogger, httpTypes, network, unixTime, wai
|
||||
}:
|
||||
|
||||
cabal.mkDerivation (self: {
|
||||
pname = "wai-logger";
|
||||
version = "2.2.0";
|
||||
sha256 = "0dl4c9b1yl22df421p6yw405bv1skvh6dk5rgybxz1sspvb94gvy";
|
||||
version = "2.2.1";
|
||||
sha256 = "0210phkadr5ndpx6ppmygir0mxnpjffvccjb4lnpjnwy2ydf0lzy";
|
||||
buildDepends = [
|
||||
autoUpdate blazeBuilder byteorder caseInsensitive fastLogger
|
||||
httpTypes network unixTime wai
|
||||
autoUpdate blazeBuilder byteorder caseInsensitive easyFile
|
||||
fastLogger httpTypes network unixTime wai
|
||||
];
|
||||
testDepends = [ doctest ];
|
||||
doCheck = false;
|
||||
|
|
|
@ -1,22 +1,22 @@
|
|||
# This file was auto-generated by cabal2nix. Please do NOT edit manually!
|
||||
|
||||
{ cabal, async, blazeBuilder, caseInsensitive, doctest, hashable
|
||||
, hspec, HTTP, httpDate, httpTypes, HUnit, liftedBase, network
|
||||
, QuickCheck, simpleSendfile, streamingCommons, text, time
|
||||
{ cabal, async, autoUpdate, blazeBuilder, caseInsensitive, doctest
|
||||
, hashable, hspec, HTTP, httpDate, httpTypes, HUnit, liftedBase
|
||||
, network, QuickCheck, simpleSendfile, streamingCommons, text, time
|
||||
, transformers, unixCompat, void, wai
|
||||
}:
|
||||
|
||||
cabal.mkDerivation (self: {
|
||||
pname = "warp";
|
||||
version = "3.0.0.5";
|
||||
sha256 = "1in9gnxb15np4vj47q6c07hr9iq2apbx0a1brkaqcmfq3c9wq9d5";
|
||||
version = "3.0.0.6";
|
||||
sha256 = "0085v0gnjr4yv4s341jyc8cf9l69rmj9rrnr6h2lyhq5hx1i1lw8";
|
||||
buildDepends = [
|
||||
blazeBuilder caseInsensitive hashable httpDate httpTypes network
|
||||
simpleSendfile streamingCommons text unixCompat void wai
|
||||
autoUpdate blazeBuilder caseInsensitive hashable httpDate httpTypes
|
||||
network simpleSendfile streamingCommons text unixCompat void wai
|
||||
];
|
||||
testDepends = [
|
||||
async blazeBuilder caseInsensitive doctest hashable hspec HTTP
|
||||
httpDate httpTypes HUnit liftedBase network QuickCheck
|
||||
async autoUpdate blazeBuilder caseInsensitive doctest hashable
|
||||
hspec HTTP httpDate httpTypes HUnit liftedBase network QuickCheck
|
||||
simpleSendfile streamingCommons text time transformers unixCompat
|
||||
void wai
|
||||
];
|
||||
|
|
|
@ -12,8 +12,8 @@
|
|||
|
||||
cabal.mkDerivation (self: {
|
||||
pname = "yesod-bin";
|
||||
version = "1.2.12.1";
|
||||
sha256 = "03vnxpapcg1z1xk0m077wn5rly9h2j7548zd8drlb455lv7np7mj";
|
||||
version = "1.2.12.3";
|
||||
sha256 = "0pm7wwml2574fsimibhhb47s6fn19cdips4p419k7j8g62v4kfzx";
|
||||
isLibrary = false;
|
||||
isExecutable = true;
|
||||
buildDepends = [
|
||||
|
|
|
@ -9,8 +9,8 @@
|
|||
|
||||
cabal.mkDerivation (self: {
|
||||
pname = "yesod-form";
|
||||
version = "1.3.14";
|
||||
sha256 = "0a2xlar67f0y48zqml8kqjna33i474j3j04gmgglsfmk1wikr7sh";
|
||||
version = "1.3.15";
|
||||
sha256 = "1cyz39892kxa3m3wx8a3sy4fkmhaljvz72r2jq8l5qn2hd0n5b69";
|
||||
buildDepends = [
|
||||
aeson attoparsec blazeBuilder blazeHtml blazeMarkup byteable
|
||||
dataDefault emailValidate hamlet network persistent resourcet
|
||||
|
|
83
pkgs/development/libraries/libgksu/default.nix
Normal file
83
pkgs/development/libraries/libgksu/default.nix
Normal file
|
@ -0,0 +1,83 @@
|
|||
{ stdenv, fetchurl, pkgconfig, makeWrapper, gtk, gnome, gnome3,
|
||||
libstartup_notification, libgtop, perl, perlXMLParser, autoconf,
|
||||
automake, libtool, intltool, gtk_doc, docbook_xsl, xauth, sudo
|
||||
}:
|
||||
|
||||
stdenv.mkDerivation rec {
|
||||
version = "2.0.12";
|
||||
pname = "libgksu";
|
||||
name = "${pname}-${version}";
|
||||
|
||||
src = fetchurl {
|
||||
url = "http://people.debian.org/~kov/gksu/${name}.tar.gz";
|
||||
sha256 = "1brz9j3nf7l2gd3a5grbp0s3nksmlrp6rxmgp5s6gjvxcb1wzy92";
|
||||
};
|
||||
|
||||
patches = [
|
||||
# Patches from the gentoo ebuild
|
||||
|
||||
# Fix compilation on bsdc
|
||||
./libgksu-2.0.0-fbsd.patch
|
||||
|
||||
# Fix wrong usage of LDFLAGS, gentoo bug #226837
|
||||
./libgksu-2.0.7-libs.patch
|
||||
|
||||
# Use po/LINGUAS
|
||||
./libgksu-2.0.7-polinguas.patch
|
||||
|
||||
# Don't forkpty; gentoo bug #298289
|
||||
./libgksu-2.0.12-revert-forkpty.patch
|
||||
|
||||
# Make this gmake-3.82 compliant, gentoo bug #333961
|
||||
./libgksu-2.0.12-fix-make-3.82.patch
|
||||
|
||||
# Do not build test programs that are never executed; also fixes gentoo bug #367397 (underlinking issues).
|
||||
./libgksu-2.0.12-notests.patch
|
||||
|
||||
# Fix automake-1.11.2 compatibility, gentoo bug #397411
|
||||
./libgksu-2.0.12-automake-1.11.2.patch
|
||||
];
|
||||
|
||||
postPatch = ''
|
||||
# gentoo bug #467026
|
||||
sed -i -e 's:AM_CONFIG_HEADER:AC_CONFIG_HEADERS:' configure.ac
|
||||
|
||||
# Fix some binary paths
|
||||
sed -i -e 's|/usr/bin/xauth|${xauth}/bin/xauth|g' libgksu/gksu-run-helper.c libgksu/libgksu.c
|
||||
sed -i -e 's|/usr/bin/sudo|${sudo}/bin/sudo|g' libgksu/libgksu.c
|
||||
sed -i -e 's|/bin/su\([^d]\)|/var/setuid-wrappers/su\1|g' libgksu/libgksu.c
|
||||
|
||||
touch NEWS README
|
||||
'';
|
||||
|
||||
preConfigure = ''
|
||||
intltoolize --force --copy --automake
|
||||
autoreconf -vfi
|
||||
'';
|
||||
|
||||
buildInputs = [
|
||||
pkgconfig makeWrapper gtk gnome.GConf libstartup_notification
|
||||
gnome3.libgnome_keyring libgtop gnome.libglade perl perlXMLParser
|
||||
autoconf automake libtool intltool gtk_doc docbook_xsl
|
||||
];
|
||||
|
||||
preFixup = ''
|
||||
wrapProgram "$out/bin/gksu-properties" \
|
||||
--set GDK_PIXBUF_MODULE_FILE "$GDK_PIXBUF_MODULE_FILE"
|
||||
'';
|
||||
|
||||
enableParallelBuilding = true;
|
||||
|
||||
meta = {
|
||||
description = "A library for integration of su into applications";
|
||||
longDescription = ''
|
||||
This library comes from the gksu program. It provides a simple API
|
||||
to use su and sudo in programs that need to execute tasks as other
|
||||
user. It provides X authentication facilities for running
|
||||
programs in an X session.
|
||||
'';
|
||||
homepage = "http://www.nongnu.org/gksu/";
|
||||
license = stdenv.lib.licenses.lgpl2;
|
||||
maintainers = [ stdenv.lib.maintainers.romildo ];
|
||||
};
|
||||
}
|
60
pkgs/development/libraries/libgksu/libgksu-2.0.0-fbsd.patch
Normal file
60
pkgs/development/libraries/libgksu/libgksu-2.0.0-fbsd.patch
Normal file
|
@ -0,0 +1,60 @@
|
|||
diff --exclude-from=/home/dang/.diffrc -up -ruN libgksu-2.0.0.orig/libgksu/libgksu.c libgksu-2.0.0/libgksu/libgksu.c
|
||||
--- libgksu-2.0.0.orig/libgksu/libgksu.c 2006-09-14 22:35:51.000000000 -0400
|
||||
+++ libgksu-2.0.0/libgksu/libgksu.c 2006-12-12 11:28:01.000000000 -0500
|
||||
@@ -23,7 +23,12 @@
|
||||
#include <unistd.h>
|
||||
#include <string.h>
|
||||
#include <fcntl.h>
|
||||
+#ifdef __FreeBSD__
|
||||
+#include <libutil.h>
|
||||
+#include <termios.h>
|
||||
+#else
|
||||
#include <pty.h>
|
||||
+#endif
|
||||
#include <pwd.h>
|
||||
#include <sys/types.h>
|
||||
#include <sys/wait.h>
|
||||
diff --exclude-from=/home/dang/.diffrc -up -ruN libgksu-2.0.0.orig/libgksu/Makefile.am libgksu-2.0.0/libgksu/Makefile.am
|
||||
--- libgksu-2.0.0.orig/libgksu/Makefile.am 2006-09-14 22:35:52.000000000 -0400
|
||||
+++ libgksu-2.0.0/libgksu/Makefile.am 2006-12-12 11:28:01.000000000 -0500
|
||||
@@ -30,6 +30,6 @@ gksu_run_helper_SOURCES = gksu-run-helpe
|
||||
noinst_PROGRAMS = test-gksu
|
||||
test_gksu_SOURCES = test-gksu.c
|
||||
test_gksu_LDADD = libgksu2.la
|
||||
-test_gksu_LDFLAGS = `pkg-config --libs glib-2.0`
|
||||
+test_gksu_LDFLAGS = `pkg-config --libs glib-2.0 gthread-2.0`
|
||||
|
||||
EXTRA_DIST = libgksu.ver
|
||||
diff --exclude-from=/home/dang/.diffrc -up -ruN libgksu-2.0.0.orig/libgksu/Makefile.in libgksu-2.0.0/libgksu/Makefile.in
|
||||
--- libgksu-2.0.0.orig/libgksu/Makefile.in 2006-09-23 15:37:44.000000000 -0400
|
||||
+++ libgksu-2.0.0/libgksu/Makefile.in 2006-12-12 11:30:09.000000000 -0500
|
||||
@@ -283,7 +283,7 @@ gksu_run_helper_LDFLAGS = `pkg-config --
|
||||
gksu_run_helper_SOURCES = gksu-run-helper.c
|
||||
test_gksu_SOURCES = test-gksu.c
|
||||
test_gksu_LDADD = libgksu2.la
|
||||
-test_gksu_LDFLAGS = `pkg-config --libs glib-2.0`
|
||||
+test_gksu_LDFLAGS = `pkg-config --libs glib-2.0 gthread-2.0`
|
||||
EXTRA_DIST = libgksu.ver
|
||||
all: all-am
|
||||
|
||||
diff --exclude-from=/home/dang/.diffrc -up -ruN libgksu-2.0.0.orig/libgksuui/Makefile.am libgksu-2.0.0/libgksuui/Makefile.am
|
||||
--- libgksu-2.0.0.orig/libgksuui/Makefile.am 2006-09-14 22:35:31.000000000 -0400
|
||||
+++ libgksu-2.0.0/libgksuui/Makefile.am 2006-12-12 11:28:01.000000000 -0500
|
||||
@@ -12,4 +12,4 @@ includedir = ${prefix}/include/$(PACKAGE
|
||||
noinst_PROGRAMS = test-gksuui
|
||||
test_gksuui_SOURCES = test-gksuui.c
|
||||
test_gksuui_LDADD = libgksuui1.0.la
|
||||
-test_gksuui_LDFLAGS = `pkg-config --libs glib-2.0`
|
||||
+test_gksuui_LDFLAGS = `pkg-config --libs glib-2.0 gthread-2.0`
|
||||
diff --exclude-from=/home/dang/.diffrc -up -ruN libgksu-2.0.0.orig/libgksuui/Makefile.in libgksu-2.0.0/libgksuui/Makefile.in
|
||||
--- libgksu-2.0.0.orig/libgksuui/Makefile.in 2006-09-23 15:37:44.000000000 -0400
|
||||
+++ libgksu-2.0.0/libgksuui/Makefile.in 2006-12-12 11:30:22.000000000 -0500
|
||||
@@ -250,7 +250,7 @@ libgksuui1_0_la_LDFLAGS = -Wl,-O1 `pkg-c
|
||||
noinst_HEADERS = defines.h gksuui.h gksuui-dialog.h
|
||||
test_gksuui_SOURCES = test-gksuui.c
|
||||
test_gksuui_LDADD = libgksuui1.0.la
|
||||
-test_gksuui_LDFLAGS = `pkg-config --libs glib-2.0`
|
||||
+test_gksuui_LDFLAGS = `pkg-config --libs glib-2.0 gthread-2.0`
|
||||
all: all-am
|
||||
|
||||
.SUFFIXES:
|
|
@ -0,0 +1,25 @@
|
|||
Due to the following change, pkglib_PROGRAMS is invalid:
|
||||
http://git.savannah.gnu.org/cgit/automake.git/commit/?id=9ca632642b006ac6b0fc4ce0ae5b34023faa8cbf
|
||||
|
||||
https://savannah.nongnu.org/bugs/index.php?35241
|
||||
https://bugs.gentoo.org/show_bug.cgi?id=397411
|
||||
|
||||
---
|
||||
libgksu/Makefile.am | 4 ++--
|
||||
1 files changed, 2 insertions(+), 2 deletions(-)
|
||||
|
||||
diff --git a/libgksu/Makefile.am b/libgksu/Makefile.am
|
||||
index 49362f9..3cb1090 100644
|
||||
--- a/libgksu/Makefile.am
|
||||
+++ b/libgksu/Makefile.am
|
||||
@@ -22,8 +22,8 @@ includedir = ${prefix}/include/${PACKAGE}
|
||||
pkgconfigdir = ${libdir}/pkgconfig
|
||||
pkgconfig_DATA = libgksu2.pc
|
||||
|
||||
-pkglibdir = ${libdir}/${PACKAGE}
|
||||
-pkglib_PROGRAMS = gksu-run-helper
|
||||
+gksulibdir = ${libdir}/${PACKAGE}
|
||||
+gksulib_PROGRAMS = gksu-run-helper
|
||||
gksu_run_helper_LDADD = ${GLIB_LIBS}
|
||||
gksu_run_helper_SOURCES = gksu-run-helper.c
|
||||
|
|
@ -0,0 +1,19 @@
|
|||
--- libgksu/Makefile.am-orig 2010-08-22 16:11:19.872577459 -0500
|
||||
+++ libgksu/Makefile.am 2010-08-22 16:11:55.289599110 -0500
|
||||
@@ -17,11 +17,11 @@
|
||||
|
||||
if GCONF_SCHEMAS_INSTALL
|
||||
install-data-local:
|
||||
- if test -z "$(DESTDIR)" ; then \
|
||||
- for p in $(schemas_DATA) ; do \
|
||||
- GCONF_CONFIG_SOURCE=$(GCONF_SCHEMA_CONFIG_SOURCE) $(GCONFTOOL) --makefile-install-rule $(srcdir)/$$p ; \
|
||||
- done \
|
||||
- fi
|
||||
+ if test -z "$(DESTDIR)" ; then \
|
||||
+ for p in $(schemas_DATA) ; do \
|
||||
+ GCONF_CONFIG_SOURCE=$(GCONF_SCHEMA_CONFIG_SOURCE) $(GCONFTOOL) --makefile-install-rule $(srcdir)/$$p ; \
|
||||
+ done \
|
||||
+ fi
|
||||
else
|
||||
install-data-local:
|
||||
endif
|
|
@ -0,0 +1,26 @@
|
|||
Index: libgksu-2.0.12/libgksu/Makefile.am
|
||||
===================================================================
|
||||
--- libgksu-2.0.12.orig/libgksu/Makefile.am
|
||||
+++ libgksu-2.0.12/libgksu/Makefile.am
|
||||
@@ -27,7 +27,7 @@ pkglib_PROGRAMS = gksu-run-helper
|
||||
gksu_run_helper_LDFLAGS = `pkg-config --libs glib-2.0`
|
||||
gksu_run_helper_SOURCES = gksu-run-helper.c
|
||||
|
||||
-noinst_PROGRAMS = test-gksu
|
||||
+EXTRA_PROGRAMS = test-gksu
|
||||
test_gksu_SOURCES = test-gksu.c
|
||||
test_gksu_LDADD = libgksu2.la
|
||||
test_gksu_LDFLAGS = `pkg-config --libs glib-2.0`
|
||||
Index: libgksu-2.0.12/libgksuui/Makefile.am
|
||||
===================================================================
|
||||
--- libgksu-2.0.12.orig/libgksuui/Makefile.am
|
||||
+++ libgksu-2.0.12/libgksuui/Makefile.am
|
||||
@@ -9,7 +9,7 @@ libgksuui1_0_la_LDFLAGS = -Wl,-O1 `pkg-c
|
||||
noinst_HEADERS = defines.h gksuui.h gksuui-dialog.h
|
||||
includedir = ${prefix}/include/$(PACKAGE)
|
||||
|
||||
-noinst_PROGRAMS = test-gksuui
|
||||
+EXTRA_PROGRAMS = test-gksuui
|
||||
test_gksuui_SOURCES = test-gksuui.c
|
||||
test_gksuui_LDADD = libgksuui1.0.la
|
||||
test_gksuui_LDFLAGS = `pkg-config --libs glib-2.0`
|
|
@ -0,0 +1,359 @@
|
|||
diff --exclude-from=/home/dang/.scripts/diffrc -up -ruN libgksu-2.0.12.orig/libgksu/libgksu.c libgksu-2.0.12/libgksu/libgksu.c
|
||||
--- libgksu-2.0.12.orig/libgksu/libgksu.c 2009-06-29 13:48:24.000000000 -0400
|
||||
+++ libgksu-2.0.12/libgksu/libgksu.c 2010-01-12 07:32:10.450657456 -0500
|
||||
@@ -1,7 +1,6 @@
|
||||
/*
|
||||
* Gksu -- a library providing access to su functionality
|
||||
* Copyright (C) 2004-2009 Gustavo Noronha Silva
|
||||
- * Portions Copyright (C) 2009 VMware, Inc.
|
||||
*
|
||||
* This library is free software; you can redistribute it and/or
|
||||
* modify it under the terms of the GNU Lesser General Public
|
||||
@@ -56,9 +55,6 @@
|
||||
static void
|
||||
gksu_context_launch_complete (GksuContext *context);
|
||||
|
||||
-static void
|
||||
-read_line (int fd, gchar *buffer, int n);
|
||||
-
|
||||
GType
|
||||
gksu_error_get_type (void)
|
||||
{
|
||||
@@ -2009,8 +2005,6 @@ gksu_su_fuller (GksuContext *context,
|
||||
for (i = 0 ; cmd[i] != NULL ; i++)
|
||||
g_free (cmd[i]);
|
||||
g_free(cmd);
|
||||
-
|
||||
- _exit(1);
|
||||
}
|
||||
else if (pid == -1)
|
||||
{
|
||||
@@ -2125,10 +2119,10 @@ gksu_su_fuller (GksuContext *context,
|
||||
/* drop the \n echoed on password entry if su did request
|
||||
a password */
|
||||
if (password_needed)
|
||||
- read_line (fdpty, buf, 255);
|
||||
+ read (fdpty, buf, 255);
|
||||
if (context->debug)
|
||||
fprintf (stderr, "DEBUG (run:post-after-pass) buf: -%s-\n", buf);
|
||||
- read_line (fdpty, buf, 255);
|
||||
+ read (fdpty, buf, 255);
|
||||
if (context->debug)
|
||||
fprintf (stderr, "DEBUG (run:post-after-pass) buf: -%s-\n", buf);
|
||||
}
|
||||
@@ -2142,9 +2136,7 @@ gksu_su_fuller (GksuContext *context,
|
||||
{
|
||||
int retval = 0;
|
||||
|
||||
- /* Red Hat's su shows the full path to su in its error messages. */
|
||||
- if (!strncmp (buf, "su:", 3) ||
|
||||
- !strncmp (buf, "/bin/su:", 7))
|
||||
+ if (!strncmp (buf, "su", 2))
|
||||
{
|
||||
gchar **strings;
|
||||
|
||||
@@ -2155,11 +2147,7 @@ gksu_su_fuller (GksuContext *context,
|
||||
}
|
||||
|
||||
strings = g_strsplit (buf, ":", 2);
|
||||
-
|
||||
- /* Red Hat and Fedora use 'incorrect password'. */
|
||||
- if (strings[1] &&
|
||||
- (g_str_has_prefix(strings[1], " Authentication failure") ||
|
||||
- g_str_has_prefix(strings[1], " incorrect password")))
|
||||
+ if (strings[1] && !strncmp (strings[1], " Authentication failure", 23))
|
||||
{
|
||||
if (used_gnome_keyring)
|
||||
g_set_error (error, gksu_quark,
|
||||
@@ -2473,12 +2461,6 @@ gksu_sudo_fuller (GksuContext *context,
|
||||
{
|
||||
char **cmd;
|
||||
char buffer[256] = {0};
|
||||
- char *child_stderr = NULL;
|
||||
- /* This command is used to gain a token */
|
||||
- char *const verifycmd[] =
|
||||
- {
|
||||
- "/usr/bin/sudo", "-p", "GNOME_SUDO_PASS", "-v", NULL
|
||||
- };
|
||||
int argcount = 8;
|
||||
int i, j;
|
||||
|
||||
@@ -2489,8 +2471,9 @@ gksu_sudo_fuller (GksuContext *context,
|
||||
|
||||
pid_t pid;
|
||||
int status;
|
||||
- FILE *fdfile = NULL;
|
||||
- int fdpty = -1;
|
||||
+ FILE *infile, *outfile;
|
||||
+ int parent_pipe[2]; /* For talking to the parent */
|
||||
+ int child_pipe[2]; /* For talking to the child */
|
||||
|
||||
context->sudo_mode = TRUE;
|
||||
|
||||
@@ -2565,10 +2548,6 @@ gksu_sudo_fuller (GksuContext *context,
|
||||
cmd[argcount] = g_strdup("-S");
|
||||
argcount++;
|
||||
|
||||
- /* Make sudo noninteractive (we should already have a token) */
|
||||
- cmd[argcount] = g_strdup("-n");
|
||||
- argcount++;
|
||||
-
|
||||
/* Make sudo use next arg as prompt */
|
||||
cmd[argcount] = g_strdup("-p");
|
||||
argcount++;
|
||||
@@ -2647,21 +2626,26 @@ gksu_sudo_fuller (GksuContext *context,
|
||||
fprintf (stderr, "cmd[%d]: %s\n", i, cmd[i]);
|
||||
}
|
||||
|
||||
- pid = forkpty(&fdpty, NULL, NULL, NULL);
|
||||
- if (pid == 0)
|
||||
+ if ((pipe(parent_pipe)) == -1)
|
||||
{
|
||||
- // Child
|
||||
- setsid(); // make us session leader
|
||||
-
|
||||
- execv(verifycmd[0], verifycmd);
|
||||
+ g_set_error (error, gksu_quark, GKSU_ERROR_PIPE,
|
||||
+ _("Error creating pipe: %s"),
|
||||
+ strerror(errno));
|
||||
+ sudo_reset_xauth (context, xauth, xauth_env);
|
||||
+ return FALSE;
|
||||
+ }
|
||||
|
||||
- g_set_error (error, gksu_quark, GKSU_ERROR_EXEC,
|
||||
- _("Failed to exec new process: %s"),
|
||||
+ if ((pipe(child_pipe)) == -1)
|
||||
+ {
|
||||
+ g_set_error (error, gksu_quark, GKSU_ERROR_PIPE,
|
||||
+ _("Error creating pipe: %s"),
|
||||
strerror(errno));
|
||||
sudo_reset_xauth (context, xauth, xauth_env);
|
||||
return FALSE;
|
||||
}
|
||||
- else if (pid == -1)
|
||||
+
|
||||
+ pid = fork();
|
||||
+ if (pid == -1)
|
||||
{
|
||||
g_set_error (error, gksu_quark, GKSU_ERROR_FORK,
|
||||
_("Failed to fork new process: %s"),
|
||||
@@ -2669,26 +2653,56 @@ gksu_sudo_fuller (GksuContext *context,
|
||||
sudo_reset_xauth (context, xauth, xauth_env);
|
||||
return FALSE;
|
||||
}
|
||||
+ else if (pid == 0)
|
||||
+ {
|
||||
+ // Child
|
||||
+ setsid(); // make us session leader
|
||||
+ close(child_pipe[1]);
|
||||
+ dup2(child_pipe[0], STDIN_FILENO);
|
||||
+ dup2(parent_pipe[1], STDERR_FILENO);
|
||||
|
||||
+ execv(cmd[0], cmd);
|
||||
+
|
||||
+ g_set_error (error, gksu_quark, GKSU_ERROR_EXEC,
|
||||
+ _("Failed to exec new process: %s"),
|
||||
+ strerror(errno));
|
||||
+ sudo_reset_xauth (context, xauth, xauth_env);
|
||||
+ return FALSE;
|
||||
+ }
|
||||
else
|
||||
{
|
||||
gint counter = 0;
|
||||
gchar *cmdline = NULL;
|
||||
- struct termios tio;
|
||||
|
||||
// Parent
|
||||
- fdfile = fdopen(fdpty, "w+");
|
||||
+ close(parent_pipe[1]);
|
||||
|
||||
- /* make sure we notice that ECHO is turned off, if it gets
|
||||
- turned off */
|
||||
- tcgetattr (fdpty, &tio);
|
||||
- for (counter = 0; (tio.c_lflag & ECHO) && counter < 15; counter++)
|
||||
- {
|
||||
- usleep (1000);
|
||||
- tcgetattr (fdpty, &tio);
|
||||
- }
|
||||
+ infile = fdopen(parent_pipe[0], "r");
|
||||
+ if (!infile)
|
||||
+ {
|
||||
+ g_set_error (error, gksu_quark, GKSU_ERROR_PIPE,
|
||||
+ _("Error opening pipe: %s"),
|
||||
+ strerror(errno));
|
||||
+ sudo_reset_xauth (context, xauth, xauth_env);
|
||||
+ return FALSE;
|
||||
+ }
|
||||
|
||||
- fcntl (fdpty, F_SETFL, O_NONBLOCK);
|
||||
+ outfile = fdopen(child_pipe[1], "w");
|
||||
+ if (!outfile)
|
||||
+ {
|
||||
+ g_set_error (error, gksu_quark, GKSU_ERROR_PIPE,
|
||||
+ _("Error opening pipe: %s"),
|
||||
+ strerror(errno));
|
||||
+ sudo_reset_xauth (context, xauth, xauth_env);
|
||||
+ return FALSE;
|
||||
+ }
|
||||
+
|
||||
+ /*
|
||||
+ we are expecting to receive a GNOME_SUDO_PASS
|
||||
+ if we don't there are two possibilities: an error
|
||||
+ or a password is not needed
|
||||
+ */
|
||||
+ fcntl (parent_pipe[0], F_SETFL, O_NONBLOCK);
|
||||
|
||||
{ /* no matter if we can read, since we're using
|
||||
O_NONBLOCK; this is just to avoid the prompt
|
||||
@@ -2697,11 +2711,11 @@ gksu_sudo_fuller (GksuContext *context,
|
||||
struct timeval tv;
|
||||
|
||||
FD_ZERO(&rfds);
|
||||
- FD_SET(fdpty, &rfds);
|
||||
+ FD_SET(parent_pipe[0], &rfds);
|
||||
tv.tv_sec = 1;
|
||||
tv.tv_usec = 0;
|
||||
|
||||
- select (fdpty + 1, &rfds, NULL, NULL, &tv);
|
||||
+ select (parent_pipe[0] + 1, &rfds, NULL, NULL, &tv);
|
||||
}
|
||||
|
||||
/* Try hard to find the prompt; it may happen that we're
|
||||
@@ -2713,7 +2727,7 @@ gksu_sudo_fuller (GksuContext *context,
|
||||
if (strncmp (buffer, "GNOME_SUDO_PASS", 15) == 0)
|
||||
break;
|
||||
|
||||
- read_line (fdpty, buffer, 256);
|
||||
+ read_line (parent_pipe[0], buffer, 256);
|
||||
|
||||
if (context->debug)
|
||||
fprintf (stderr, "buffer: -%s-\n", buffer);
|
||||
@@ -2747,17 +2761,18 @@ gksu_sudo_fuller (GksuContext *context,
|
||||
|
||||
usleep (1000);
|
||||
|
||||
- write (fdpty, password, strlen(password) + 1);
|
||||
- write (fdpty, "\n", 1);
|
||||
+ fprintf (outfile, "%s\n", password);
|
||||
+ fclose (outfile);
|
||||
|
||||
nullify_password (password);
|
||||
|
||||
- fcntl(fdpty, F_SETFL, fcntl(fdpty, F_GETFL) & ~O_NONBLOCK);
|
||||
+ /* turn NONBLOCK off */
|
||||
+ fcntl(parent_pipe[0], F_SETFL, fcntl(parent_pipe[0], F_GETFL) & ~O_NONBLOCK);
|
||||
/* ignore the first newline that comes right after sudo receives
|
||||
the password */
|
||||
- fgets (buffer, 255, fdfile);
|
||||
- /* this is the status we are interested in */
|
||||
- fgets (buffer, 255, fdfile);
|
||||
+ fgets (buffer, 255, infile);
|
||||
+ /* this is the status we are interessted in */
|
||||
+ fgets (buffer, 255, infile);
|
||||
}
|
||||
else
|
||||
{
|
||||
@@ -2766,7 +2781,7 @@ gksu_sudo_fuller (GksuContext *context,
|
||||
fprintf (stderr, "No password prompt found; we'll assume we don't need a password.\n");
|
||||
|
||||
/* turn NONBLOCK off, also if have no prompt */
|
||||
- fcntl(fdpty, F_SETFL, fcntl(fdpty, F_GETFL) & ~O_NONBLOCK);
|
||||
+ fcntl(parent_pipe[0], F_SETFL, fcntl(parent_pipe[0], F_GETFL) & ~O_NONBLOCK);
|
||||
|
||||
should_display = gconf_client_get_bool (context->gconf_client,
|
||||
BASE_PATH "display-no-pass-info", NULL);
|
||||
@@ -2785,9 +2800,14 @@ gksu_sudo_fuller (GksuContext *context,
|
||||
fprintf (stderr, "%s", buffer);
|
||||
}
|
||||
|
||||
- if (g_str_has_prefix (buffer, "Sorry, try again."))
|
||||
+ if (!strcmp (buffer, "Sorry, try again.\n"))
|
||||
g_set_error (error, gksu_quark, GKSU_ERROR_WRONGPASS,
|
||||
_("Wrong password."));
|
||||
+ else if (!strncmp (buffer, "Sorry, user ", 12))
|
||||
+ g_set_error (error, gksu_quark, GKSU_ERROR_NOT_ALLOWED,
|
||||
+ _("The underlying authorization mechanism (sudo) "
|
||||
+ "does not allow you to run this program. Contact "
|
||||
+ "the system administrator."));
|
||||
else
|
||||
{
|
||||
gchar *haystack = buffer;
|
||||
@@ -2805,10 +2825,6 @@ gksu_sudo_fuller (GksuContext *context,
|
||||
}
|
||||
}
|
||||
|
||||
- /* If we have an error, let's just stop sudo right there. */
|
||||
- if (error)
|
||||
- close(fdpty);
|
||||
-
|
||||
cmdline = g_strdup("sudo");
|
||||
/* wait for the child process to end or become something other
|
||||
than sudo */
|
||||
@@ -2825,23 +2841,17 @@ gksu_sudo_fuller (GksuContext *context,
|
||||
if (context->sn_context)
|
||||
gksu_context_launch_complete (context);
|
||||
|
||||
+ while (read (parent_pipe[0], buffer, 255) > 0)
|
||||
+ {
|
||||
+ fprintf (stderr, "%s", buffer);
|
||||
+ bzero(buffer, 256);
|
||||
+ }
|
||||
+
|
||||
/* if the process is still active waitpid() on it */
|
||||
if (pid_exited != pid)
|
||||
waitpid(pid, &status, 0);
|
||||
sudo_reset_xauth (context, xauth, xauth_env);
|
||||
|
||||
- /*
|
||||
- * Did token acquisition succeed? If so, spawn sudo in
|
||||
- * non-interactive mode. It should either succeed or die
|
||||
- * immediately if you're not allowed to run the command.
|
||||
- */
|
||||
- if (WEXITSTATUS(status) == 0)
|
||||
- {
|
||||
- g_spawn_sync(NULL, cmd, NULL, 0, NULL, NULL,
|
||||
- NULL, &child_stderr, &status,
|
||||
- error);
|
||||
- }
|
||||
-
|
||||
if (exit_status)
|
||||
{
|
||||
if (WIFEXITED(status)) {
|
||||
@@ -2853,13 +2863,6 @@ gksu_sudo_fuller (GksuContext *context,
|
||||
|
||||
if (WEXITSTATUS(status))
|
||||
{
|
||||
- if (g_str_has_prefix(child_stderr, "Sorry, user "))
|
||||
- {
|
||||
- g_set_error (error, gksu_quark, GKSU_ERROR_NOT_ALLOWED,
|
||||
- _("The underlying authorization mechanism (sudo) "
|
||||
- "does not allow you to run this program. Contact "
|
||||
- "the system administrator."));
|
||||
- }
|
||||
if(cmdline)
|
||||
{
|
||||
/* sudo already exec()ed something else, don't report
|
||||
@@ -2868,7 +2871,6 @@ gksu_sudo_fuller (GksuContext *context,
|
||||
if (!g_str_has_suffix (cmdline, "sudo"))
|
||||
{
|
||||
g_free (cmdline);
|
||||
- g_free (child_stderr);
|
||||
return FALSE;
|
||||
}
|
||||
g_free (cmdline);
|
||||
@@ -2881,11 +2883,11 @@ gksu_sudo_fuller (GksuContext *context,
|
||||
}
|
||||
}
|
||||
|
||||
- fprintf(stderr, child_stderr);
|
||||
- g_free(child_stderr);
|
||||
-
|
||||
/* if error is set we have found an error condition */
|
||||
- return (error == NULL);
|
||||
+ if (error)
|
||||
+ return FALSE;
|
||||
+
|
||||
+ return TRUE;
|
||||
}
|
||||
|
||||
/**
|
76
pkgs/development/libraries/libgksu/libgksu-2.0.7-libs.patch
Normal file
76
pkgs/development/libraries/libgksu/libgksu-2.0.7-libs.patch
Normal file
|
@ -0,0 +1,76 @@
|
|||
# https://savannah.nongnu.org/bugs/?25362
|
||||
# https://bugs.gentoo.org/show_bug.cgi?id=226837
|
||||
diff -Nura a/configure.ac b/configure.ac
|
||||
--- a/configure.ac 2009-01-19 22:15:30.000000000 +0100
|
||||
+++ b/configure.ac 2009-01-19 22:18:10.000000000 +0100
|
||||
@@ -43,6 +43,9 @@
|
||||
PKG_CHECK_MODULES(LIBGKSU, [gtk+-2.0 >= 2.4.0, gconf-2.0, libstartup-notification-1.0, gnome-keyring-1, libgtop-2.0])
|
||||
PKG_CHECK_MODULES(GKSU_PROPERTIES, [gtk+-2.0 >= 2.4.0, gconf-2.0, libglade-2.0])
|
||||
|
||||
+PKG_CHECK_MODULES(GLIB, [glib-2.0 gthread-2.0])
|
||||
+PKG_CHECK_MODULES(GTK, [gtk+-2.0 gconf-2.0])
|
||||
+
|
||||
# Checks for library functions.
|
||||
ALL_LINGUAS="ca cs da de es eu fr hu it ko lt pl pt_BR ro ru sk sv nb nl zh_CN"
|
||||
|
||||
diff -Nura a/gksu-properties/Makefile.am b/gksu-properties/Makefile.am
|
||||
--- a/gksu-properties/Makefile.am 2009-01-19 22:15:59.000000000 +0100
|
||||
+++ b/gksu-properties/Makefile.am 2009-01-19 22:19:13.000000000 +0100
|
||||
@@ -3,7 +3,7 @@
|
||||
AM_CPPFLAGS = -DLOCALEDIR=\"$(datadir)/locale\" -DDATA_DIR=\"$(datadir)\" -DPREFIX=\"$(prefix)\"
|
||||
|
||||
bin_PROGRAMS = gksu-properties
|
||||
-gksu_properties_LDFLAGS = ${GKSU_PROPERTIES_LIBS}
|
||||
+gksu_properties_LDADD = ${GKSU_PROPERTIES_LIBS}
|
||||
gksu_properties_SOURCES = gksu-properties.c
|
||||
|
||||
gladedir = ${prefix}/share/${PACKAGE}
|
||||
diff -Nura a/libgksu/Makefile.am b/libgksu/Makefile.am
|
||||
--- a/libgksu/Makefile.am 2009-01-19 22:15:59.000000000 +0100
|
||||
+++ b/libgksu/Makefile.am 2009-01-19 22:18:25.000000000 +0100
|
||||
@@ -8,8 +8,8 @@
|
||||
# major -> breaks backward compatibility (changes to existing ABI)
|
||||
# minor -> keeps compatibility (additions to the API)
|
||||
# micro -> no change to the API/ABI
|
||||
-libgksu2_la_LIBADD = ../libgksuui/libgksuui1.0.la
|
||||
-libgksu2_la_LDFLAGS = -version-info 0:2:0 -Wl,-O1 -lutil ${LIBGKSU_LIBS}
|
||||
+libgksu2_la_LIBADD = ../libgksuui/libgksuui1.0.la -lutil ${LIBGKSU_LIBS}
|
||||
+libgksu2_la_LDFLAGS = -version-info 0:2:0 -Wl,-O1
|
||||
if USE_VERSION_SCRIPT
|
||||
libgksu2_la_LDFLAGS += -Wl,--version-script=libgksu.ver
|
||||
endif
|
||||
@@ -24,12 +24,11 @@
|
||||
|
||||
pkglibdir = ${libdir}/${PACKAGE}
|
||||
pkglib_PROGRAMS = gksu-run-helper
|
||||
-gksu_run_helper_LDFLAGS = `pkg-config --libs glib-2.0`
|
||||
+gksu_run_helper_LDADD = ${GLIB_LIBS}
|
||||
gksu_run_helper_SOURCES = gksu-run-helper.c
|
||||
|
||||
noinst_PROGRAMS = test-gksu
|
||||
test_gksu_SOURCES = test-gksu.c
|
||||
-test_gksu_LDADD = libgksu2.la
|
||||
-test_gksu_LDFLAGS = `pkg-config --libs glib-2.0 gthread-2.0`
|
||||
+test_gksu_LDADD = libgksu2.la ${GLIB_LIBS}
|
||||
|
||||
EXTRA_DIST = libgksu.ver
|
||||
diff -Nura a/libgksuui/Makefile.am b/libgksuui/Makefile.am
|
||||
--- a/libgksuui/Makefile.am 2009-01-19 22:15:59.000000000 +0100
|
||||
+++ b/libgksuui/Makefile.am 2009-01-19 22:18:54.000000000 +0100
|
||||
@@ -4,12 +4,13 @@
|
||||
|
||||
noinst_LTLIBRARIES = libgksuui1.0.la
|
||||
libgksuui1_0_la_SOURCES = gksuui-dialog.c
|
||||
-libgksuui1_0_la_LDFLAGS = -Wl,-O1 `pkg-config --libs gtk+-2.0 gconf-2.0`
|
||||
+libgksuui1_0_la_LDFLAGS = -Wl,-O1
|
||||
+libgksuui1_0_la_LIBADD = ${GTK_LIBS}
|
||||
|
||||
noinst_HEADERS = defines.h gksuui.h gksuui-dialog.h
|
||||
includedir = ${prefix}/include/$(PACKAGE)
|
||||
|
||||
noinst_PROGRAMS = test-gksuui
|
||||
test_gksuui_SOURCES = test-gksuui.c
|
||||
-test_gksuui_LDADD = libgksuui1.0.la
|
||||
-test_gksuui_LDFLAGS = `pkg-config --libs glib-2.0 gthread-2.0`
|
||||
+test_gksuui_LDADD = libgksuui1.0.la ${GLIB_LIBS}
|
||||
+
|
|
@ -0,0 +1,40 @@
|
|||
# https://savannah.nongnu.org/bugs/?25360
|
||||
diff -Nura a/configure.ac b/configure.ac
|
||||
--- a/configure.ac 2009-01-19 21:50:57.000000000 +0100
|
||||
+++ b/configure.ac 2009-01-19 21:53:21.000000000 +0100
|
||||
@@ -50,7 +50,7 @@
|
||||
GETTEXT_PACKAGE=AC_PACKAGE_NAME
|
||||
AC_SUBST(GETTEXT_PACKAGE)
|
||||
|
||||
-IT_PROG_INTLTOOL
|
||||
+IT_PROG_INTLTOOL([0.35.5])
|
||||
AM_GLIB_GNU_GETTEXT
|
||||
|
||||
##################################################
|
||||
diff -Nura a/po/LINGUAS b/po/LINGUAS
|
||||
--- a/po/LINGUAS 1970-01-01 01:00:00.000000000 +0100
|
||||
+++ b/po/LINGUAS 2009-01-19 21:54:24.000000000 +0100
|
||||
@@ -0,0 +1,23 @@
|
||||
+# please keep this list sorted alphabetically
|
||||
+# http://live.gnome.org/GnomeGoals/PoLinguas
|
||||
+#
|
||||
+ca
|
||||
+cs
|
||||
+da
|
||||
+de
|
||||
+es
|
||||
+eu
|
||||
+fr
|
||||
+hu
|
||||
+it
|
||||
+ko
|
||||
+lt
|
||||
+pl
|
||||
+pt_BR
|
||||
+ro
|
||||
+ru
|
||||
+sk
|
||||
+sv
|
||||
+nb
|
||||
+nl
|
||||
+zh_CN
|
|
@ -1,20 +1,21 @@
|
|||
{ stdenv, fetchurl, libX11, pkgconfig, libXext, mesa, libdrm, libXfixes }:
|
||||
{ stdenv, fetchurl, libX11, pkgconfig, libXext, mesa, libdrm, libXfixes, wayland, libffi }:
|
||||
|
||||
stdenv.mkDerivation rec {
|
||||
name = "libva-1.1.1";
|
||||
name = "libva-1.3.1";
|
||||
|
||||
src = fetchurl {
|
||||
url = "http://www.freedesktop.org/software/vaapi/releases/libva/${name}.tar.bz2";
|
||||
sha256 = "0kfdcrzcr82g15l0vvmm6rqr0f0604d4dgrza78gn6bfx7rppby0";
|
||||
sha256 = "15y27jdnfvf9krg4s3a1c29rn9pvyp43wckpwhd2rg4wrbqv32c7";
|
||||
};
|
||||
|
||||
buildInputs = [ libX11 libXext pkgconfig mesa libdrm libXfixes ];
|
||||
buildInputs = [ libX11 libXext pkgconfig mesa libdrm libXfixes wayland libffi ];
|
||||
|
||||
configureFlags = [ "--enable-glx" ];
|
||||
|
||||
meta = {
|
||||
meta = with stdenv.lib; {
|
||||
homepage = http://www.freedesktop.org/wiki/Software/vaapi;
|
||||
license = stdenv.lib.licenses.mit;
|
||||
license = licenses.mit;
|
||||
description = "VAAPI library: Video Acceleration API";
|
||||
platforms = platforms.unix;
|
||||
};
|
||||
}
|
||||
|
|
|
@ -38,6 +38,9 @@ stdenv.mkDerivation rec {
|
|||
substituteInPlace configure --replace /bin/pwd pwd
|
||||
substituteInPlace qtbase/configure --replace /bin/pwd pwd
|
||||
substituteInPlace qtbase/src/corelib/global/global.pri --replace /bin/ls ${coreutils}/bin/ls
|
||||
substituteInPlace qtbase/src/plugins/platforminputcontexts/compose/generator/qtablegenerator.cpp \
|
||||
--replace /usr/share/X11/locale ${libX11}/share/X11/locale \
|
||||
--replace /usr/lib/X11/locale ${libX11}/share/X11/locale
|
||||
sed -e 's@/\(usr\|opt\)/@/var/empty/@g' -i config.tests/*/*.test -i qtbase/mkspecs/*/*.conf
|
||||
'';
|
||||
|
||||
|
|
|
@ -38,6 +38,9 @@ stdenv.mkDerivation rec {
|
|||
substituteInPlace configure --replace /bin/pwd pwd
|
||||
substituteInPlace qtbase/configure --replace /bin/pwd pwd
|
||||
substituteInPlace qtbase/src/corelib/global/global.pri --replace /bin/ls ${coreutils}/bin/ls
|
||||
substituteInPlace qtbase/src/plugins/platforminputcontexts/compose/generator/qtablegenerator.cpp \
|
||||
--replace /usr/share/X11/locale ${libX11}/share/X11/locale \
|
||||
--replace /usr/lib/X11/locale ${libX11}/share/X11/locale
|
||||
sed -e 's@/\(usr\|opt\)/@/var/empty/@g' -i config.tests/*/*.test -i qtbase/mkspecs/*/*.conf
|
||||
'';
|
||||
|
||||
|
|
|
@ -1,23 +1,27 @@
|
|||
{ stdenv, fetchurl, autoconf, automake, libtool, mesa, libva, libdrm, libX11, pkgconfig
|
||||
, intelgen4asm }:
|
||||
{ stdenv, fetchurl, pkgconfig, libdrm, libva, libX11, intel-gpu-tools, mesa_noglu, wayland, python, gnum4 }:
|
||||
|
||||
stdenv.mkDerivation rec {
|
||||
name = "libva-intel-driver-1.0.20";
|
||||
name = "libva-intel-driver-1.3.2";
|
||||
|
||||
src = fetchurl {
|
||||
url = "http://www.freedesktop.org/software/vaapi/releases/libva-intel-driver/${name}.tar.bz2";
|
||||
sha256 = "1jfl8909j3a3in6m8b5bx3dn7pzr8a1sw3sk4vzm7h3j2dkgpzhj";
|
||||
sha256 = "1l8897plk74zcik6snk7hb5s4ga0d2vypccfkh0bp1fb2775dn8i";
|
||||
};
|
||||
|
||||
buildInputs = [ pkgconfig libdrm libva libX11 ];
|
||||
prePatch = ''
|
||||
sed -i 's,#!/usr/bin/env python,#!${python}/bin/python,' src/shaders/gpp.py
|
||||
'';
|
||||
|
||||
buildInputs = [ pkgconfig libdrm libva libX11 intel-gpu-tools mesa_noglu wayland gnum4 ];
|
||||
|
||||
preConfigure = ''
|
||||
sed -i -e "s,LIBVA_DRIVERS_PATH=.*,LIBVA_DRIVERS_PATH=$out/lib/dri," configure
|
||||
'';
|
||||
|
||||
meta = {
|
||||
meta = with stdenv.lib; {
|
||||
homepage = http://cgit.freedesktop.org/vaapi/intel-driver/;
|
||||
license = stdenv.lib.licenses.mit;
|
||||
license = licenses.mit;
|
||||
description = "Intel driver for the VAAPI library";
|
||||
platforms = platforms.unix;
|
||||
};
|
||||
}
|
||||
|
|
|
@ -1,21 +0,0 @@
|
|||
{ stdenv, fetchgit, autoconf, automake, libtool, bison, flex }:
|
||||
|
||||
stdenv.mkDerivation rec {
|
||||
name = "intel-g4asm-20110416";
|
||||
|
||||
src = fetchgit {
|
||||
url = http://anongit.freedesktop.org/git/xorg/app/intel-gen4asm.git;
|
||||
rev = "2450ff752642d116eb789a35393b9828133c7d31";
|
||||
sha256 = "a24c054a7c5ae335b72523fd2f51cae7f07a2885ef3c7a04d07a85e39f0c053f";
|
||||
};
|
||||
|
||||
buildInputs = [ autoconf automake libtool bison flex ];
|
||||
|
||||
preConfigure = "sh autogen.sh";
|
||||
|
||||
meta = {
|
||||
homepage = http://cgit.freedesktop.org/xorg/app/intel-gen4asm/;
|
||||
license = stdenv.lib.licenses.mit;
|
||||
description = "Program to compile an assembly language for the Intel 965 Express Chipset";
|
||||
};
|
||||
}
|
79
pkgs/development/pharo/vm/default.nix
Normal file
79
pkgs/development/pharo/vm/default.nix
Normal file
|
@ -0,0 +1,79 @@
|
|||
{ stdenv, fetchurl, cmake, bash, unzip, glibc, openssl, gcc, mesa, freetype, xlibs, alsaLib }:
|
||||
|
||||
stdenv.mkDerivation rec {
|
||||
name = "pharo-vm-core-i386-2014.06.25";
|
||||
system = "x86_32-linux";
|
||||
src = fetchurl {
|
||||
url = http://files.pharo.org/vm/src/vm-unix-sources/pharo-vm-2014.06.25.tar.bz2;
|
||||
md5 = "4d80d8169c2f2f0355c43ee90bbad23f";
|
||||
};
|
||||
|
||||
sources10Zip = fetchurl {
|
||||
url = http://files.pharo.org/sources/PharoV10.sources.zip;
|
||||
md5 = "3476222a0345a6f8f8b6093b5e3b30fb";
|
||||
};
|
||||
|
||||
sources20Zip = fetchurl {
|
||||
url = http://files.pharo.org/sources/PharoV20.sources.zip;
|
||||
md5 = "a145b0733f9d68d9ce6a76270b6b9ec8";
|
||||
};
|
||||
|
||||
sources30Zip = fetchurl {
|
||||
url = http://files.pharo.org/sources/PharoV30.sources.zip;
|
||||
md5 = "bb0a66b8968ef7d0da97ec86331f68c8";
|
||||
};
|
||||
|
||||
# Building
|
||||
preConfigure = ''
|
||||
cd build/
|
||||
'';
|
||||
resources = ./resources;
|
||||
installPhase = ''
|
||||
echo Current directory $(pwd)
|
||||
echo Creating prefix "$prefix"
|
||||
mkdir -p "$prefix/lib/pharo-vm"
|
||||
|
||||
cd ../../results
|
||||
|
||||
mv vm-display-null vm-display-null.so
|
||||
mv vm-display-X11 vm-display-X11.so
|
||||
mv vm-sound-null vm-sound-null.so
|
||||
mv vm-sound-ALSA vm-sound-ALSA.so
|
||||
mv pharo pharo-vm
|
||||
|
||||
cp * "$prefix/lib/pharo-vm"
|
||||
|
||||
cp -R "$resources"/* "$prefix/"
|
||||
|
||||
mkdir $prefix/bin
|
||||
|
||||
chmod u+w $prefix/bin
|
||||
cat > $prefix/bin/pharo-vm-x <<EOF
|
||||
#!${bash}/bin/bash
|
||||
|
||||
# disable parameter expansion to forward all arguments unprocessed to the VM
|
||||
set -f
|
||||
|
||||
exec $prefix/lib/pharo-vm/pharo-vm "\$@"
|
||||
EOF
|
||||
|
||||
cat > $prefix/bin/pharo-vm-nox <<EOF
|
||||
#!${bash}/bin/bash
|
||||
|
||||
# disable parameter expansion to forward all arguments unprocessed to the VM
|
||||
set -f
|
||||
|
||||
exec $prefix/lib/pharo-vm/pharo-vm -vm-display-null "\$@"
|
||||
EOF
|
||||
|
||||
chmod +x $prefix/bin/pharo-vm-x $prefix/bin/pharo-vm-nox
|
||||
|
||||
unzip ${sources10Zip} -d $prefix/lib/pharo-vm/
|
||||
unzip ${sources20Zip} -d $prefix/lib/pharo-vm/
|
||||
unzip ${sources30Zip} -d $prefix/lib/pharo-vm/
|
||||
'';
|
||||
|
||||
patches = [ patches/pharo-is-not-squeak.patch patches/fix-executable-name.patch patches/fix-cmake-root-directory.patch ];
|
||||
|
||||
buildInputs = [ bash unzip cmake glibc openssl gcc mesa freetype xlibs.libX11 xlibs.libICE xlibs.libSM alsaLib ];
|
||||
}
|
|
@ -0,0 +1,84 @@
|
|||
From: Damien Cassou <damien.cassou@gmail.com>
|
||||
Subject: Fix use of absolute paths in cmake files
|
||||
|
||||
* build/directories.cmake
|
||||
* build/CMakeLists.txt
|
||||
* build/vm-sound-ALSA/CMakeLists.txt
|
||||
* build/vm-sound-null/CMakeLists.txt
|
||||
* build/vm-display-null/CMakeLists.txt
|
||||
* build/vm-display-X11/CMakeLists.txt
|
||||
--- a/build/CMakeLists.txt
|
||||
+++ b/build/CMakeLists.txt
|
||||
@@ -71,7 +71,7 @@
|
||||
list(APPEND LINKLIBS m)
|
||||
list(APPEND LINKLIBS dl)
|
||||
list(APPEND LINKLIBS pthread)
|
||||
-set(EXECUTABLE_OUTPUT_PATH "/builds/workspace/Pharo-vm-unix-sources/cog/results")
|
||||
+set(EXECUTABLE_OUTPUT_PATH "${CMAKE_SOURCE_DIR}/../results")
|
||||
add_subdirectory("vm-display-null")
|
||||
add_subdirectory("vm-display-X11")
|
||||
add_subdirectory("vm-sound-ALSA")
|
||||
--- a/build/directories.cmake
|
||||
+++ b/build/directories.cmake
|
||||
@@ -1,12 +1,12 @@
|
||||
-set(topDir "/builds/workspace/Pharo-vm-unix-sources/cog")
|
||||
-set(buildDir "/builds/workspace/Pharo-vm-unix-sources/cog/build")
|
||||
+set(topDir "${CMAKE_SOURCE_DIR}/..")
|
||||
+set(buildDir "${CMAKE_SOURCE_DIR}/../build")
|
||||
set(thirdpartyDir "${buildDir}/thirdParty")
|
||||
-set(platformsDir "/builds/workspace/Pharo-vm-unix-sources/cog/platforms")
|
||||
-set(srcDir "/builds/workspace/Pharo-vm-unix-sources/cog/src")
|
||||
+set(platformsDir "${CMAKE_SOURCE_DIR}/../platforms")
|
||||
+set(srcDir "${CMAKE_SOURCE_DIR}/../src")
|
||||
set(srcPluginsDir "${srcDir}/plugins")
|
||||
set(srcVMDir "${srcDir}/vm")
|
||||
set(platformName "unix")
|
||||
set(targetPlatform ${platformsDir}/${platformName})
|
||||
set(crossDir "${platformsDir}/Cross")
|
||||
set(platformVMDir "${targetPlatform}/vm")
|
||||
-set(outputDir "/builds/workspace/Pharo-vm-unix-sources/cog/results")
|
||||
+set(outputDir "${CMAKE_SOURCE_DIR}/../results")
|
||||
--- a/build/vm-display-X11/CMakeLists.txt
|
||||
+++ b/build/vm-display-X11/CMakeLists.txt
|
||||
@@ -11,7 +11,7 @@
|
||||
include_directories(${crossDir}/plugins/FilePlugin)
|
||||
include_directories(${targetPlatform}/plugins/B3DAcceleratorPlugin)
|
||||
include_directories(${crossDir}/plugins/B3DAcceleratorPlugin)
|
||||
-set(LIBRARY_OUTPUT_PATH "/builds/workspace/Pharo-vm-unix-sources/cog/results")
|
||||
+set(LIBRARY_OUTPUT_PATH "${CMAKE_SOURCE_DIR}/../results")
|
||||
list(APPEND LINKLIBS SM)
|
||||
list(APPEND LINKLIBS ICE)
|
||||
list(APPEND LINKLIBS GL)
|
||||
--- a/build/vm-display-null/CMakeLists.txt
|
||||
+++ b/build/vm-display-null/CMakeLists.txt
|
||||
@@ -11,7 +11,7 @@
|
||||
include_directories(${crossDir}/plugins/FilePlugin)
|
||||
include_directories(${targetPlatform}/plugins/B3DAcceleratorPlugin)
|
||||
include_directories(${crossDir}/plugins/B3DAcceleratorPlugin)
|
||||
-set(LIBRARY_OUTPUT_PATH "/builds/workspace/Pharo-vm-unix-sources/cog/results")
|
||||
+set(LIBRARY_OUTPUT_PATH "${CMAKE_SOURCE_DIR}/../results")
|
||||
target_link_libraries(vm-display-null ${LINKLIBS})
|
||||
set_target_properties(vm-display-null PROPERTIES PREFIX "" SUFFIX ""
|
||||
LINK_FLAGS -m32)
|
||||
--- a/build/vm-sound-ALSA/CMakeLists.txt
|
||||
+++ b/build/vm-sound-ALSA/CMakeLists.txt
|
||||
@@ -11,7 +11,7 @@
|
||||
include_directories(${crossDir}/plugins/FilePlugin)
|
||||
include_directories(${targetPlatform}/plugins/B3DAcceleratorPlugin)
|
||||
include_directories(${crossDir}/plugins/B3DAcceleratorPlugin)
|
||||
-set(LIBRARY_OUTPUT_PATH "/builds/workspace/Pharo-vm-unix-sources/cog/results")
|
||||
+set(LIBRARY_OUTPUT_PATH "${CMAKE_SOURCE_DIR}/../results")
|
||||
target_link_libraries(vm-sound-ALSA ${LINKLIBS})
|
||||
set_target_properties(vm-sound-ALSA PROPERTIES PREFIX "" SUFFIX ""
|
||||
LINK_FLAGS -m32)
|
||||
--- a/build/vm-sound-null/CMakeLists.txt
|
||||
+++ b/build/vm-sound-null/CMakeLists.txt
|
||||
@@ -11,7 +11,7 @@
|
||||
include_directories(${crossDir}/plugins/FilePlugin)
|
||||
include_directories(${targetPlatform}/plugins/B3DAcceleratorPlugin)
|
||||
include_directories(${crossDir}/plugins/B3DAcceleratorPlugin)
|
||||
-set(LIBRARY_OUTPUT_PATH "/builds/workspace/Pharo-vm-unix-sources/cog/results")
|
||||
+set(LIBRARY_OUTPUT_PATH "${CMAKE_SOURCE_DIR}/../results")
|
||||
target_link_libraries(vm-sound-null ${LINKLIBS})
|
||||
set_target_properties(vm-sound-null PROPERTIES PREFIX "" SUFFIX ""
|
||||
LINK_FLAGS -m32)
|
14
pkgs/development/pharo/vm/patches/fix-executable-name.patch
Normal file
14
pkgs/development/pharo/vm/patches/fix-executable-name.patch
Normal file
|
@ -0,0 +1,14 @@
|
|||
Change the name of the executable file from Squeak to Pharo
|
||||
--- a/platforms/unix/vm-display-X11/sqUnixX11.c
|
||||
+++ b/platforms/unix/vm-display-X11/sqUnixX11.c
|
||||
@@ -153,8 +153,8 @@
|
||||
/*** Variables -- X11 Related ***/
|
||||
|
||||
/* name of Squeak windows in Xrm and the WM */
|
||||
-#define xResClass "Squeak"
|
||||
-#define xResName "squeak"
|
||||
+#define xResClass "pharo-vm"
|
||||
+#define xResName "Pharo"
|
||||
|
||||
char *displayName= 0; /* name of display, or 0 for $DISPLAY */
|
||||
Display *stDisplay= null; /* Squeak display */
|
23
pkgs/development/pharo/vm/patches/pharo-is-not-squeak.patch
Normal file
23
pkgs/development/pharo/vm/patches/pharo-is-not-squeak.patch
Normal file
|
@ -0,0 +1,23 @@
|
|||
pharo --help must talk about Pharo and not about Squeak
|
||||
--- a/platforms/unix/vm-display-X11/sqUnixX11.c
|
||||
+++ b/platforms/unix/vm-display-X11/sqUnixX11.c
|
||||
@@ -7075,8 +7075,8 @@
|
||||
printf(" -lazy go to sleep when main window unmapped\n");
|
||||
printf(" -mapdelbs map Delete key onto Backspace\n");
|
||||
printf(" -nointl disable international keyboard support\n");
|
||||
- printf(" -notitle disable the Squeak window title bar\n");
|
||||
- printf(" -title <t> use t as the Squeak window title instead of the image name\n");
|
||||
+ printf(" -notitle disable the Pharo window title bar\n");
|
||||
+ printf(" -title <t> use t as the Pharo window title instead of the image name\n");
|
||||
printf(" -ldtoms <n> launch drop timeout milliseconds\n");
|
||||
printf(" -noxdnd disable X drag-and-drop protocol support\n");
|
||||
printf(" -optmod <n> map Mod<n> to the Option key\n");
|
||||
@@ -7095,7 +7095,7 @@
|
||||
static void display_printUsageNotes(void)
|
||||
{
|
||||
printf(" Using `unix:0' for <dpy> may improve local display performance.\n");
|
||||
- printf(" -xshm only works when Squeak is running on the X server host.\n");
|
||||
+ printf(" -xshm only works when Pharo is running on the X server host.\n");
|
||||
}
|
||||
|
||||
|
|
@ -0,0 +1,11 @@
|
|||
[Desktop Entry]
|
||||
Name=Pharo VM
|
||||
GenericName=Pharo Virtual Machine
|
||||
Exec=pharo-vm-x %F
|
||||
Icon=pharo
|
||||
Terminal=false
|
||||
Type=Application
|
||||
StartupNotify=false
|
||||
Categories=Development;
|
||||
MimeType=application/x-pharo-image;
|
||||
NoDisplay=true
|
Binary file not shown.
After ![]() (image error) Size: 902 B |
Binary file not shown.
After ![]() (image error) Size: 51 KiB |
Binary file not shown.
After ![]() (image error) Size: 2.3 KiB |
Binary file not shown.
After ![]() (image error) Size: 4.5 KiB |
|
@ -0,0 +1,9 @@
|
|||
<?xml version="1.0" encoding="UTF-8"?>
|
||||
<mime-info xmlns='http://www.freedesktop.org/standards/shared-mime-info'>
|
||||
<mime-type type="application/x-pharo-image">
|
||||
<comment>Pharo image file</comment>
|
||||
<comment xml:lang="fr">Fichier d'image Pharo</comment>
|
||||
<glob pattern="*.image"/>
|
||||
<icon name="pharo"/>
|
||||
</mime-type>
|
||||
</mime-info>
|
21
pkgs/development/tools/misc/intel-gpu-tools/default.nix
Normal file
21
pkgs/development/tools/misc/intel-gpu-tools/default.nix
Normal file
|
@ -0,0 +1,21 @@
|
|||
{ stdenv, fetchurl, pkgconfig, libdrm, libpciaccess, cairo, dri2proto, udev, libX11, libXext, libXv, libXrandr, glib, bison }:
|
||||
|
||||
stdenv.mkDerivation rec {
|
||||
name = "intel-gpu-tools-1.7";
|
||||
|
||||
src = fetchurl {
|
||||
url = "http://xorg.freedesktop.org/archive/individual/app/${name}.tar.bz2";
|
||||
sha256 = "0yi0024kr1xzglkkhyjpxr081bmwvdakb61az6wiidfrpd1j6q92";
|
||||
};
|
||||
|
||||
configureFlags = [ "--disable-tests" ];
|
||||
|
||||
buildInputs = [ pkgconfig libdrm libpciaccess cairo dri2proto udev libX11 libXext libXv libXrandr glib bison ];
|
||||
|
||||
meta = with stdenv.lib; {
|
||||
homepage = https://01.org/linuxgraphics/;
|
||||
description = "Tools for development and testing of the Intel DRM driver";
|
||||
license = licenses.mit;
|
||||
platforms = platforms.unix;
|
||||
};
|
||||
}
|
36
pkgs/games/astromenace/default.nix
Normal file
36
pkgs/games/astromenace/default.nix
Normal file
|
@ -0,0 +1,36 @@
|
|||
{ fetchurl, stdenv, cmake, x11, mesa, SDL, openal, freealut, libogg, libvorbis }:
|
||||
|
||||
stdenv.mkDerivation rec {
|
||||
version = "1.3.2";
|
||||
name = "astromenace-${version}";
|
||||
|
||||
src = fetchurl {
|
||||
url = "mirror://sourceforge/openastromenace/astromenace-src-${version}.tar.bz2";
|
||||
sha256 = "1rkz6lwjcd5mwv72kf07ghvx6z46kf3xs250mjbmnmjpn7r5sxwv";
|
||||
};
|
||||
|
||||
buildInputs = [ cmake x11 mesa SDL openal freealut libogg libvorbis ];
|
||||
|
||||
buildPhase = ''
|
||||
cmake ./
|
||||
make
|
||||
./AstroMenace --pack --rawdata=../RAW_VFS_DATA
|
||||
'';
|
||||
installPhase = ''
|
||||
mkdir -p $out/bin
|
||||
cp AstroMenace $out
|
||||
cp gamedata.vfs $out
|
||||
cat > $out/bin/AstroMenace << EOF
|
||||
#!/bin/bash
|
||||
$out/AstroMenace --dir=$out
|
||||
EOF
|
||||
chmod 755 $out/bin/AstroMenace
|
||||
'';
|
||||
|
||||
meta = {
|
||||
description = "Hardcore 3D space shooter with spaceship upgrade possibilities.";
|
||||
homepage = http://www.viewizard.com/;
|
||||
license = stdenv.lib.licenses.gpl3;
|
||||
platforms = stdenv.lib.platforms.linux;
|
||||
};
|
||||
}
|
|
@ -1,13 +1,13 @@
|
|||
{ stdenv, fetchurl }:
|
||||
stdenv.mkDerivation rec {
|
||||
version = "1.9";
|
||||
version = "1.10";
|
||||
name = "beanstalkd-${version}";
|
||||
|
||||
installPhase=''make install "PREFIX=$out"'';
|
||||
|
||||
src = fetchurl {
|
||||
url = "https://github.com/kr/beanstalkd/archive/v${version}.tar.gz";
|
||||
sha256 = "158e6d6090c0afac7ee17b9f22713506b3e870dc04a738517282e2e262afb9eb";
|
||||
sha256 = "0n9dlmiddcfl7i0f1lwfhqiwyvf26493fxfcmn8jm30nbqciwfwj";
|
||||
};
|
||||
|
||||
meta = with stdenv.lib; {
|
||||
|
|
32
pkgs/servers/unifi/default.nix
Normal file
32
pkgs/servers/unifi/default.nix
Normal file
|
@ -0,0 +1,32 @@
|
|||
{ stdenv, fetchurl, unzip }:
|
||||
|
||||
stdenv.mkDerivation rec {
|
||||
name = "unifi-controller-${version}";
|
||||
version = "3.2.1";
|
||||
|
||||
src = fetchurl {
|
||||
url = "http://dl.ubnt.com/unifi/${version}/UniFi.unix.zip";
|
||||
sha256 = "0x7s5k9wxkw0rcs4c2mdrmmjpcfmbh5pvvpj8brrwnkgx072n53c";
|
||||
};
|
||||
|
||||
buildInputs = [ unzip ];
|
||||
|
||||
doConfigure = false;
|
||||
|
||||
buildPhase = ''
|
||||
rm -rf bin conf readme.txt
|
||||
'';
|
||||
|
||||
installPhase = ''
|
||||
mkdir -p $out
|
||||
cp -ar * $out
|
||||
'';
|
||||
|
||||
meta = with stdenv.lib; {
|
||||
homepage = http://www.ubnt.com/;
|
||||
description = "Controller for Ubiquiti UniFi accesspoints";
|
||||
license = licenses.unfree;
|
||||
platforms = platforms.unix;
|
||||
maintainers = with maintainers; [ wkennington ];
|
||||
};
|
||||
}
|
23
pkgs/tools/filesystems/bindfs/default.nix
Normal file
23
pkgs/tools/filesystems/bindfs/default.nix
Normal file
|
@ -0,0 +1,23 @@
|
|||
{ stdenv, fetchurl, fuse, pkgconfig }:
|
||||
|
||||
stdenv.mkDerivation rec {
|
||||
version = "1.12.6";
|
||||
name = "bindfs-${version}";
|
||||
|
||||
src = fetchurl {
|
||||
url = "http://bindfs.org/downloads/${name}.tar.gz";
|
||||
sha256 = "0s90n1n4rvpcg51ixr5wx8ixml1xnc7w28xlbnms34v19pzghm59";
|
||||
};
|
||||
|
||||
dontStrip = true;
|
||||
|
||||
buildInputs = [ fuse pkgconfig ];
|
||||
|
||||
meta = {
|
||||
description = "A FUSE filesystem for mounting a directory to another location";
|
||||
homepage = http://bindfs.org;
|
||||
license = stdenv.lib.licenses.gpl2;
|
||||
maintainers = with stdenv.lib.maintainers; [ lovek323 ];
|
||||
platforms = stdenv.lib.platforms.unix;
|
||||
};
|
||||
}
|
|
@ -3,11 +3,11 @@
|
|||
stdenv.mkDerivation rec {
|
||||
name = "riemann-c-client-${version}";
|
||||
|
||||
version = "1.1.1";
|
||||
version = "1.2.0";
|
||||
|
||||
src = fetchurl {
|
||||
url = "https://github.com/algernon/riemann-c-client/archive/${name}.tar.gz";
|
||||
sha256 = "10nz20svf1nb6kymwp0x49nvwnxakby33r6jsadish1fjcvzki88";
|
||||
sha256 = "1w3rx0hva605d5vzlhhm4pb43ady0m3s4mz8ix1ycn4b8cq9jsjs";
|
||||
};
|
||||
|
||||
buildInputs = [ autoconf automake libtool pkgconfig file protobufc ];
|
||||
|
|
|
@ -1,18 +1,23 @@
|
|||
{ stdenv, fetchurl, libcap, readline }:
|
||||
{ stdenv, fetchurl, libcap, readline, texinfo }:
|
||||
|
||||
assert stdenv.isLinux -> libcap != null;
|
||||
|
||||
stdenv.mkDerivation rec {
|
||||
name = "chrony-1.29.1";
|
||||
name = "chrony-${version}";
|
||||
|
||||
version = "1.30";
|
||||
|
||||
src = fetchurl {
|
||||
url = "http://download.tuxfamily.org/chrony/${name}.tar.gz";
|
||||
sha256 = "09xgcmh9yrprsazsrm3bm0xl3y75csi9lhh815yyrn68v2s9p335";
|
||||
sha256 = "1pa6629nigcv95x2q9dnmzlrwhicxizq9z7ggy2c9cmyl1bakb23";
|
||||
};
|
||||
|
||||
buildInputs = [ readline ] ++ stdenv.lib.optional stdenv.isLinux libcap;
|
||||
buildInputs = [ readline texinfo ] ++ stdenv.lib.optional stdenv.isLinux libcap;
|
||||
|
||||
configureFlags = [ "--sysconfdir=\$(out)/etc" "--chronyvardir=\$(out)/var/lib/chrony" ];
|
||||
configureFlags = [
|
||||
"--sysconfdir=$(out)/etc"
|
||||
"--chronyvardir=$(out)/var/lib/chrony"
|
||||
];
|
||||
|
||||
meta = with stdenv.lib; {
|
||||
description = "Sets your computer's clock from time servers on the Net";
|
||||
|
@ -20,6 +25,7 @@ stdenv.mkDerivation rec {
|
|||
repository.git = git://git.tuxfamily.org/gitroot/chrony/chrony.git;
|
||||
license = licenses.gpl2;
|
||||
platforms = platforms.unix;
|
||||
maintainers = [ maintainers.rickynils ];
|
||||
|
||||
longDescription = ''
|
||||
Chronyd is a daemon which runs in background on the system. It obtains measurements via the network of the system clock’s offset relative to time servers on other systems and adjusts the system time accordingly. For isolated systems, the user can periodically enter the correct time by hand (using Chronyc). In either case, Chronyd determines the rate at which the computer gains or loses time, and compensates for this. Chronyd implements the NTP protocol and can act as either a client or a server.
|
||||
|
|
|
@ -4,11 +4,11 @@
|
|||
stdenv.mkDerivation rec {
|
||||
name = "syslog-ng-incubator-${version}";
|
||||
|
||||
version = "0.3.1";
|
||||
version = "0.3.3";
|
||||
|
||||
src = fetchurl {
|
||||
url = "https://github.com/balabit/syslog-ng-incubator/archive/${name}.tar.gz";
|
||||
sha256 = "0zr0vlp7cq3qfhqhalf7rdyd54skswxnc9j9wi8sfmz3psy3vd4y";
|
||||
sha256 = "1yx2gdq1vhrcp113hxgl66z5df4ya9nznvq00nvy4v9yn8wf9fb8";
|
||||
};
|
||||
|
||||
buildInputs = [
|
||||
|
|
|
@ -1,11 +1,13 @@
|
|||
{ stdenv, fetchurl, eventlog, pkgconfig, glib, python, systemd, perl }:
|
||||
|
||||
stdenv.mkDerivation {
|
||||
name = "syslog-ng-3.5.4.1";
|
||||
stdenv.mkDerivation rec {
|
||||
name = "syslog-ng-${version}";
|
||||
|
||||
version = "3.5.6";
|
||||
|
||||
src = fetchurl {
|
||||
url = "http://www.balabit.com/downloads/files?path=/syslog-ng/sources/3.5.4.1/source/syslog-ng_3.5.4.1.tar.gz";
|
||||
sha256 = "0rkgrmnyx1x6m3jw5n49k7r1dcg79lxh900g74rgvd3j86g9dilj";
|
||||
url = "http://www.balabit.com/downloads/files?path=/syslog-ng/sources/${version}/source/syslog-ng_${version}.tar.gz";
|
||||
sha256 = "19i1idklpgn6mz0mg7194by5fjgvvh5n4v2a0rr1z0778l2038kc";
|
||||
};
|
||||
|
||||
buildInputs = [ eventlog pkgconfig glib python systemd perl ];
|
||||
|
@ -16,9 +18,10 @@ stdenv.mkDerivation {
|
|||
"--with-systemdsystemunitdir=$(out)/etc/systemd/system"
|
||||
];
|
||||
|
||||
meta = {
|
||||
meta = with stdenv.lib; {
|
||||
homepage = "http://www.balabit.com/network-security/syslog-ng/";
|
||||
description = "Next-generation syslogd with advanced networking and filtering capabilities";
|
||||
license = stdenv.lib.licenses.gpl2;
|
||||
license = licenses.gpl2;
|
||||
maintainers = [ maintainers.rickynils ];
|
||||
};
|
||||
}
|
||||
|
|
63
pkgs/tools/text/peco/default.nix
Normal file
63
pkgs/tools/text/peco/default.nix
Normal file
|
@ -0,0 +1,63 @@
|
|||
{ stdenv, go, fetchgit }:
|
||||
|
||||
let
|
||||
go-flags = fetchgit {
|
||||
url = "git://github.com/jessevdk/go-flags";
|
||||
rev = "4f0ca1e2d1349e9662b633ea1b8b8d48e8a32533";
|
||||
sha256 = "5f22f4c5a0529ff0da8e507462ad910bb73c513fde49d58dd4baf7332787ca3d";
|
||||
};
|
||||
go-runewidth = fetchgit {
|
||||
url = "git://github.com/mattn/go-runewidth";
|
||||
rev = "36f63b8223e701c16f36010094fb6e84ffbaf8e0";
|
||||
sha256 = "718e9e04659441744b8d43bd3d7e806836194cf322962712a6e019311d407ecf";
|
||||
};
|
||||
termbox-go = fetchgit {
|
||||
url = "git://github.com/nsf/termbox-go";
|
||||
rev = "4e63c3a917c197694cb4fef6c55582500b3741e3";
|
||||
sha256 = "00ecc0dcf0919a42ea06fe3bd93480a17241160c434ff3872b6f5e418eb18069";
|
||||
};
|
||||
in stdenv.mkDerivation rec {
|
||||
name = "peco-${version}";
|
||||
version = "0.2.3";
|
||||
|
||||
src = fetchgit {
|
||||
url = "git://github.com/peco/peco";
|
||||
rev = "b8e0c8f37d3eed68e64c931b0edb77728f3723f9";
|
||||
sha256 = "f178e01ab0536770b17eddcefd863e68c2d65b527b5da1fc3fb9efb19c12635f";
|
||||
};
|
||||
|
||||
buildInputs = [ go ];
|
||||
|
||||
sourceRoot = ".";
|
||||
|
||||
buildPhase = ''
|
||||
mkdir -p src/github.com/jessevdk/go-flags/
|
||||
ln -s ${go-flags}/* src/github.com/jessevdk/go-flags
|
||||
|
||||
mkdir -p src/github.com/mattn/go-runewidth/
|
||||
ln -s ${go-runewidth}/* src/github.com/mattn/go-runewidth
|
||||
|
||||
mkdir -p src/github.com/nsf/termbox-go/
|
||||
ln -s ${termbox-go}/* src/github.com/nsf/termbox-go
|
||||
|
||||
mkdir -p src/github.com/peco/peco
|
||||
ln -s ${src}/* src/github.com/peco/peco
|
||||
|
||||
export GOPATH=$PWD
|
||||
go build -v -o peco src/github.com/peco/peco/cmd/peco/peco.go
|
||||
''; # */
|
||||
|
||||
installPhase = ''
|
||||
ensureDir $out/bin
|
||||
cp peco $out/bin
|
||||
'';
|
||||
|
||||
meta = with stdenv.lib; {
|
||||
description = "Simplistic interactive filtering tool";
|
||||
homepage = https://github.com/peco/peco;
|
||||
license = licenses.mit;
|
||||
# peco should work on Windows or other POSIX platforms, but the go package
|
||||
# declares only linux and darwin.
|
||||
platforms = platforms.linux ++ platforms.darwin;
|
||||
};
|
||||
}
|
|
@ -578,6 +578,8 @@ let
|
|||
|
||||
bfr = callPackage ../tools/misc/bfr { };
|
||||
|
||||
bindfs = callPackage ../tools/filesystems/bindfs { };
|
||||
|
||||
bitbucket-cli = pythonPackages.bitbucket-cli;
|
||||
|
||||
blockdiag = pythonPackages.blockdiag;
|
||||
|
@ -1829,6 +1831,8 @@ let
|
|||
|
||||
pdnsd = callPackage ../tools/networking/pdnsd { };
|
||||
|
||||
peco = callPackage ../tools/text/peco { };
|
||||
|
||||
pg_top = callPackage ../tools/misc/pg_top { };
|
||||
|
||||
pdsh = callPackage ../tools/networking/pdsh {
|
||||
|
@ -2362,6 +2366,8 @@ let
|
|||
|
||||
xarchiver = callPackage ../tools/archivers/xarchiver { };
|
||||
|
||||
xcruiser = callPackage ../applications/misc/xcruiser { };
|
||||
|
||||
unarj = callPackage ../tools/archivers/unarj { };
|
||||
|
||||
unshield = callPackage ../tools/archivers/unshield { };
|
||||
|
@ -3719,6 +3725,8 @@ let
|
|||
|
||||
guile-xcb = callPackage ../development/guile-modules/guile-xcb { };
|
||||
|
||||
pharo-vm = callPackage_i686 ../development/pharo/vm { };
|
||||
|
||||
srecord = callPackage ../development/tools/misc/srecord { };
|
||||
|
||||
windowssdk = (
|
||||
|
@ -3988,7 +3996,9 @@ let
|
|||
|
||||
inotifyTools = callPackage ../development/tools/misc/inotify-tools { };
|
||||
|
||||
intelgen4asm = callPackage ../development/misc/intelgen4asm { };
|
||||
intel-gpu-tools = callPackage ../development/tools/misc/intel-gpu-tools {
|
||||
inherit (xorg) libpciaccess dri2proto libX11 libXext libXv libXrandr;
|
||||
};
|
||||
|
||||
ired = callPackage ../development/tools/analysis/radare/ired.nix { };
|
||||
|
||||
|
@ -5203,6 +5213,8 @@ let
|
|||
|
||||
libgdiplus = callPackage ../development/libraries/libgdiplus { };
|
||||
|
||||
libgksu = callPackage ../development/libraries/libgksu { };
|
||||
|
||||
libgpgerror = callPackage ../development/libraries/libgpg-error { };
|
||||
|
||||
libgphoto2 = callPackage ../development/libraries/libgphoto2 { };
|
||||
|
@ -7015,6 +7027,8 @@ let
|
|||
|
||||
axis2 = callPackage ../servers/http/tomcat/axis2 { };
|
||||
|
||||
unifi = callPackage ../servers/unifi { };
|
||||
|
||||
virtuoso6 = callPackage ../servers/sql/virtuoso/6.x.nix { };
|
||||
|
||||
virtuoso7 = callPackage ../servers/sql/virtuoso/7.x.nix { };
|
||||
|
@ -8611,6 +8625,8 @@ let
|
|||
|
||||
geany = callPackage ../applications/editors/geany { };
|
||||
|
||||
gksu = callPackage ../applications/misc/gksu { };
|
||||
|
||||
gnuradio = callPackage ../applications/misc/gnuradio {
|
||||
inherit (pythonPackages) lxml numpy scipy matplotlib pyopengl;
|
||||
fftw = fftwFloat;
|
||||
|
@ -8727,6 +8743,8 @@ let
|
|||
|
||||
fuze = callPackage ../applications/networking/instant-messengers/fuze {};
|
||||
|
||||
gcolor2 = callPackage ../applications/graphics/gcolor2 { };
|
||||
|
||||
get_iplayer = callPackage ../applications/misc/get_iplayer {};
|
||||
|
||||
gimp_2_8 = callPackage ../applications/graphics/gimp/2.8.nix {
|
||||
|
@ -10165,6 +10183,8 @@ let
|
|||
libsigcxx = libsigcxx12;
|
||||
};
|
||||
|
||||
astromenace = callPackage ../games/astromenace { };
|
||||
|
||||
atanks = callPackage ../games/atanks {};
|
||||
|
||||
ballAndPaddle = callPackage ../games/ball-and-paddle {
|
||||
|
|
|
@ -200,8 +200,8 @@ self : let callPackage = x : y : modifyPrio (newScope self x y); in
|
|||
attoparsec_0_10_4_0 = callPackage ../development/libraries/haskell/attoparsec/0.10.4.0.nix {};
|
||||
attoparsec_0_11_3_1 = callPackage ../development/libraries/haskell/attoparsec/0.11.3.1.nix {};
|
||||
attoparsec_0_11_3_4 = callPackage ../development/libraries/haskell/attoparsec/0.11.3.4.nix {};
|
||||
attoparsec_0_12_1_0 = callPackage ../development/libraries/haskell/attoparsec/0.12.1.0.nix {};
|
||||
attoparsec = self.attoparsec_0_12_1_0;
|
||||
attoparsec_0_12_1_1 = callPackage ../development/libraries/haskell/attoparsec/0.12.1.1.nix {};
|
||||
attoparsec = self.attoparsec_0_12_1_1;
|
||||
|
||||
attoparsecBinary = callPackage ../development/libraries/haskell/attoparsec-binary {};
|
||||
|
||||
|
@ -2775,17 +2775,8 @@ self : let callPackage = x : y : modifyPrio (newScope self x y); in
|
|||
|
||||
# Compilers.
|
||||
|
||||
Agda_2_3_2_2 = callPackage ../development/compilers/agda/2.3.2.2.nix {};
|
||||
Agda_2_4_0_2 = callPackage ../development/compilers/agda/2.4.0.2.nix {};
|
||||
Agda = self.Agda_2_4_0_2;
|
||||
|
||||
AgdaStdlib_0_7 = callPackage ../development/compilers/agda/stdlib-0.7.nix {
|
||||
Agda = self.Agda_2_3_2_2;
|
||||
};
|
||||
AgdaStdlib_0_8 = callPackage ../development/compilers/agda/stdlib-0.8.nix {
|
||||
Agda = self.Agda_2_4_0_2;
|
||||
};
|
||||
AgdaStdlib = self.AgdaStdlib_0_8;
|
||||
Agda = callPackage ../development/compilers/agda {};
|
||||
AgdaStdlib = callPackage ../development/compilers/agda/stdlib.nix {};
|
||||
|
||||
uhc = callPackage ../development/compilers/uhc {};
|
||||
|
||||
|
|
|
@ -895,11 +895,11 @@ rec {
|
|||
|
||||
boto = buildPythonPackage rec {
|
||||
name = "boto-${version}";
|
||||
version = "2.9.9";
|
||||
version = "2.32.0";
|
||||
|
||||
src = fetchurl {
|
||||
url = "https://github.com/boto/boto/archive/${version}.tar.gz";
|
||||
sha256 = "18wqpzd1zf8nivcn2rl1wnladf7hhyy5p75b5l6kafynm4l9j6jq";
|
||||
sha256 = "0bl5y7m0m84rz4q7hx783kxpj1n9wcm7dhv54bnx8cnanyd13cxn";
|
||||
};
|
||||
|
||||
# The tests seem to require AWS credentials.
|
||||
|
@ -4256,11 +4256,11 @@ rec {
|
|||
|
||||
|
||||
meld3 = buildPythonPackage rec {
|
||||
name = "meld3-0.6.10";
|
||||
name = "meld3-1.0.0";
|
||||
|
||||
src = fetchurl {
|
||||
url = https://pypi.python.org/packages/source/m/meld3/meld3-0.6.10.tar.gz;
|
||||
md5 = "42e58624e9d427be7659d7a28e2b0b6f";
|
||||
url = https://pypi.python.org/packages/source/m/meld3/meld3-1.0.0.tar.gz;
|
||||
md5 = "ca270506dd4ecb20ae26fa72fbd9b0be";
|
||||
};
|
||||
|
||||
doCheck = false;
|
||||
|
@ -4268,7 +4268,7 @@ rec {
|
|||
meta = {
|
||||
description = "An HTML/XML templating engine used by supervisor";
|
||||
homepage = https://github.com/supervisor/meld3;
|
||||
license = "ZPL";
|
||||
license = "free-non-copyleft";
|
||||
};
|
||||
};
|
||||
|
||||
|
@ -7184,6 +7184,8 @@ rec {
|
|||
|
||||
buildInputs = [ pbr pip ];
|
||||
|
||||
propagatedBuildInputs = [ setuptools ];
|
||||
|
||||
meta = {
|
||||
description = "Manage dynamic plugins for Python applications";
|
||||
homepage = "https://pypi.python.org/pypi/stevedore";
|
||||
|
|
Loading…
Reference in a new issue