Merge remote-tracking branch 'origin/master' into hardened-stdenv

Fixes #17801 and #17802.
This commit is contained in:
Franz Pletz 2016-08-17 19:42:58 +02:00
commit b4cc9bd63a
97 changed files with 1201 additions and 407 deletions

View File

@ -48,7 +48,7 @@ while test -n "$1"; do
echo "=== Fetching Nox from binary cache" echo "=== Fetching Nox from binary cache"
# build nox silently so it's not in the log # build nox silently so it's not in the log
nix-build "<nixpkgs>" -A nox nix-build "<nixpkgs>" -A nox -A stdenv
;; ;;
pr) pr)

View File

@ -67,40 +67,24 @@ pkgs.vmTools.runInLinuxVM (
mkdir /mnt mkdir /mnt
mount $rootDisk /mnt mount $rootDisk /mnt
# The initrd expects these directories to exist.
mkdir /mnt/dev /mnt/proc /mnt/sys
mount -o bind /proc /mnt/proc
mount -o bind /dev /mnt/dev
mount -o bind /sys /mnt/sys
# Copy all paths in the closure to the filesystem.
storePaths=$(perl ${pkgs.pathsFromGraph} /tmp/xchg/closure)
mkdir -p /mnt/nix/store
echo "copying everything (will take a while)..."
set -f
cp -prd $storePaths /mnt/nix/store/
# Register the paths in the Nix database. # Register the paths in the Nix database.
printRegistration=1 perl ${pkgs.pathsFromGraph} /tmp/xchg/closure | \ printRegistration=1 perl ${pkgs.pathsFromGraph} /tmp/xchg/closure | \
chroot /mnt ${config.nix.package.out}/bin/nix-store --load-db --option build-users-group "" ${config.nix.package.out}/bin/nix-store --load-db --option build-users-group ""
# Add missing size/hash fields to the database. FIXME: # Add missing size/hash fields to the database. FIXME:
# exportReferencesGraph should provide these directly. # exportReferencesGraph should provide these directly.
chroot /mnt ${config.nix.package.out}/bin/nix-store --verify --check-contents ${config.nix.package.out}/bin/nix-store --verify --check-contents --option build-users-group ""
# Create the system profile to allow nixos-rebuild to work. # In case the bootloader tries to write to /dev/sda…
chroot /mnt ${config.nix.package.out}/bin/nix-env --option build-users-group "" \ ln -s vda /dev/xvda
-p /nix/var/nix/profiles/system --set ${config.system.build.toplevel} ln -s vda /dev/sda
# `nixos-rebuild' requires an /etc/NIXOS. # Install the closure onto the image
mkdir -p /mnt/etc USER=root ${config.system.build.nixos-install}/bin/nixos-install \
touch /mnt/etc/NIXOS --closure ${config.system.build.toplevel} \
--no-channel-copy \
# `switch-to-configuration' requires a /bin/sh --no-root-passwd \
mkdir -p /mnt/bin ${optionalString (!installBootLoader) "--no-bootloader"}
ln -s ${config.system.build.binsh}/bin/sh /mnt/bin/sh
# Install a configuration.nix. # Install a configuration.nix.
mkdir -p /mnt/etc/nixos mkdir -p /mnt/etc/nixos
@ -108,12 +92,9 @@ pkgs.vmTools.runInLinuxVM (
cp ${configFile} /mnt/etc/nixos/configuration.nix cp ${configFile} /mnt/etc/nixos/configuration.nix
''} ''}
# Generate the GRUB menu. # Remove /etc/machine-id so that each machine cloning this image will get its own id
ln -s vda /dev/xvda rm -f /mnt/etc/machine-id
ln -s vda /dev/sda
${optionalString installBootLoader "chroot /mnt ${config.system.build.toplevel}/bin/switch-to-configuration boot"}
umount /mnt/proc /mnt/dev /mnt/sys
umount /mnt umount /mnt
# Do a fsck to make sure resize2fs works. # Do a fsck to make sure resize2fs works.

View File

@ -24,7 +24,7 @@ fi
# Parse the command line for the -I flag # Parse the command line for the -I flag
extraBuildFlags=() extraBuildFlags=()
chrootCommand=(/run/current-system/sw/bin/bash) chrootCommand=(/run/current-system/sw/bin/bash)
bootLoader=1 buildUsersGroup="nixbld"
while [ "$#" -gt 0 ]; do while [ "$#" -gt 0 ]; do
i="$1"; shift 1 i="$1"; shift 1
@ -43,6 +43,7 @@ while [ "$#" -gt 0 ]; do
;; ;;
--closure) --closure)
closure="$1"; shift 1 closure="$1"; shift 1
buildUsersGroup=""
;; ;;
--no-channel-copy) --no-channel-copy)
noChannelCopy=1 noChannelCopy=1
@ -51,7 +52,7 @@ while [ "$#" -gt 0 ]; do
noRootPasswd=1 noRootPasswd=1
;; ;;
--no-bootloader) --no-bootloader)
bootLoader=0 noBootLoader=1
;; ;;
--show-trace) --show-trace)
extraBuildFlags+=("$i") extraBuildFlags+=("$i")
@ -101,8 +102,8 @@ mount -t tmpfs -o "mode=0755" none $mountPoint/run
mount -t tmpfs -o "mode=0755" none $mountPoint/var/setuid-wrappers mount -t tmpfs -o "mode=0755" none $mountPoint/var/setuid-wrappers
rm -rf $mountPoint/var/run rm -rf $mountPoint/var/run
ln -s /run $mountPoint/var/run ln -s /run $mountPoint/var/run
rm -f $mountPoint/etc/{resolv.conf,hosts} for f in /etc/resolv.conf /etc/hosts; do rm -f $mountPoint/$f; [ -f "$f" ] && cp -Lf $f $mountPoint/etc/; done
cp -Lf /etc/resolv.conf /etc/hosts $mountPoint/etc/ for f in /etc/passwd /etc/group; do touch $mountPoint/$f; [ -f "$f" ] && mount --rbind -o ro $f $mountPoint/$f; done
cp -Lf "@cacert@" "$mountPoint/tmp/ca-cert.crt" cp -Lf "@cacert@" "$mountPoint/tmp/ca-cert.crt"
export SSL_CERT_FILE=/tmp/ca-cert.crt export SSL_CERT_FILE=/tmp/ca-cert.crt
@ -142,7 +143,7 @@ mkdir -m 0755 -p \
$mountPoint/nix/var/log/nix/drvs $mountPoint/nix/var/log/nix/drvs
mkdir -m 1775 -p $mountPoint/nix/store mkdir -m 1775 -p $mountPoint/nix/store
chown root:nixbld $mountPoint/nix/store chown @root_uid@:@nixbld_gid@ $mountPoint/nix/store
# There is no daemon in the chroot. # There is no daemon in the chroot.
@ -155,18 +156,13 @@ export LC_ALL=
export LC_TIME= export LC_TIME=
# Create a temporary Nix config file that causes the nixbld users to # Builds will use users that are members of this group
# be used. extraBuildFlags+=(--option "build-users-group" "$buildUsersGroup")
echo "build-users-group = nixbld" > $mountPoint/tmp/nix.conf # FIXME: remove in Nix 1.8
binary_caches=$(@perl@/bin/perl -I @nix@/lib/perl5/site_perl/*/* -e 'use Nix::Config; Nix::Config::readConfig; print $Nix::Config::config{"binary-caches"};')
if test -n "$binary_caches"; then
echo "binary-caches = $binary_caches" >> $mountPoint/tmp/nix.conf
fi
export NIX_CONF_DIR=/tmp
touch $mountPoint/etc/passwd $mountPoint/etc/group
mount --bind -o ro /etc/passwd $mountPoint/etc/passwd # Inherit binary caches from the host
mount --bind -o ro /etc/group $mountPoint/etc/group binary_caches="$(@perl@/bin/perl -I @nix@/lib/perl5/site_perl/*/* -e 'use Nix::Config; Nix::Config::readConfig; print $Nix::Config::config{"binary-caches"};')"
extraBuildFlags+=(--option "binary-caches" "$binary_caches")
# Copy Nix to the Nix store on the target device, unless it's already there. # Copy Nix to the Nix store on the target device, unless it's already there.
@ -247,7 +243,7 @@ ln -sfn /nix/var/nix/profiles/per-user/root/channels $mountPoint/root/.nix-defex
# Get rid of the /etc bind mounts. # Get rid of the /etc bind mounts.
umount $mountPoint/etc/passwd $mountPoint/etc/group for f in /etc/passwd /etc/group; do [ -f "$f" ] && umount $mountPoint/$f; done
# Grub needs an mtab. # Grub needs an mtab.
@ -263,16 +259,17 @@ touch $mountPoint/etc/NIXOS
# a menu default pointing at the kernel/initrd/etc of the new # a menu default pointing at the kernel/initrd/etc of the new
# configuration. # configuration.
echo "finalising the installation..." echo "finalising the installation..."
NIXOS_INSTALL_GRUB="$bootLoader" chroot $mountPoint \ if [ -z "$noBootLoader" ]; then
/nix/var/nix/profiles/system/bin/switch-to-configuration boot NIXOS_INSTALL_GRUB=1 chroot $mountPoint \
/nix/var/nix/profiles/system/bin/switch-to-configuration boot
fi
# Run the activation script. # Run the activation script.
chroot $mountPoint /nix/var/nix/profiles/system/activate chroot $mountPoint /nix/var/nix/profiles/system/activate
# Ask the user to set a root password. # Ask the user to set a root password.
if [ -z "$noRootPasswd" ] && [ "$(chroot $mountPoint /run/current-system/sw/bin/sh -l -c "nix-instantiate --eval '<nixpkgs/nixos>' -A config.users.mutableUsers")" = true ] && [ -t 0 ] ; then if [ -z "$noRootPasswd" ] && [ -x $mountPoint/var/setuid-wrappers/passwd ] && [ -t 0 ]; then
echo "setting root password..." echo "setting root password..."
chroot $mountPoint /var/setuid-wrappers/passwd chroot $mountPoint /var/setuid-wrappers/passwd
fi fi

View File

@ -24,6 +24,8 @@ let
inherit (pkgs) perl pathsFromGraph rsync; inherit (pkgs) perl pathsFromGraph rsync;
nix = config.nix.package.out; nix = config.nix.package.out;
cacert = "${pkgs.cacert}/etc/ssl/certs/ca-bundle.crt"; cacert = "${pkgs.cacert}/etc/ssl/certs/ca-bundle.crt";
root_uid = config.ids.uids.root;
nixbld_gid = config.ids.gids.nixbld;
nixClosure = pkgs.runCommand "closure" nixClosure = pkgs.runCommand "closure"
{ exportReferencesGraph = ["refs" config.nix.package.out]; } { exportReferencesGraph = ["refs" config.nix.package.out]; }

View File

@ -274,6 +274,7 @@
gocd-agent = 251; gocd-agent = 251;
gocd-server = 252; gocd-server = 252;
terraria = 253; terraria = 253;
mattermost = 254;
# When adding a uid, make sure it doesn't match an existing gid. And don't use uids above 399! # When adding a uid, make sure it doesn't match an existing gid. And don't use uids above 399!
@ -518,6 +519,7 @@
gocd-agent = 251; gocd-agent = 251;
gocd-server = 252; gocd-server = 252;
terraria = 253; terraria = 253;
mattermost = 254;
# When adding a gid, make sure it doesn't match an existing # When adding a gid, make sure it doesn't match an existing
# uid. Users and groups with the same name should have equal # uid. Users and groups with the same name should have equal

View File

@ -462,6 +462,7 @@
./services/ttys/agetty.nix ./services/ttys/agetty.nix
./services/ttys/gpm.nix ./services/ttys/gpm.nix
./services/ttys/kmscon.nix ./services/ttys/kmscon.nix
./services/web-apps/mattermost.nix
./services/web-apps/pump.io.nix ./services/web-apps/pump.io.nix
./services/web-apps/tt-rss.nix ./services/web-apps/tt-rss.nix
./services/web-servers/apache-httpd/default.nix ./services/web-servers/apache-httpd/default.nix

View File

@ -41,6 +41,11 @@ let
namespace: resque:gitlab namespace: resque:gitlab
''; '';
secretsYml = ''
production:
db_key_base: ${cfg.secrets.db_key_base}
'';
gitlabConfig = { gitlabConfig = {
# These are the default settings from config/gitlab.example.yml # These are the default settings from config/gitlab.example.yml
production = flip recursiveUpdate cfg.extraConfig { production = flip recursiveUpdate cfg.extraConfig {
@ -313,6 +318,19 @@ in {
}; };
}; };
secrets.db_key_base = mkOption {
type = types.str;
example = "";
description = ''
The db_key_base secrets is used to encrypt variables in the DB. If
you change or lose this key you will be unable to access variables
stored in database.
Make sure the secret is at least 30 characters and all random,
no regular words or you'll be exposed to dictionary attacks.
'';
};
extraConfig = mkOption { extraConfig = mkOption {
type = types.attrs; type = types.attrs;
default = {}; default = {};
@ -467,6 +485,7 @@ in {
# JSON is a subset of YAML # JSON is a subset of YAML
ln -fs ${pkgs.writeText "gitlab.yml" (builtins.toJSON gitlabConfig)} ${cfg.statePath}/config/gitlab.yml ln -fs ${pkgs.writeText "gitlab.yml" (builtins.toJSON gitlabConfig)} ${cfg.statePath}/config/gitlab.yml
ln -fs ${pkgs.writeText "database.yml" databaseYml} ${cfg.statePath}/config/database.yml ln -fs ${pkgs.writeText "database.yml" databaseYml} ${cfg.statePath}/config/database.yml
ln -fs ${pkgs.writeText "secrets.yml" secretsYml} ${cfg.statePath}/config/secrets.yml
ln -fs ${pkgs.writeText "unicorn.rb" unicornConfig} ${cfg.statePath}/config/unicorn.rb ln -fs ${pkgs.writeText "unicorn.rb" unicornConfig} ${cfg.statePath}/config/unicorn.rb
chown -R ${cfg.user}:${cfg.group} ${cfg.statePath}/ chown -R ${cfg.user}:${cfg.group} ${cfg.statePath}/

View File

@ -62,6 +62,7 @@ services.gitlab = {
address = "localhost"; address = "localhost";
port = 25; port = 25;
}; };
secrets.db_key_base = "ei3eeP1ohsh0uu3ad4YeeMeeheengah3AiZee2ohl4Ooj5mie4Ohl0vishoghaes";
extraConfig = { extraConfig = {
gitlab = { gitlab = {
email_from = "gitlab-no-reply@example.com"; email_from = "gitlab-no-reply@example.com";
@ -74,6 +75,12 @@ services.gitlab = {
</programlisting> </programlisting>
</para> </para>
<para>If you're setting up a new Gitlab instance, generate a new
<literal>db_key_base</literal> secret to encrypt sensible data in the
database. If you're restoring an existing Gitlab instance, you must
specify the <literal>db_key_base</literal> secret from
<literal>config/secrets.yml</literal> in your Gitlab state folder.</para>
<para>Refer to <xref linkend="ch-options" /> for all available configuration <para>Refer to <xref linkend="ch-options" /> for all available configuration
options for the <literal>services.gitlab</literal> module.</para> options for the <literal>services.gitlab</literal> module.</para>

View File

@ -46,6 +46,18 @@ in
''; '';
}; };
services.unifi.openPorts = mkOption {
type = types.bool;
default = true;
description = ''
Whether or not to open the minimum required ports on the firewall.
This is necessary to allow firmware upgrades and device discovery to
work. For remote login, you should additionally open (or forward) port
8443.
'';
};
}; };
config = mkIf cfg.enable { config = mkIf cfg.enable {
@ -56,6 +68,19 @@ in
home = "${stateDir}"; home = "${stateDir}";
}; };
networking.firewall = mkIf cfg.openPorts {
# https://help.ubnt.com/hc/en-us/articles/204910084-UniFi-Change-Default-Ports-for-Controller-and-UAPs
allowedTCPPorts = [
8080 # Port for UAP to inform controller.
8880 # Port for HTTP portal redirect, if guest portal is enabled.
8843 # Port for HTTPS portal redirect, ditto.
];
allowedUDPPorts = [
3478 # UDP port used for STUN.
10001 # UDP port used for device discovery.
];
};
# We must create the binary directories as bind mounts instead of symlinks # We must create the binary directories as bind mounts instead of symlinks
# This is because the controller resolves all symlinks to absolute paths # This is because the controller resolves all symlinks to absolute paths
# to be used as the working directory. # to be used as the working directory.
@ -79,9 +104,9 @@ in
environment.LD_LIBRARY_PATH = with pkgs.stdenv; "${cc.cc.lib}/lib"; environment.LD_LIBRARY_PATH = with pkgs.stdenv; "${cc.cc.lib}/lib";
preStart = '' preStart = ''
# Ensure privacy of state # Ensure privacy of state and data.
chown unifi "${stateDir}" chown unifi "${stateDir}" "${stateDir}/data"
chmod 0700 "${stateDir}" chmod 0700 "${stateDir}" "${stateDir}/data"
# Create the volatile webapps # Create the volatile webapps
rm -rf "${stateDir}/webapps" rm -rf "${stateDir}/webapps"

View File

@ -0,0 +1,228 @@
{ config, pkgs, lib, ... }:
with lib;
let
cfg = config.services.mattermost;
defaultConfig = builtins.fromJSON (readFile "${pkgs.mattermost}/config/config.json");
mattermostConf = foldl recursiveUpdate defaultConfig
[ { ServiceSettings.SiteURL = cfg.siteUrl;
ServiceSettings.ListenAddress = cfg.listenAddress;
TeamSettings.SiteName = cfg.siteName;
SqlSettings.DriverName = "postgres";
SqlSettings.DataSource = "postgres://${cfg.localDatabaseUser}:${cfg.localDatabasePassword}@localhost:5432/${cfg.localDatabaseName}?sslmode=disable&connect_timeout=10";
}
cfg.extraConfig
];
mattermostConfJSON = pkgs.writeText "mattermost-config-raw.json" (builtins.toJSON mattermostConf);
in
{
options = {
services.mattermost = {
enable = mkEnableOption "Mattermost chat platform";
statePath = mkOption {
type = types.str;
default = "/var/lib/mattermost";
description = "Mattermost working directory";
};
siteUrl = mkOption {
type = types.str;
example = "https://chat.example.com";
description = ''
URL this Mattermost instance is reachable under, without trailing slash."
'';
};
siteName = mkOption {
type = types.str;
default = "Mattermost";
description = "Name of this Mattermost site.";
};
listenAddress = mkOption {
type = types.str;
default = ":8065";
example = "[::1]:8065";
description = ''
Address and port this Mattermost instance listens to.
'';
};
mutableConfig = mkOption {
type = types.bool;
default = false;
description = ''
Whether the Mattermost config.json is writeable by Mattermost.
Most of the settings can be edited in the system console of
Mattermost if this option is enabled. A template config using
the options specified in services.mattermost will be generated
but won't be overwritten on changes or rebuilds.
If this option is disabled, changes in the system console won't
be possible (default). If an config.json is present, it will be
overwritten!
'';
};
extraConfig = mkOption {
type = types.attrs;
default = { };
description = ''
Addtional configuration options as Nix attribute set in config.json schema.
'';
};
localDatabaseCreate = mkOption {
type = types.bool;
default = true;
description = ''
Create a local PostgreSQL database for Mattermost automatically.
'';
};
localDatabaseName = mkOption {
type = types.str;
default = "mattermost";
description = ''
Local Mattermost database name.
'';
};
localDatabaseUser = mkOption {
type = types.str;
default = "mattermost";
description = ''
Local Mattermost database username.
'';
};
localDatabasePassword = mkOption {
type = types.str;
default = "mmpgsecret";
description = ''
Password for local Mattermost database user.
'';
};
user = mkOption {
type = types.str;
default = "mattermost";
description = ''
User which runs the Mattermost service.
'';
};
group = mkOption {
type = types.str;
default = "mattermost";
description = ''
Group which runs the Mattermost service.
'';
};
matterircd = {
enable = mkEnableOption "Mattermost IRC bridge";
parameters = mkOption {
type = types.listOf types.str;
default = [ ];
example = [ "-mmserver chat.example.com" "-bind [::]:6667" ];
description = ''
Set commandline parameters to pass to matterircd. See
https://github.com/42wim/matterircd#usage for more information.
'';
};
};
};
};
config = mkMerge [
(mkIf cfg.enable {
users.extraUsers = optionalAttrs (cfg.user == "mattermost") (singleton {
name = "mattermost";
group = cfg.group;
uid = config.ids.uids.mattermost;
home = cfg.statePath;
});
users.extraGroups = optionalAttrs (cfg.group == "mattermost") (singleton {
name = "mattermost";
gid = config.ids.gids.mattermost;
});
services.postgresql.enable = cfg.localDatabaseCreate;
# The systemd service will fail to execute the preStart hook
# if the WorkingDirectory does not exist
system.activationScripts.mattermost = ''
mkdir -p ${cfg.statePath}
'';
systemd.services.mattermost = {
description = "Mattermost chat platform service";
wantedBy = [ "multi-user.target" ];
after = [ "network.target" "postgresql.service" ];
preStart = ''
mkdir -p ${cfg.statePath}/{data,config,logs}
ln -sf ${pkgs.mattermost}/{bin,fonts,i18n,templates,webapp} ${cfg.statePath}
'' + lib.optionalString (!cfg.mutableConfig) ''
ln -sf ${mattermostConfJSON} ${cfg.statePath}/config/config.json
'' + lib.optionalString cfg.mutableConfig ''
if ! test -e "${cfg.statePath}/config/.initial-created"; then
rm -f ${cfg.statePath}/config/config.json
cp ${mattermostConfJSON} ${cfg.statePath}/config/config.json
touch ${cfg.statePath}/config/.initial-created
fi
'' + lib.optionalString cfg.localDatabaseCreate ''
if ! test -e "${cfg.statePath}/.db-created"; then
${config.services.postgresql.package}/bin/psql postgres -c \
"CREATE ROLE ${cfg.localDatabaseUser} WITH LOGIN NOCREATEDB NOCREATEROLE NOCREATEUSER ENCRYPTED PASSWORD '${cfg.localDatabasePassword}'"
${config.services.postgresql.package}/bin/createdb \
--owner ${cfg.localDatabaseUser} ${cfg.localDatabaseName}
touch ${cfg.statePath}/.db-created
fi
'' + ''
chown ${cfg.user}:${cfg.group} -R ${cfg.statePath}
chmod u+rw,g+r,o-rwx -R ${cfg.statePath}
'';
serviceConfig = {
PermissionsStartOnly = true;
User = cfg.user;
Group = cfg.group;
ExecStart = "${pkgs.mattermost}/bin/mattermost-platform";
WorkingDirectory = "${cfg.statePath}";
PrivateTmp = true;
Restart = "always";
RestartSec = "10";
LimitNOFILE = "49152";
};
};
})
(mkIf cfg.matterircd.enable {
systemd.services.matterircd = {
description = "Mattermost IRC bridge service";
wantedBy = [ "multi-user.target" ];
serviceConfig = {
User = "nobody";
Group = "nogroup";
ExecStart = "${pkgs.matterircd.bin}/bin/matterircd ${concatStringsSep " " cfg.matterircd.parameters}";
WorkingDirectory = "/tmp";
PrivateTmp = true;
Restart = "always";
RestartSec = "5";
};
};
})
];
}

View File

@ -108,7 +108,12 @@ in {
RestartSec = 3; RestartSec = 3;
Restart = "always"; Restart = "always";
}; };
environment = { DISPLAY = ":${toString config.services.xserver.display}"; }; environment = {
DISPLAY = ":${toString (
let display = config.services.xserver.display;
in if display != null then display else 0
)}";
};
}; };
}; };

View File

@ -198,7 +198,9 @@ let
preLVMCommands preDeviceCommands postDeviceCommands postMountCommands preFailCommands kernelModules; preLVMCommands preDeviceCommands postDeviceCommands postMountCommands preFailCommands kernelModules;
resumeDevices = map (sd: if sd ? device then sd.device else "/dev/disk/by-label/${sd.label}") resumeDevices = map (sd: if sd ? device then sd.device else "/dev/disk/by-label/${sd.label}")
(filter (sd: (sd ? label || hasPrefix "/dev/" sd.device) && !sd.randomEncryption) config.swapDevices); (filter (sd: (sd ? label || hasPrefix "/dev/" sd.device) && !sd.randomEncryption
# Don't include zram devices
&& !(hasPrefix "/dev/zram" sd.device)) config.swapDevices);
fsInfo = fsInfo =
let f = fs: [ fs.mountPoint (if fs.device != null then fs.device else "/dev/disk/by-label/${fs.label}") fs.fsType (builtins.concatStringsSep "," fs.options) ]; let f = fs: [ fs.mountPoint (if fs.device != null then fs.device else "/dev/disk/by-label/${fs.label}") fs.fsType (builtins.concatStringsSep "," fs.options) ];

View File

@ -111,11 +111,20 @@ in rec {
]; ];
}).config.system.build; }).config.system.build;
in in
pkgs.symlinkJoin {name="netboot"; paths=[ pkgs.symlinkJoin {
build.netbootRamdisk name="netboot";
build.kernel paths=[
build.netbootIpxeScript build.netbootRamdisk
];}; build.kernel
build.netbootIpxeScript
];
postBuild = ''
mkdir -p $out/nix-support
echo "file bzImage $out/bzImage" >> $out/nix-support/hydra-build-products
echo "file initrd $out/initrd" >> $out/nix-support/hydra-build-products
echo "file ipxe $out/netboot.ipxe" >> $out/nix-support/hydra-build-products
'';
};
iso_minimal = forAllSystems (system: makeIso { iso_minimal = forAllSystems (system: makeIso {
module = ./modules/installer/cd-dvd/installation-cd-minimal.nix; module = ./modules/installer/cd-dvd/installation-cd-minimal.nix;

View File

@ -1,7 +1,9 @@
{ stdenv, fetchurl, makeWrapper, pkgconfig, alsaLib, dbus, libjack2 { stdenv, fetchurl, makeWrapper, pkgconfig, alsaLib, dbus, libjack2
, python, pythonDBus }: , pythonPackages}:
stdenv.mkDerivation rec { let
inherit (pythonPackages) python dbus-python;
in stdenv.mkDerivation rec {
name = "a2jmidid-${version}"; name = "a2jmidid-${version}";
version = "8"; version = "8";
@ -10,14 +12,14 @@ stdenv.mkDerivation rec {
sha256 = "0pzm0qk5ilqhwz74pydg1jwrds27vm47185dakdrxidb5bv3b5ia"; sha256 = "0pzm0qk5ilqhwz74pydg1jwrds27vm47185dakdrxidb5bv3b5ia";
}; };
buildInputs = [ makeWrapper pkgconfig alsaLib dbus libjack2 python pythonDBus ]; buildInputs = [ makeWrapper pkgconfig alsaLib dbus libjack2 python dbus-python ];
configurePhase = "python waf configure --prefix=$out"; configurePhase = "${python.interpreter} waf configure --prefix=$out";
buildPhase = "python waf"; buildPhase = "${python.interpreter} waf";
installPhase = '' installPhase = ''
python waf install ${python.interpreter} waf install
wrapProgram $out/bin/a2j_control --set PYTHONPATH $PYTHONPATH wrapProgram $out/bin/a2j_control --set PYTHONPATH $PYTHONPATH
''; '';

View File

@ -0,0 +1,97 @@
{ stdenv, fetchurl, alsaLib, bzip2, cairo, dpkg, freetype, gdk_pixbuf
, glib, gtk, harfbuzz, jdk, lib, libX11, libXau, libXcursor, libXdmcp
, libXext, libXfixes, libXrender, libbsd, libjack2, libpng, libxcb
, libxkbcommon, libxkbfile, makeWrapper, pixman, xcbutil, xcbutilwm
, xdg_utils, zenity, zlib }:
stdenv.mkDerivation rec {
name = "bitwig-studio-${version}";
version = "1.3.12";
src = fetchurl {
url = "https://downloads.bitwig.com/stable/${version}/bitwig-studio-${version}.deb";
sha256 = "01z6yia4a6lfsf3rqq379l7xzqfbpz27mf1mr8sx9z1a8rzzyhld";
};
nativeBuildInputs = [ dpkg makeWrapper ];
unpackCmd = "mkdir root ; dpkg-deb -x $curSrc root";
dontBuild = true;
dontPatchELF = true;
dontStrip = true;
libPath = lib.makeLibraryPath [
alsaLib bzip2.out cairo freetype gdk_pixbuf glib gtk harfbuzz
libX11 libXau libXcursor libXdmcp libXext libXfixes libXrender
libbsd libjack2 libpng libxcb libxkbfile pixman xcbutil xcbutilwm
zlib
];
binPath = lib.makeBinPath [
xdg_utils zenity
];
installPhase = ''
mkdir -p $out
cp -r opt/bitwig-studio $out/libexec
# Use NixOS versions of these libs instead of the bundled ones.
(
cd $out/libexec/lib/bitwig-studio
rm libbz2.so* libxkbfile.so* libXcursor.so* libXau.so* \
libXdmcp.so* libpng16.so* libxcb*.so* libharfbuzz.so* \
libcairo.so* libfreetype.so*
ln -s ${bzip2.out}/lib/libbz2.so.1.0.6 libbz2.so.1.0
)
# Use our OpenJDK instead of Bitwigs bundled—and commercial!—one.
rm -rf $out/libexec/lib/jre
ln -s ${jdk.home}/jre $out/libexec/lib/jre
# Bitwigs `libx11-windowing-system.so` has several problems:
#
# • has some old version of libxkbcommon linked statically (ಠ_ಠ),
#
# • hardcodes path to `/usr/share/X11/xkb`,
#
# • even if we redirected it with libredirect (after adding
# `eaccess()` to libredirect!), their version of libxkbcommon
# is unable to parse our xkeyboardconfig. Been there, done that.
#
# However, it suffices to override theirs with our libxkbcommon
# in LD_PRELOAD. :-)
find $out -type f -executable \
-not -name '*.so.*' \
-not -name '*.so' \
-not -path '*/resources/*' | \
while IFS= read -r f ; do
patchelf \
--set-interpreter $(cat ${stdenv.cc}/nix-support/dynamic-linker) \
$f && \
wrapProgram $f \
--prefix PATH : "${binPath}" \
--prefix LD_LIBRARY_PATH : "${libPath}" \
--set LD_PRELOAD "${libxkbcommon.out}/lib/libxkbcommon.so" || true
done
mkdir -p $out/bin
ln -s $out/libexec/bitwig-studio $out/bin/bitwig-studio
cp -r usr/share $out/share
'';
meta = with stdenv.lib; {
description = "A digital audio workstation";
longDescription = ''
Bitwig Studio is a multi-platform music-creation system for
production, performance and DJing, with a focus on flexible
editing tools and a super-fast workflow.
'';
homepage = http://www.bitwig.com/;
license = licenses.unfree;
platforms = [ "x86_64-linux" ];
maintainers = with maintainers; [ michalrus ];
};
}

View File

@ -1,11 +1,10 @@
{ stdenv, fetchurl, buildPythonApplication, pythonPackages, mygpoclient, intltool { stdenv, fetchurl, pythonPackages, mygpoclient, intltool
, ipodSupport ? true, libgpod , ipodSupport ? true, libgpod
, gnome3 , gnome3
}: }:
buildPythonApplication rec { pythonPackages.buildPythonApplication rec {
name = "gpodder-${version}"; name = "gpodder-${version}";
namePrefix = "";
version = "3.9.0"; version = "3.9.0";
@ -31,7 +30,7 @@ buildPythonApplication rec {
]; ];
propagatedBuildInputs = with pythonPackages; [ propagatedBuildInputs = with pythonPackages; [
feedparser dbus mygpoclient sqlite3 pygtk eyeD3 feedparser dbus-python mygpoclient sqlite3 pygtk eyeD3
] ++ stdenv.lib.optional ipodSupport libgpod; ] ++ stdenv.lib.optional ipodSupport libgpod;
checkPhase = '' checkPhase = ''

View File

@ -1,4 +1,4 @@
{ stdenv, fetchFromGitHub, pythonPackages, pygobject3, wrapGAppsHook { stdenv, fetchFromGitHub, pythonPackages, wrapGAppsHook
, gst_all_1, glib_networking, gobjectIntrospection , gst_all_1, glib_networking, gobjectIntrospection
}: }:
@ -22,7 +22,7 @@ pythonPackages.buildPythonApplication rec {
]; ];
propagatedBuildInputs = with pythonPackages; [ propagatedBuildInputs = with pythonPackages; [
gst-python pygobject3 pykka tornado requests2 dbus gst-python pygobject3 pykka tornado requests2 dbus-python
]; ];
# There are no tests # There are no tests

View File

@ -1,5 +1,5 @@
{ stdenv, fetchurl, python, buildPythonApplication, mutagen, pygtk, pygobject, intltool { stdenv, fetchurl, pythonPackages, intltool
, pythonDBus, gst_python, withGstPlugins ? false, gst_plugins_base ? null , gst_python, withGstPlugins ? false, gst_plugins_base ? null
, gst_plugins_good ? null, gst_plugins_ugly ? null, gst_plugins_bad ? null }: , gst_plugins_good ? null, gst_plugins_ugly ? null, gst_plugins_bad ? null }:
assert withGstPlugins -> gst_plugins_base != null assert withGstPlugins -> gst_plugins_base != null
@ -7,12 +7,12 @@ assert withGstPlugins -> gst_plugins_base != null
|| gst_plugins_ugly != null || gst_plugins_ugly != null
|| gst_plugins_bad != null; || gst_plugins_bad != null;
let version = "2.6.3"; in let
version = "2.6.3";
buildPythonApplication { inherit (pythonPackages) buildPythonApplication python mutagen pygtk pygobject dbus-python;
in buildPythonApplication {
# call the package quodlibet and just quodlibet # call the package quodlibet and just quodlibet
name = "quodlibet${stdenv.lib.optionalString withGstPlugins "-with-gst-plugins"}-${version}"; name = "quodlibet${stdenv.lib.optionalString withGstPlugins "-with-gst-plugins"}-${version}";
namePrefix = "";
# XXX, tests fail # XXX, tests fail
doCheck = false; doCheck = false;
@ -48,7 +48,7 @@ buildPythonApplication {
]; ];
propagatedBuildInputs = [ propagatedBuildInputs = [
mutagen pygtk pygobject pythonDBus gst_python intltool mutagen pygtk pygobject dbus-python gst_python intltool
]; ];
postInstall = stdenv.lib.optionalString withGstPlugins '' postInstall = stdenv.lib.optionalString withGstPlugins ''

View File

@ -1,14 +1,11 @@
{ pkgs, stdenv, fetchFromGitHub, pkgconfig, intltool, wrapGAppsHook, { lib, stdenv, fetchFromGitHub, pkgconfig, intltool, wrapGAppsHook
python, buildPythonApplication, isPy3k, , python3Packages, gnome3, gtk3, gobjectIntrospection}:
gnome3, gtk3, gobjectIntrospection,
dbus, pygobject3, mpd2 }:
with pkgs.lib; let
inherit (python3Packages) buildPythonApplication python isPy3k dbus-python pygobject3 mpd2;
buildPythonApplication rec { in buildPythonApplication rec {
name = "sonata-${version}"; name = "sonata-${version}";
version = "1.7b1"; version = "1.7b1";
namePrefix = "";
src = fetchFromGitHub { src = fetchFromGitHub {
owner = "multani"; owner = "multani";
@ -38,7 +35,7 @@ buildPythonApplication rec {
# The optional tagpy dependency (for editing metadata) is not yet # The optional tagpy dependency (for editing metadata) is not yet
# included because it's difficult to build. # included because it's difficult to build.
pythonPath = [ dbus pygobject3 mpd2 ]; pythonPath = [ dbus-python pygobject3 mpd2 ];
meta = { meta = {
description = "An elegant client for the Music Player Daemon"; description = "An elegant client for the Music Player Daemon";

View File

@ -0,0 +1,22 @@
{ stdenv, fetchFromGitHub, cmake, llvmPackages, pkgconfig, mpd_clientlib, openssl }:
stdenv.mkDerivation rec {
name = "ympd-${version}";
version = "1.3.0";
src = fetchFromGitHub {
owner = "notandy";
repo = "ympd";
rev = "v${version}";
sha256 = "1nvb19jd556v2h2bi7w4dcl507p3p8xvjkqfzrcsy7ccy3502brq";
};
buildInputs = [ cmake pkgconfig mpd_clientlib openssl ];
meta = {
homepage = "http://www.ympd.org";
description = "Standalone MPD Web GUI written in C, utilizing Websockets and Bootstrap/JS";
maintainers = [ stdenv.lib.maintainers.siddharthist ];
platforms = stdenv.lib.platforms.unix;
};
}

View File

@ -1,10 +1,11 @@
{ stdenv, fetchurl { stdenv, fetchurl
, pkgconfig, gettext, python , pkgconfig, gettext, pythonPackages
, gtk, pygtk, dbus_python , gtk, gdk_pixbuf, upower
, gdk_pixbuf, upower
, makeWrapper }: , makeWrapper }:
stdenv.mkDerivation rec { let
inherit (pythonPackages) dbus-python pygtk python;
in stdenv.mkDerivation rec {
name = "batti-${version}"; name = "batti-${version}";
version = "0.3.8"; version = "0.3.8";
@ -15,7 +16,7 @@ stdenv.mkDerivation rec {
}; };
buildInputs = with stdenv.lib; buildInputs = with stdenv.lib;
[ pkgconfig gettext python gtk pygtk dbus_python gdk_pixbuf upower makeWrapper ]; [ pkgconfig gettext python gtk pygtk dbus-python gdk_pixbuf upower makeWrapper ];
configurePhase = "true"; configurePhase = "true";

View File

@ -5,12 +5,12 @@
}: }:
stdenv.mkDerivation rec { stdenv.mkDerivation rec {
version = "2.58.0"; version = "2.64.0";
name = "calibre-${version}"; name = "calibre-${version}";
src = fetchurl { src = fetchurl {
url = "https://download.calibre-ebook.com/${version}/${name}.tar.xz"; url = "https://download.calibre-ebook.com/${version}/${name}.tar.xz";
sha256 = "0npqvfjqj1vwa7nmnsyd4d30z40brydw275ldf1jankrp6dr9dyd"; sha256 = "0jjbkhd3n7rh5q6cl6yy51hyjbxmgm6xj7i2a1d3h2ggrip1zmr9";
}; };
inherit python; inherit python;

View File

@ -3,35 +3,25 @@ Description: do not build unrar extension as we strip unrar from the tarball
Forwarded: not-needed Forwarded: not-needed
Last-Update: 2013-04-04 Last-Update: 2013-04-04
Index: calibre/setup/extensions.py Index: calibre/setup/extensions.json
=================================================================== ===================================================================
--- calibre.orig/setup/extensions.py 2014-02-02 10:42:14.510954007 +0100 --- calibre.orig/setup/extensions.json
+++ calibre/setup/extensions.py 2014-02-02 10:42:14.502954007 +0100 +++ calibre/setup/extensions.json
@@ -209,24 +209,6 @@ @@ -211,14 +211,5 @@
sip_files=['calibre/ebooks/pdf/render/qt_hack.sip'] "sources": "calibre/devices/mtp/unix/devices.c calibre/devices/mtp/unix/libmtp.c",
), "headers": "calibre/devices/mtp/unix/devices.h calibre/devices/mtp/unix/upstream/music-players.h calibre/devices/mtp/unix/upstream/device-flags.h",
"libraries": "mtp"
- Extension('unrar', - },
- ['unrar/%s.cpp'%(x.partition('.')[0]) for x in ''' - {
- rar.o strlist.o strfn.o pathfn.o savepos.o smallfn.o global.o file.o - "name": "unrar",
- filefn.o filcreat.o archive.o arcread.o unicode.o system.o - "sources": "unrar/rar.cpp unrar/strlist.cpp unrar/strfn.cpp unrar/pathfn.cpp unrar/savepos.cpp unrar/smallfn.cpp unrar/global.cpp unrar/file.cpp unrar/filefn.cpp unrar/filcreat.cpp unrar/archive.cpp unrar/arcread.cpp unrar/unicode.cpp unrar/system.cpp unrar/isnt.cpp unrar/crypt.cpp unrar/crc.cpp unrar/rawread.cpp unrar/encname.cpp unrar/resource.cpp unrar/match.cpp unrar/timefn.cpp unrar/rdwrfn.cpp unrar/consio.cpp unrar/options.cpp unrar/ulinks.cpp unrar/errhnd.cpp unrar/rarvm.cpp unrar/secpassword.cpp unrar/rijndael.cpp unrar/getbits.cpp unrar/sha1.cpp unrar/extinfo.cpp unrar/extract.cpp unrar/volume.cpp unrar/list.cpp unrar/find.cpp unrar/unpack.cpp unrar/cmddata.cpp unrar/filestr.cpp unrar/scantree.cpp calibre/utils/unrar.cpp",
- isnt.o crypt.o crc.o rawread.o encname.o resource.o match.o - "inc_dirs": "unrar",
- timefn.o rdwrfn.o consio.o options.o ulinks.o errhnd.o rarvm.o - "defines": "SILENT RARDLL UNRAR _FILE_OFFSET_BITS=64 _LARGEFILE_SOURCE",
- secpassword.o rijndael.o getbits.o sha1.o extinfo.o extract.o - "windows_defines": "SILENT RARDLL UNRAR",
- volume.o list.o find.o unpack.o cmddata.o filestr.o scantree.o - "optimize_level": 2,
- '''.split()] + ['calibre/utils/unrar.cpp'], - "windows_libraries": "User32 Advapi32 kernel32 Shell32"
- inc_dirs=['unrar'], }
- cflags=[('/' if iswindows else '-') + x for x in ( ]
- 'DSILENT', 'DRARDLL', 'DUNRAR')] + (
- [] if iswindows else ['-D_FILE_OFFSET_BITS=64',
- '-D_LARGEFILE_SOURCE']),
- optimize_level=2,
- libraries=['User32', 'Advapi32', 'kernel32', 'Shell32'] if iswindows else []
- ),
-
]
Index: calibre/src/calibre/ebooks/metadata/archive.py Index: calibre/src/calibre/ebooks/metadata/archive.py
=================================================================== ===================================================================
--- calibre.orig/src/calibre/ebooks/metadata/archive.py 2014-02-02 10:42:14.510954007 +0100 --- calibre.orig/src/calibre/ebooks/metadata/archive.py 2014-02-02 10:42:14.510954007 +0100

View File

@ -1,4 +1,4 @@
{ stdenv, fetchurl, python, pythonPackages, gettext, pygtksourceview, sqlite }: { stdenv, fetchurl, pythonPackages, gettext, sqlite }:
with stdenv.lib; with stdenv.lib;
stdenv.mkDerivation rec { stdenv.mkDerivation rec {
@ -15,10 +15,10 @@ stdenv.mkDerivation rec {
[ sqlite3 ]; [ sqlite3 ];
buildInputs = with pythonPackages; buildInputs = with pythonPackages;
[ python gettext wrapPython pygtk dbus pygtksourceview ]; [ python gettext wrapPython pygtk dbus-python pygtksourceview ];
pythonPath = with pythonPackages; pythonPath = with pythonPackages;
[ pygtk dbus pygtksourceview ]; [ pygtk dbus-python pygtksourceview ];
patches = [ ./subprocess.patch ]; patches = [ ./subprocess.patch ];

View File

@ -2,14 +2,14 @@
stdenv.mkDerivation rec { stdenv.mkDerivation rec {
pname = "emem"; pname = "emem";
version = "0.2.23"; version = "0.2.24";
name = "${pname}-${version}"; name = "${pname}-${version}";
inherit jdk; inherit jdk;
src = fetchurl { src = fetchurl {
url = "https://github.com/ebzzry/${pname}/releases/download/v${version}/${pname}.jar"; url = "https://github.com/ebzzry/${pname}/releases/download/v${version}/${pname}.jar";
sha256 = "0isvhwczbm5fr8bkq45g9i80s50r4vw92b7f3wdzwx7p5sj48pwj"; sha256 = "0h20vpd4gkg1m5mn3fkgrmjgf9w640b7w2500nn0pswmvqawrhpi";
}; };
buildInputs = [ ]; buildInputs = [ ];

View File

@ -11,12 +11,14 @@ gconftool-2 --recursive-unset /apps/guake
*/ */
{ stdenv, fetchurl, lib { stdenv, fetchurl, lib
, pkgconfig, libtool, intltool, makeWrapper , pkgconfig, libtool, intltool, makeWrapper
, dbus, gtk2, gconf, python2, python2Packages, libutempter, vte, keybinder, gnome2, gnome3 }: , dbus, gtk2, gconf, python2Packages, libutempter, vte, keybinder, gnome2, gnome3 }:
with lib; with lib;
let inputs = [ dbus gtk2 gconf python2 libutempter vte keybinder gnome3.gnome_common ]; let
pyPath = makeSearchPathOutput "lib" python2.sitePackages (attrVals [ "dbus" "notify" "pyGtkGlade" "pyxdg" ] python2Packages ++ [ gnome2.gnome_python ]); inherit (python2Packages) python;
inputs = [ dbus gtk2 gconf python libutempter vte keybinder gnome3.gnome_common ];
pyPath = makeSearchPathOutput "lib" python.sitePackages (attrVals [ "dbus-python" "notify" "pyGtkGlade" "pyxdg" ] python2Packages ++ [ gnome2.gnome_python ]);
in stdenv.mkDerivation rec { in stdenv.mkDerivation rec {
name = "guake-${version}"; name = "guake-${version}";
version = "0.8.3"; version = "0.8.3";
@ -60,11 +62,11 @@ let inputs = [ dbus gtk2 gconf python2 libutempter vte keybinder gnome3.gnome_co
postFixup = '' postFixup = ''
for bin in $out/bin/{guake,guake-prefs}; do for bin in $out/bin/{guake,guake-prefs}; do
substituteInPlace $bin \ substituteInPlace $bin \
--replace '/usr/bin/env python2' ${python2}/bin/python2 --replace '/usr/bin/env python2' ${python.interpreter}
wrapProgram $bin \ wrapProgram $bin \
--prefix XDG_DATA_DIRS : "$out/share:$XDG_ICON_DIRS:$GSETTINGS_SCHEMAS_PATH" \ --prefix XDG_DATA_DIRS : "$out/share:$XDG_ICON_DIRS:$GSETTINGS_SCHEMAS_PATH" \
--prefix LD_LIBRARY_PATH : ${makeLibraryPath inputs} \ --prefix LD_LIBRARY_PATH : ${makeLibraryPath inputs} \
--prefix PYTHONPATH : "$out/${python2.sitePackages}:${pyPath}:$PYTHONPATH" --prefix PYTHONPATH : "$out/${python.sitePackages}:${pyPath}:$PYTHONPATH"
done done
''; '';

View File

@ -1,5 +1,5 @@
{ stdenv, fetchzip, buildPythonApplication, docbook2x, libxslt, gnome_doc_utils { stdenv, fetchzip, pythonPackages, docbook2x, libxslt, gnome_doc_utils
, intltool, dbus_glib, pygobject, pygtk, pyxdg, gnome_python, dbus, sqlite3 , intltool, dbus_glib, gnome_python, dbus
, hicolor_icon_theme , hicolor_icon_theme
}: }:
@ -8,9 +8,8 @@
# #
# WARNING:root:Could not import wnck - workspace tracking will be disabled # WARNING:root:Could not import wnck - workspace tracking will be disabled
buildPythonApplication rec { pythonPackages.buildPythonApplication rec {
name = "hamster-time-tracker-1.04"; name = "hamster-time-tracker-1.04";
namePrefix = "";
src = fetchzip { src = fetchzip {
name = "${name}-src"; name = "${name}-src";
@ -22,7 +21,7 @@ buildPythonApplication rec {
docbook2x libxslt gnome_doc_utils intltool dbus_glib hicolor_icon_theme docbook2x libxslt gnome_doc_utils intltool dbus_glib hicolor_icon_theme
]; ];
propagatedBuildInputs = [ pygobject pygtk pyxdg gnome_python dbus sqlite3 ]; propagatedBuildInputs = with pythonPackages; [ pygobject pygtk pyxdg gnome_python dbus-python sqlite3 ];
configurePhase = '' configurePhase = ''
python waf configure --prefix="$out" python waf configure --prefix="$out"

View File

@ -11,7 +11,7 @@ python27Packages.buildPythonApplication rec {
}; };
propagatedBuildInputs = with python27Packages; [ propagatedBuildInputs = with python27Packages; [
wxPython30 pyserial dbus psutil numpy pyopengl pyglet cython wxPython30 pyserial dbus-python psutil numpy pyopengl pyglet cython
]; ];
doCheck = false; doCheck = false;

View File

@ -0,0 +1,101 @@
{ stdenv, fetchFromGitHub, curl, fribidi, mpv, less, rlwrap, gawk, bash, emacs, groff, ncurses, pandoc }:
stdenv.mkDerivation rec {
name = "${pname}-${version}";
pname = "translate-shell";
version = "0.9.4";
src = fetchFromGitHub {
owner = "soimort";
repo = "translate-shell";
rev = "v" + version;
sha256 = "166zhic3k4z37vc8p1fnhc4xx7i7q0j30nr324frmp1mrnwrdib8";
};
phases = [ "buildPhase" "installPhase" "postFixup" ];
buildPhase = ''
mkdir -p $out/bin
mkdir -p $out/share
mkdir -p $out/share/man/man1
'';
installPhase = ''
cp $src/translate $out/bin/trans
cp $src/translate $out/bin/translate
cp $src/translate $out/bin/translate-shell
cp $src/translate.awk $out/share/translate.awk
cp $src/build.awk $out/share/build.awk
cp $src/metainfo.awk $out/share/metainfo.awk
cp $src/test.awk $out/share/test.awk
cp -r $src/include $out/share
cp -r $src/test $out/share
cp $src/man/trans.1 $out/share/man/man1
chmod +x $out/bin/translate
chmod +x $out/share/translate.awk
chmod +x $out/share/build.awk
chmod +x $out/share/metainfo.awk
chmod +x $out/share/test.awk
'';
postFixup = ''
substituteInPlace $out/bin/trans --replace "/bin/sh" "${bash}/bin/bash"
substituteInPlace $out/bin/trans --replace "gawk " "${gawk}/bin/gawk "
substituteInPlace $out/bin/trans --replace "translate.awk" "$out/share/translate.awk"
substituteInPlace $out/bin/translate --replace "/bin/sh" "${bash}/bin/bash"
substituteInPlace $out/bin/translate --replace "gawk " "${gawk}/bin/gawk "
substituteInPlace $out/bin/translate --replace "translate.awk" "$out/share/translate.awk"
substituteInPlace $out/bin/translate-shell --replace "/bin/sh" "${bash}/bin/bash"
substituteInPlace $out/bin/translate-shell --replace "gawk " "${gawk}/bin/gawk "
substituteInPlace $out/bin/translate-shell --replace "translate.awk" "$out/share/translate.awk"
substituteInPlace $out/share/translate.awk --replace "/usr/bin/gawk" "${gawk}/bin/gawk"
substituteInPlace $out/share/translate.awk --replace "metainfo" "$out/share/metainfo"
substituteInPlace $out/share/translate.awk --replace "include/" "$out/share/include/"
substituteInPlace $out/share/build.awk --replace "/usr/bin/gawk" "${gawk}/bin/gawk"
substituteInPlace $out/share/build.awk --replace "include/" "$out/share/include/"
substituteInPlace $out/share/build.awk --replace "metainfo.awk" "$out/share/metainfo.awk"
substituteInPlace $out/share/metainfo.awk --replace "translate.awk" "$out/share/translate.awk"
substituteInPlace $out/share/test.awk --replace "/usr/bin/gawk" "${gawk}/bin/gawk"
substituteInPlace $out/share/test.awk --replace "include/" "$out/share/include/"
substituteInPlace $out/share/test.awk --replace "test/" "$out/share/test/"
substituteInPlace $out/share/include/Translators/\*.awk --replace "include/" "$out/share/include/"
substituteInPlace $out/share/test/Test.awk --replace "test/" "$out/share/test/"
substituteInPlace $out/share/test/TestUtils.awk --replace "include/" "$out/share/include/"
substituteInPlace $out/share/test/TestParser.awk --replace "include/" "$out/share/include/"
substituteInPlace $out/share/test/TestCommons.awk --replace "\"gawk\"" "\"${gawk}/bin/gawk\""
substituteInPlace $out/share/test/TestCommons.awk --replace "Commons.awk" "$out/share/include/Commons.awk"
substituteInPlace $out/share/include/Main.awk --replace "\"tput\"" "\"${ncurses}/bin/tput\""
substituteInPlace $out/share/include/Help.awk --replace "\"groff\"" "\"${groff}/bin/groff\""
substituteInPlace $out/share/include/Utils.awk --replace "\"fribidi\"" "\"${fribidi}/bin/fribidi\""
substituteInPlace $out/share/include/Utils.awk --replace "\"fribidi " "\"${fribidi}/bin/fribidi "
substituteInPlace $out/share/include/Utils.awk --replace "\"rlwrap\"" "\"${rlwrap}/bin/rlwrap\""
substituteInPlace $out/share/include/Utils.awk --replace "\"emacs\"" "\"${emacs}/bin/emacs\""
substituteInPlace $out/share/include/Utils.awk --replace "\"curl\"" "\"${curl}/bin/curl\""
substituteInPlace $out/share/build.awk --replace "\"pandoc " "\"${pandoc}/bin/pandoc "
substituteInPlace $out/share/include/Translate.awk --replace "\"mpv " "\"${mpv}/bin/mpv "
substituteInPlace $out/share/include/Translate.awk --replace "\"less " "\"${less}/bin/less "
'';
meta = with stdenv.lib; {
homepage = https://www.soimort.org/translate-shell;
description = "Command-line translator using Google Translate, Bing Translator, Yandex.Translate, and Apertium";
license = licenses.publicDomain;
maintainers = [ maintainers.ebzzry ];
platforms = platforms.unix;
};
}

View File

@ -23,11 +23,11 @@
let let
# NOTE: When updating, please also update in current stable, # NOTE: When updating, please also update in current stable,
# as older versions stop working # as older versions stop working
version = "6.4.14"; version = "8.4.19";
sha256 = sha256 =
{ {
"x86_64-linux" = "0wpdib3jf5bq4k8q5xv9g01fdcfjb4l903xjxn32rjw615s1q8bg"; "x86_64-linux" = "0pm43cklsm41mg463mz0ypvbladm2mz65s7ar9z4k4hgjrhyh67j";
"i686-linux" = "1lgc7ryp2mn230cfsbndn9ss71l378kib0lvs89rkn25d5zfgzn4"; "i686-linux" = "0myz8s2xdl034zb4548fgzz2f5gfvzfr1nwp50fh3f3hmf6frgp3";
}."${stdenv.system}" or (throw "system ${stdenv.system} not supported"); }."${stdenv.system}" or (throw "system ${stdenv.system} not supported");
arch = arch =

View File

@ -1,5 +1,5 @@
{ stdenv, fetchurl, python, intltool, pkgconfig, libX11, gtk { stdenv, fetchurl, python, intltool, pkgconfig, libX11, gtk
, ldns, pythonDBus, pythonPackages , ldns, pythonPackages
, enableJingle ? true, farstream ? null, gst_plugins_bad ? null , enableJingle ? true, farstream ? null, gst_plugins_bad ? null
, libnice ? null , libnice ? null
@ -58,7 +58,7 @@ stdenv.mkDerivation rec {
pythonPackages.sqlite3 pythonPackages.pyasn1 pythonPackages.sqlite3 pythonPackages.pyasn1
pythonPackages.pyxdg pythonPackages.pyxdg
pythonPackages.nbxmpp pythonPackages.nbxmpp
pythonPackages.pyopenssl pythonDBus pythonPackages.pyopenssl pythonPackages.dbus-python
] ++ optionals enableJingle [ farstream gst_plugins_bad libnice ] ] ++ optionals enableJingle [ farstream gst_plugins_bad libnice ]
++ optional enableE2E pythonPackages.pycrypto ++ optional enableE2E pythonPackages.pycrypto
++ optional enableRST pythonPackages.docutils ++ optional enableRST pythonPackages.docutils

View File

@ -1,5 +1,8 @@
{stdenv, fetchurl, python, pythonPackages, pygobject, pythonDBus}: {stdenv, fetchurl, pythonPackages}:
stdenv.mkDerivation rec {
let
inherit (pythonPackages) python;
in stdenv.mkDerivation rec {
url = "ftp://ftp.goffi.org/sat/sat-0.2.0.tar.bz2"; url = "ftp://ftp.goffi.org/sat/sat-0.2.0.tar.bz2";
name = stdenv.lib.nameFromURL url ".tar"; name = stdenv.lib.nameFromURL url ".tar";
src = fetchurl { src = fetchurl {
@ -10,28 +13,28 @@ stdenv.mkDerivation rec {
buildInputs = with pythonPackages; buildInputs = with pythonPackages;
[ [
python twisted urwid beautifulsoup wxPython pygobject python twisted urwid beautifulsoup wxPython pygobject
wokkel pythonDBus pyfeed wrapPython setuptools wokkel dbus-python pyfeed wrapPython setuptools
]; ];
configurePhase = '' configurePhase = ''
sed -i "/use_setuptools/d" setup.py sed -i "/use_setuptools/d" setup.py
sed -e "s@sys.prefix@'$out'@g" -i setup.py sed -e "s@sys.prefix@'$out'@g" -i setup.py
sed -e "1aexport PATH=\"\$PATH\":\"$out/bin\":\"${pythonPackages.twisted}/bin\"" -i src/sat.sh sed -e "1aexport PATH=\"\$PATH\":\"$out/bin\":\"${pythonPackages.twisted}/bin\"" -i src/sat.sh
sed -e "1aexport PYTHONPATH=\"\$PYTHONPATHPATH\":\"$PYTHONPATH\":"$out/lib/${python.libPrefix}/site-packages"" -i src/sat.sh sed -e "1aexport PYTHONPATH=\"\$PYTHONPATHPATH\":\"$PYTHONPATH\":"$out/${python.sitePackages}"" -i src/sat.sh
echo 'import wokkel.muc' | python echo 'import wokkel.muc' | python
''; '';
buildPhase = '' buildPhase = ''
python setup.py build ${python.interpreter}setup.py build
''; '';
installPhase = '' installPhase = ''
python setup.py install --prefix="$out" ${python.interpreter} setup.py install --prefix="$out"
for i in "$out/bin"/*; do for i in "$out/bin"/*; do
head -n 1 "$i" | grep -E '[/ ]python( |$)' && { head -n 1 "$i" | grep -E '[/ ]python( |$)' && {
wrapProgram "$i" --prefix PYTHONPATH : "$PYTHONPATH:$out/lib/${python.libPrefix}/site-packages" wrapProgram "$i" --prefix PYTHONPATH : "$PYTHONPATH:$out/${python.sitePackages}"
} || true } || true
done done
''; '';

View File

@ -1,9 +1,9 @@
{ stdenv, buildPythonApplication, fetchurl, gettext, gtk3, pythonPackages { stdenv, fetchurl, gettext, gtk3, pythonPackages
, gdk_pixbuf, libnotify, gst_all_1 , gdk_pixbuf, libnotify, gst_all_1
, libgnome_keyring3 ? null, networkmanager ? null , libgnome_keyring3 ? null, networkmanager ? null
}: }:
buildPythonApplication rec { pythonPackages.buildPythonApplication rec {
name = "mailnag-${version}"; name = "mailnag-${version}";
version = "1.1.0"; version = "1.1.0";
@ -13,7 +13,7 @@ buildPythonApplication rec {
}; };
buildInputs = [ buildInputs = [
gettext gtk3 pythonPackages.pygobject3 pythonPackages.dbus gettext gtk3 pythonPackages.pygobject3 pythonPackages.dbus-python
pythonPackages.pyxdg gdk_pixbuf libnotify gst_all_1.gstreamer pythonPackages.pyxdg gdk_pixbuf libnotify gst_all_1.gstreamer
gst_all_1.gst-plugins-base gst_all_1.gst-plugins-good gst_all_1.gst-plugins-base gst_all_1.gst-plugins-good
gst_all_1.gst-plugins-bad libgnome_keyring3 networkmanager gst_all_1.gst-plugins-bad libgnome_keyring3 networkmanager

View File

@ -1,6 +1,8 @@
{stdenv, fetchFromGitHub, makeWrapper, gettext, python3, python3Packages, rsync, cron, openssh, sshfsFuse, encfs }: {stdenv, fetchFromGitHub, makeWrapper, gettext, python3Packages, rsync, cron, openssh, sshfsFuse, encfs }:
stdenv.mkDerivation rec { let
inherit (python3Packages) python dbus-python keyring;
in stdenv.mkDerivation rec {
version = "1.1.12"; version = "1.1.12";
name = "backintime-common-${version}"; name = "backintime-common-${version}";
@ -12,7 +14,7 @@ stdenv.mkDerivation rec {
sha256 = "0n3x48wa8aa7i8fff85h3b5h3xpabk51ld0ymy3pkqh0krfgs59a"; sha256 = "0n3x48wa8aa7i8fff85h3b5h3xpabk51ld0ymy3pkqh0krfgs59a";
}; };
buildInputs = [ makeWrapper gettext python3 python3Packages.dbus python3Packages.keyring openssh cron rsync sshfsFuse encfs ]; buildInputs = [ makeWrapper gettext python dbus-python keyring openssh cron rsync sshfsFuse encfs ];
installFlags = [ "DEST=$(out)" ]; installFlags = [ "DEST=$(out)" ];

View File

@ -1,6 +1,6 @@
source 'https://rubygems.org' source 'https://rubygems.org'
gem 'rails', '4.2.7' gem 'rails', '4.2.7.1'
gem 'rails-deprecated_sanitizer', '~> 1.0.3' gem 'rails-deprecated_sanitizer', '~> 1.0.3'
# Responders respond_to and respond_with # Responders respond_to and respond_with

View File

@ -3,34 +3,34 @@ GEM
specs: specs:
RedCloth (4.3.2) RedCloth (4.3.2)
ace-rails-ap (4.0.2) ace-rails-ap (4.0.2)
actionmailer (4.2.7) actionmailer (4.2.7.1)
actionpack (= 4.2.7) actionpack (= 4.2.7.1)
actionview (= 4.2.7) actionview (= 4.2.7.1)
activejob (= 4.2.7) activejob (= 4.2.7.1)
mail (~> 2.5, >= 2.5.4) mail (~> 2.5, >= 2.5.4)
rails-dom-testing (~> 1.0, >= 1.0.5) rails-dom-testing (~> 1.0, >= 1.0.5)
actionpack (4.2.7) actionpack (4.2.7.1)
actionview (= 4.2.7) actionview (= 4.2.7.1)
activesupport (= 4.2.7) activesupport (= 4.2.7.1)
rack (~> 1.6) rack (~> 1.6)
rack-test (~> 0.6.2) rack-test (~> 0.6.2)
rails-dom-testing (~> 1.0, >= 1.0.5) rails-dom-testing (~> 1.0, >= 1.0.5)
rails-html-sanitizer (~> 1.0, >= 1.0.2) rails-html-sanitizer (~> 1.0, >= 1.0.2)
actionview (4.2.7) actionview (4.2.7.1)
activesupport (= 4.2.7) activesupport (= 4.2.7.1)
builder (~> 3.1) builder (~> 3.1)
erubis (~> 2.7.0) erubis (~> 2.7.0)
rails-dom-testing (~> 1.0, >= 1.0.5) rails-dom-testing (~> 1.0, >= 1.0.5)
rails-html-sanitizer (~> 1.0, >= 1.0.2) rails-html-sanitizer (~> 1.0, >= 1.0.2)
activejob (4.2.7) activejob (4.2.7.1)
activesupport (= 4.2.7) activesupport (= 4.2.7.1)
globalid (>= 0.3.0) globalid (>= 0.3.0)
activemodel (4.2.7) activemodel (4.2.7.1)
activesupport (= 4.2.7) activesupport (= 4.2.7.1)
builder (~> 3.1) builder (~> 3.1)
activerecord (4.2.7) activerecord (4.2.7.1)
activemodel (= 4.2.7) activemodel (= 4.2.7.1)
activesupport (= 4.2.7) activesupport (= 4.2.7.1)
arel (~> 6.0) arel (~> 6.0)
activerecord-nulldb-adapter (0.3.3) activerecord-nulldb-adapter (0.3.3)
activerecord (>= 2.0.0) activerecord (>= 2.0.0)
@ -40,7 +40,7 @@ GEM
multi_json (~> 1.11, >= 1.11.2) multi_json (~> 1.11, >= 1.11.2)
rack (>= 1.5.2, < 3) rack (>= 1.5.2, < 3)
railties (>= 4.0, < 5.1) railties (>= 4.0, < 5.1)
activesupport (4.2.7) activesupport (4.2.7.1)
i18n (~> 0.7) i18n (~> 0.7)
json (~> 1.7, >= 1.7.7) json (~> 1.7, >= 1.7.7)
minitest (~> 5.1) minitest (~> 5.1)
@ -287,7 +287,7 @@ GEM
omniauth (~> 1.0) omniauth (~> 1.0)
pyu-ruby-sasl (~> 0.0.3.1) pyu-ruby-sasl (~> 0.0.3.1)
rubyntlm (~> 0.3) rubyntlm (~> 0.3)
globalid (0.3.6) globalid (0.3.7)
activesupport (>= 4.1.0) activesupport (>= 4.1.0)
gollum-grit_adapter (1.0.1) gollum-grit_adapter (1.0.1)
gitlab-grit (~> 2.7, >= 2.7.1) gitlab-grit (~> 2.7, >= 2.7.1)
@ -516,16 +516,16 @@ GEM
rack rack
rack-test (0.6.3) rack-test (0.6.3)
rack (>= 1.0) rack (>= 1.0)
rails (4.2.7) rails (4.2.7.1)
actionmailer (= 4.2.7) actionmailer (= 4.2.7.1)
actionpack (= 4.2.7) actionpack (= 4.2.7.1)
actionview (= 4.2.7) actionview (= 4.2.7.1)
activejob (= 4.2.7) activejob (= 4.2.7.1)
activemodel (= 4.2.7) activemodel (= 4.2.7.1)
activerecord (= 4.2.7) activerecord (= 4.2.7.1)
activesupport (= 4.2.7) activesupport (= 4.2.7.1)
bundler (>= 1.3.0, < 2.0) bundler (>= 1.3.0, < 2.0)
railties (= 4.2.7) railties (= 4.2.7.1)
sprockets-rails sprockets-rails
rails-deprecated_sanitizer (1.0.3) rails-deprecated_sanitizer (1.0.3)
activesupport (>= 4.2.0.alpha) activesupport (>= 4.2.0.alpha)
@ -535,9 +535,9 @@ GEM
rails-deprecated_sanitizer (>= 1.0.1) rails-deprecated_sanitizer (>= 1.0.1)
rails-html-sanitizer (1.0.3) rails-html-sanitizer (1.0.3)
loofah (~> 2.0) loofah (~> 2.0)
railties (4.2.7) railties (4.2.7.1)
actionpack (= 4.2.7) actionpack (= 4.2.7.1)
activesupport (= 4.2.7) activesupport (= 4.2.7.1)
rake (>= 0.8.7) rake (>= 0.8.7)
thor (>= 0.18.1, < 2.0) thor (>= 0.18.1, < 2.0)
rainbow (2.1.0) rainbow (2.1.0)
@ -922,7 +922,7 @@ DEPENDENCIES
rack-attack (~> 4.3.1) rack-attack (~> 4.3.1)
rack-cors (~> 0.4.0) rack-cors (~> 0.4.0)
rack-oauth2 (~> 1.2.1) rack-oauth2 (~> 1.2.1)
rails (= 4.2.7) rails (= 4.2.7.1)
rails-deprecated_sanitizer (~> 1.0.3) rails-deprecated_sanitizer (~> 1.0.3)
rainbow (~> 2.1.0) rainbow (~> 2.1.0)
rblineprof (~> 0.3.6) rblineprof (~> 0.3.6)

View File

@ -24,7 +24,7 @@ in
stdenv.mkDerivation rec { stdenv.mkDerivation rec {
name = "gitlab-${version}"; name = "gitlab-${version}";
version = "8.10.3"; version = "8.10.6";
buildInputs = [ env ruby bundler tzdata git nodejs procps ]; buildInputs = [ env ruby bundler tzdata git nodejs procps ];
@ -32,7 +32,7 @@ stdenv.mkDerivation rec {
owner = "gitlabhq"; owner = "gitlabhq";
repo = "gitlabhq"; repo = "gitlabhq";
rev = "v${version}"; rev = "v${version}";
sha256 = "0fhnwrgrpccc2j9wgdmwwi9h1ym3ll97lhmddq0xfzivc302ri3w"; sha256 = "1nk0ak9p5ncqynrm965ypwb9bj7b1r2jy5g4vdb9b0ma1ns2bkzf";
}; };
patches = [ patches = [
@ -70,6 +70,7 @@ stdenv.mkDerivation rec {
SKIP_STORAGE_VALIDATION=true \ SKIP_STORAGE_VALIDATION=true \
rake assets:precompile RAILS_ENV=production rake assets:precompile RAILS_ENV=production
mv config/gitlab.yml config/gitlab.yml.example mv config/gitlab.yml config/gitlab.yml.example
rm config/secrets.yml
mv config config.dist mv config config.dist
''; '';

View File

@ -10,50 +10,50 @@
actionmailer = { actionmailer = {
source = { source = {
remotes = ["https://rubygems.org"]; remotes = ["https://rubygems.org"];
sha256 = "1fhq3dg3icbi1vrz55xwalzn4wpbrdgm41ma1jkrgbwl4qqqrrsq"; sha256 = "0lw1pss1mrjm7x7qcg9pvxv55rz3d994yf3mwmlfg1y12fxq00n3";
type = "gem"; type = "gem";
}; };
version = "4.2.7"; version = "4.2.7.1";
}; };
actionpack = { actionpack = {
source = { source = {
remotes = ["https://rubygems.org"]; remotes = ["https://rubygems.org"];
sha256 = "0swhxylh0mrq7b8am3b90xqnwldvfn52jd2m9zmc27r8hvc0h2fp"; sha256 = "1ray5bvlmkimjax011zsw0mz9llfkqrfm7q1avjlp4i0kpcz8zlh";
type = "gem"; type = "gem";
}; };
version = "4.2.7"; version = "4.2.7.1";
}; };
actionview = { actionview = {
source = { source = {
remotes = ["https://rubygems.org"]; remotes = ["https://rubygems.org"];
sha256 = "0wsxa7zkvacmv4vf528nmid2v5smqy54vh17srj3997bgjyr68f3"; sha256 = "11m2x5nlbqrw79fh6h7m444lrka7wwy32b0dvgqg7ilbzih43k0c";
type = "gem"; type = "gem";
}; };
version = "4.2.7"; version = "4.2.7.1";
}; };
activejob = { activejob = {
source = { source = {
remotes = ["https://rubygems.org"]; remotes = ["https://rubygems.org"];
sha256 = "19bf6fpl1vw6qnpsqcvdhljrvp67a7j72x1ydz4rj2s7g4xbjas3"; sha256 = "0ish5wd8nvmj7f6x1i22aw5ycizy5n1z1c7f3kyxmqwhw7lb0gaz";
type = "gem"; type = "gem";
}; };
version = "4.2.7"; version = "4.2.7.1";
}; };
activemodel = { activemodel = {
source = { source = {
remotes = ["https://rubygems.org"]; remotes = ["https://rubygems.org"];
sha256 = "0v991wipszd5ly1fba8qzfyg86r06k8l8y353dv7438sngwd7slk"; sha256 = "0acz0mbmahsc9mn41275fpfnrqwig5k09m3xhz3455kv90fn79v5";
type = "gem"; type = "gem";
}; };
version = "4.2.7"; version = "4.2.7.1";
}; };
activerecord = { activerecord = {
source = { source = {
remotes = ["https://rubygems.org"]; remotes = ["https://rubygems.org"];
sha256 = "0m04absj00hxj4q527ng0w0ydgbfc1cgxlcksjixgnx4j1visibn"; sha256 = "1lk8l6i9p7qfl0pg261v5yph0w0sc0vysrdzc6bm5i5rxgi68flj";
type = "gem"; type = "gem";
}; };
version = "4.2.7"; version = "4.2.7.1";
}; };
activerecord-nulldb-adapter = { activerecord-nulldb-adapter = {
source = { source = {
@ -74,10 +74,10 @@
activesupport = { activesupport = {
source = { source = {
remotes = ["https://rubygems.org"]; remotes = ["https://rubygems.org"];
sha256 = "1pm0gw4ykq9137n8i815vayyah0mk2m920clgg02jr3l23w6gsnj"; sha256 = "1gds12k7nxrcc09b727a458ndidy1nfcllj9x22jcaj7pppvq6r4";
type = "gem"; type = "gem";
}; };
version = "4.2.7"; version = "4.2.7.1";
}; };
acts-as-taggable-on = { acts-as-taggable-on = {
dependencies = ["activerecord"]; dependencies = ["activerecord"];
@ -958,13 +958,12 @@
version = "1.2.1"; version = "1.2.1";
}; };
globalid = { globalid = {
dependencies = ["activesupport"];
source = { source = {
remotes = ["https://rubygems.org"]; remotes = ["https://rubygems.org"];
sha256 = "145xrpsfx1qqjy33r6qa588wb16dvdhxzj2aysh755vhg6hgm291"; sha256 = "11plkgyl3w9k4y2scc1igvpgwyz4fnmsr63h2q4j8wkb48nlnhak";
type = "gem"; type = "gem";
}; };
version = "0.3.6"; version = "0.3.7";
}; };
gollum-grit_adapter = { gollum-grit_adapter = {
source = { source = {
@ -1773,10 +1772,10 @@
rails = { rails = {
source = { source = {
remotes = ["https://rubygems.org"]; remotes = ["https://rubygems.org"];
sha256 = "033wfvqjzlzkm0nrqrjpxxrp0lwhfm8sjlxn5zdhxhkzmhibrnvn"; sha256 = "1avd16ir7qx23dcnz1b3cafq1lja6rq0w222bs658p9n33rbw54l";
type = "gem"; type = "gem";
}; };
version = "4.2.7"; version = "4.2.7.1";
}; };
rails-deprecated_sanitizer = { rails-deprecated_sanitizer = {
dependencies = ["activesupport"]; dependencies = ["activesupport"];
@ -1808,10 +1807,10 @@
railties = { railties = {
source = { source = {
remotes = ["https://rubygems.org"]; remotes = ["https://rubygems.org"];
sha256 = "0psnr9g436k2fkkjlhs7mq090i7vh0cvh7qwwrb8ppzbcr15hhab"; sha256 = "04rz7cn64zzvq7lnhc9zqmaqmqkq84q25v0ym9lcw75j1cj1mrq4";
type = "gem"; type = "gem";
}; };
version = "4.2.7"; version = "4.2.7.1";
}; };
rainbow = { rainbow = {
source = { source = {

View File

@ -22,8 +22,8 @@ index e2b3d55..23a5454 100644
--- a/Gemfile.lock --- a/Gemfile.lock
+++ b/Gemfile.lock +++ b/Gemfile.lock
@@ -32,6 +32,8 @@ GEM @@ -32,6 +32,8 @@ GEM
activemodel (= 4.2.7) activemodel (= 4.2.7.1)
activesupport (= 4.2.7) activesupport (= 4.2.7.1)
arel (~> 6.0) arel (~> 6.0)
+ activerecord-nulldb-adapter (0.3.3) + activerecord-nulldb-adapter (0.3.3)
+ activerecord (>= 2.0.0) + activerecord (>= 2.0.0)

View File

@ -1,11 +1,12 @@
{ stdenv, fetchurl, python, makeWrapper, docutils, unzip, hg-git, dulwich { stdenv, fetchurl, pythonPackages, makeWrapper, docutils, unzip
, guiSupport ? false, tk ? null, curses , guiSupport ? false, tk ? null
, ApplicationServices, cf-private }: , ApplicationServices, cf-private }:
let let
# if you bump version, update pkgs.tortoisehg too or ping maintainer # if you bump version, update pkgs.tortoisehg too or ping maintainer
version = "3.8.2"; version = "3.8.2";
name = "mercurial-${version}"; name = "mercurial-${version}";
inherit (pythonPackages) curses docutils hg-git dulwich python;
in in
stdenv.mkDerivation { stdenv.mkDerivation {

View File

@ -11,7 +11,7 @@ python2Packages.buildPythonApplication rec {
sha256 = "0964pdylrx4n9c9l8ncwv4q1p63y4hadb5v4pgvm0m2fah2jlkly"; sha256 = "0964pdylrx4n9c9l8ncwv4q1p63y4hadb5v4pgvm0m2fah2jlkly";
}; };
pythonPath = with python2Packages; [ configobj dbus pygobject pygtk simplejson pysvn dulwich tkinter gvfs xdg_utils ]; pythonPath = with python2Packages; [ configobj dbus-python pygobject pygtk simplejson pysvn dulwich tkinter gvfs xdg_utils ];
prePatch = '' prePatch = ''
sed -ie 's|if sys\.argv\[1\] == "install":|if False:|' ./setup.py sed -ie 's|if sys\.argv\[1\] == "install":|if False:|' ./setup.py

View File

@ -1,7 +1,7 @@
{ pkgs, stdenv, fetchurl, pythonPackages, buildPythonApplication, pygtk, ffmpeg, mplayer, vcdimager, cdrkit, dvdauthor }: { pkgs, stdenv, fetchurl, pythonPackages, ffmpeg, mplayer, vcdimager, cdrkit, dvdauthor }:
let let
inherit (pythonPackages) dbus; inherit (pythonPackages) dbus-python buildPythonApplication pygtk;
in buildPythonApplication rec { in buildPythonApplication rec {
name = "devede-3.23.0"; name = "devede-3.23.0";
@ -14,7 +14,7 @@ in buildPythonApplication rec {
buildInputs = [ ffmpeg ]; buildInputs = [ ffmpeg ];
propagatedBuildInputs = [ pygtk dbus ffmpeg mplayer dvdauthor vcdimager cdrkit ]; propagatedBuildInputs = [ pygtk dbus-python ffmpeg mplayer dvdauthor vcdimager cdrkit ];
postPatch = '' postPatch = ''
substituteInPlace devede --replace "/usr/share/devede" "$out/share/devede" substituteInPlace devede --replace "/usr/share/devede" "$out/share/devede"

View File

@ -16,11 +16,11 @@ python3Packages.buildPythonApplication rec {
buildInputs = with python3Packages; buildInputs = with python3Packages;
[ pygobject3 pyxdg pycairo gst_all_1.gstreamer gst_all_1.gst-plugins-base [ pygobject3 pyxdg pycairo gst_all_1.gstreamer gst_all_1.gst-plugins-base
gst_all_1.gst-plugins-good gobjectIntrospection gtk3 libwnck3 distutils_extra gst_all_1.gst-plugins-good gobjectIntrospection gtk3 libwnck3 distutils_extra
intltool dbus ]; intltool dbus-python ];
# TODO: figure out why PYTHONPATH is not passed automatically for those programs # TODO: figure out why PYTHONPATH is not passed automatically for those programs
pythonPath = with python3Packages; pythonPath = with python3Packages;
[ pygobject3 pyxdg pycairo dbus ]; [ pygobject3 pyxdg pycairo dbus-python ];
patches = [ ./datadir.patch ./bug_1190693.patch ]; patches = [ ./datadir.patch ./bug_1190693.patch ];
prePatch = '' prePatch = ''

View File

@ -75,7 +75,7 @@ in buildPythonApplication rec {
]; ];
propagatedBuildInputs = with pythonPackages; [ propagatedBuildInputs = with pythonPackages; [
pygobject pygtk pycurl sqlite3 mutagen pycairo dbus pygobject pygtk pycurl sqlite3 mutagen pycairo dbus-python
pywebkitgtk] ++ [ libtorrentRasterbar pywebkitgtk] ++ [ libtorrentRasterbar
gst_python gst_plugins_base gst_plugins_good gst_ffmpeg gst_python gst_plugins_base gst_plugins_good gst_ffmpeg
] ++ optional enableBonjour avahi; ] ++ optional enableBonjour avahi;

View File

@ -43,7 +43,7 @@ in stdenv.mkDerivation rec {
gst-plugins-bad gst-plugins-ugly gst-libav gst-validate gst-plugins-bad gst-plugins-ugly gst-libav gst-validate
]) ++ (with python3Packages; [ ]) ++ (with python3Packages; [
python pygobject3 gst-python pyxdg numpy pycairo sqlite3 matplotlib python pygobject3 gst-python pyxdg numpy pycairo sqlite3 matplotlib
dbus dbus-python
]); ]);
meta = with stdenv.lib; { meta = with stdenv.lib; {

View File

@ -1,5 +1,5 @@
{ stdenv, fetchurl, pythonPackages, intltool, libxml2Python, curl, python { stdenv, fetchurl, pythonPackages, intltool, libxml2Python, curl
, wrapGAppsHook, virtinst, pyGtkGlade, pythonDBus, gnome_python, gtkvnc, vte , wrapGAppsHook, virtinst, gnome_python, gtkvnc, vte
, gtk3, gobjectIntrospection, libvirt-glib, gsettings_desktop_schemas, glib , gtk3, gobjectIntrospection, libvirt-glib, gsettings_desktop_schemas, glib
, avahi, dconf, spiceSupport ? true, spice_gtk, libosinfo, gnome3, system-libvirt , avahi, dconf, spiceSupport ? true, spice_gtk, libosinfo, gnome3, system-libvirt
}: }:
@ -21,7 +21,7 @@ buildPythonApplication rec {
[ eventlet greenlet gflags netaddr carrot routes [ eventlet greenlet gflags netaddr carrot routes
PasteDeploy m2crypto ipy twisted PasteDeploy m2crypto ipy twisted
distutils_extra simplejson readline glanceclient cheetah lockfile httplib2 distutils_extra simplejson readline glanceclient cheetah lockfile httplib2
urlgrabber virtinst pyGtkGlade pythonDBus gnome_python pygobject3 urlgrabber virtinst pyGtkGlade dbus-python gnome_python pygobject3
libvirt libxml2Python ipaddr vte libosinfo gobjectIntrospection gtk3 mox libvirt libxml2Python ipaddr vte libosinfo gobjectIntrospection gtk3 mox
gtkvnc libvirt-glib glib gsettings_desktop_schemas gnome3.defaultIconTheme gtkvnc libvirt-glib glib gsettings_desktop_schemas gnome3.defaultIconTheme
wrapGAppsHook wrapGAppsHook

View File

@ -2,12 +2,12 @@
let let
# Xen 4.5.0 # Xen 4.5.0
xenConfig = { xenConfig = rec {
name = "xen-4.5.0";
version = "4.5.0"; version = "4.5.0";
name = "xen-${version}";
src = fetchurl { src = fetchurl {
url = "http://bits.xensource.com/oss-xen/release/4.5.0/xen-4.5.0.tar.gz"; url = "http://bits.xensource.com/oss-xen/release/${version}/${name}.tar.gz";
sha256 = "0fvg00d596gh6cfm51xr8kj2mghcyivrf6np3dafnbldnbi41nsv"; sha256 = "0fvg00d596gh6cfm51xr8kj2mghcyivrf6np3dafnbldnbi41nsv";
}; };
@ -15,14 +15,14 @@ let
firmwareGits = firmwareGits =
[ # tag 1.7.5 [ # tag 1.7.5
{ git = { name = "seabios"; { git = { name = "seabios";
url = git://xenbits.xen.org/seabios.git; url = https://xenbits.xen.org/git-http/seabios.git;
rev = "e51488c5f8800a52ac5c8da7a31b85cca5cc95d2"; rev = "e51488c5f8800a52ac5c8da7a31b85cca5cc95d2";
sha256 = "b96a0b9f31cab0f3993d007dcbe5f1bd69ad02b0a23eb2dc8a3ed1aafe7985cb"; sha256 = "0jk54ybhmw97pzyhpm6jr2x99f702kbn0ipxv5qxcbynflgdazyb";
}; };
patches = [ ./0000-qemu-seabios-enable-ATA_DMA.patch ]; patches = [ ./0000-qemu-seabios-enable-ATA_DMA.patch ];
} }
{ git = { name = "ovmf"; { git = { name = "ovmf";
url = git://xenbits.xen.org/ovmf.git; url = https://xenbits.xen.org/git-http/ovmf.git;
rev = "447d264115c476142f884af0be287622cd244423"; rev = "447d264115c476142f884af0be287622cd244423";
sha256 = "7086f882495a8be1497d881074e8f1005dc283a5e1686aec06c1913c76a6319b"; sha256 = "7086f882495a8be1497d881074e8f1005dc283a5e1686aec06c1913c76a6319b";
}; };
@ -32,20 +32,20 @@ let
toolsGits = toolsGits =
[ # tag qemu-xen-4.5.0 [ # tag qemu-xen-4.5.0
{ git = { name = "qemu-xen"; { git = { name = "qemu-xen";
url = git://xenbits.xen.org/qemu-upstream-4.5-testing.git; url = https://xenbits.xen.org/git-http/qemu-xen.git;
rev = "1ebb75b1fee779621b63e84fefa7b07354c43a99"; rev = "1ebb75b1fee779621b63e84fefa7b07354c43a99";
sha256 = "1j312q2mqvkvby9adkkxf7f1pn3nz85g5mr9nbg4qpf2y9cg122z"; sha256 = "0yp9vmna3yl28vm5fkirghzhndaihmsm34fjzgr9sl6s46wx5yzg";
}; };
} }
# tag xen-4.5.0 # tag xen-4.5.0
{ git = { name = "qemu-xen-traditional"; { git = { name = "qemu-xen-traditional";
url = git://xenbits.xen.org/qemu-xen-4.5-testing.git; url = https://xenbits.xen.org/git-http/qemu-xen-traditional.git;
rev = "b0d42741f8e9a00854c3b3faca1da84bfc69bf22"; rev = "b0d42741f8e9a00854c3b3faca1da84bfc69bf22";
sha256 = "ce52b5108936c30ab85ec0c9554f88d5e7b34896f3acb666d56765b49c86f2af"; sha256 = "1lxlf1s81y5j0rhzzm1f4sbyrnbvd32vxiczs1qjcg6ls866vlki";
}; };
} }
{ git = { name = "xen-libhvm"; { git = { name = "xen-libhvm";
url = "https://github.com/ts468/xen-libhvm"; url = https://github.com/ts468/xen-libhvm;
rev = "442dcc4f6f4e374a51e4613532468bd6b48bdf63"; rev = "442dcc4f6f4e374a51e4613532468bd6b48bdf63";
sha256 = "9ba97c39a00a54c154785716aa06691d312c99be498ebbc00dc3769968178ba8"; sha256 = "9ba97c39a00a54c154785716aa06691d312c99be498ebbc00dc3769968178ba8";
}; };
@ -77,4 +77,3 @@ let
}; };
in callPackage ./generic.nix (args // { xenConfig=xenConfig; }) in callPackage ./generic.nix (args // { xenConfig=xenConfig; })

View File

@ -15,16 +15,16 @@ let
firmwareGits = firmwareGits =
[ # tag 1.7.5 [ # tag 1.7.5
{ git = { name = "seabios"; { git = { name = "seabios";
url = git://xenbits.xen.org/seabios.git; url = https://xenbits.xen.org/git-http/seabios.git;
rev = "e51488c5f8800a52ac5c8da7a31b85cca5cc95d2"; rev = "e51488c5f8800a52ac5c8da7a31b85cca5cc95d2";
sha256 = "b96a0b9f31cab0f3993d007dcbe5f1bd69ad02b0a23eb2dc8a3ed1aafe7985cb"; sha256 = "0jk54ybhmw97pzyhpm6jr2x99f702kbn0ipxv5qxcbynflgdazyb";
}; };
patches = [ ./0000-qemu-seabios-enable-ATA_DMA.patch ]; patches = [ ./0000-qemu-seabios-enable-ATA_DMA.patch ];
} }
{ git = { name = "ovmf"; { git = { name = "ovmf";
url = git://xenbits.xen.org/ovmf.git; url = https://xenbits.xen.org/git-http/ovmf.git;
rev = "cb9a7ebabcd6b8a49dc0854b2f9592d732b5afbd"; rev = "cb9a7ebabcd6b8a49dc0854b2f9592d732b5afbd";
sha256 = "1ncb8dpqzaj3s8am44jvclhby40hwczljz0a1gd282h9yr4k4sk2"; sha256 = "07zmdj90zjrzip74fvd4ss8n8njk6cim85s58mc6snxmqqv7gmcq";
}; };
} }
]; ];
@ -32,20 +32,20 @@ let
toolsGits = toolsGits =
[ # tag qemu-xen-4.5.2 [ # tag qemu-xen-4.5.2
{ git = { name = "qemu-xen"; { git = { name = "qemu-xen";
url = git://xenbits.xen.org/qemu-upstream-4.5-testing.git; url = https://xenbits.xen.org/git-http/qemu-xen.git;
rev = "e5a1bb22cfb307db909dbd3404c48e5bbeb9e66d"; rev = "e5a1bb22cfb307db909dbd3404c48e5bbeb9e66d";
sha256 = "1qflb3j8qcvipavybqhi0ql7m2bx51lhzgmf7pdbls8minpvdzg2"; sha256 = "00h6hc1y19y9wafxk01hvwm2j8lysz26wi2dnv8md76zxavg4maa";
}; };
} }
# tag xen-4.5.2 # tag xen-4.5.2
{ git = { name = "qemu-xen-traditional"; { git = { name = "qemu-xen-traditional";
url = git://xenbits.xen.org/qemu-xen-4.5-testing.git; url = https://xenbits.xen.org/git-http/qemu-xen-traditional.git;
rev = "dfe880e8d5fdc863ce6bbcdcaebaf918f8689cc0"; rev = "dfe880e8d5fdc863ce6bbcdcaebaf918f8689cc0";
sha256 = "14fxdsnkq729z5glkifdpz26idmn7fl38w1v97xj8cf6ifvk76cz"; sha256 = "07jwpxgk9ls5hma6vv1frnx1aczlvpddlgiyii9qmmlxxwjs21yj";
}; };
} }
{ git = { name = "xen-libhvm"; { git = { name = "xen-libhvm";
url = "https://github.com/ts468/xen-libhvm"; url = https://github.com/ts468/xen-libhvm;
rev = "442dcc4f6f4e374a51e4613532468bd6b48bdf63"; rev = "442dcc4f6f4e374a51e4613532468bd6b48bdf63";
sha256 = "9ba97c39a00a54c154785716aa06691d312c99be498ebbc00dc3769968178ba8"; sha256 = "9ba97c39a00a54c154785716aa06691d312c99be498ebbc00dc3769968178ba8";
}; };

View File

@ -1,17 +1,19 @@
{stdenv, fetchurl, cmake, pkgconfig { stdenv, fetchurl, cmake, pkgconfig
, libXrender, renderproto, gtk, libwnck, pango, cairo , libXrender, renderproto, gtk, libwnck, pango, cairo
, GConf, libXdamage, damageproto, libxml2, libxslt, glibmm , GConf, libXdamage, damageproto, libxml2, libxslt, glibmm
, metacity , metacity
, libstartup_notification, libpthreadstubs, libxcb, intltool , libstartup_notification, libpthreadstubs, libxcb, intltool
, ORBit2, libXau, libICE, libSM , ORBit2, libXau, libICE, libSM
, dbus, dbus_glib, librsvg, mesa , dbus, dbus_glib, librsvg, mesa
, libXdmcp, libnotify, python , libXdmcp, libnotify, pythonPackages
, hicolor_icon_theme, libjpeg_turbo, libsigcxx, protobuf, pygtk, pythonDBus , hicolor_icon_theme, libjpeg_turbo, libsigcxx, protobuf
, xdg_utils , xdg_utils
, gettext, boost, pyrex , gettext, boost, pyrex
, makeWrapper , makeWrapper
}: }:
let let
inherit (pythonPackages) python dbus-python pygtk;
s = # Generated upstream information s = # Generated upstream information
rec { rec {
baseName="compiz"; baseName="compiz";
@ -29,7 +31,7 @@ let
ORBit2 libXau libICE libSM ORBit2 libXau libICE libSM
dbus dbus_glib librsvg mesa dbus dbus_glib librsvg mesa
libXdmcp libnotify python libXdmcp libnotify python
hicolor_icon_theme libjpeg_turbo libsigcxx protobuf pygtk pythonDBus hicolor_icon_theme libjpeg_turbo libsigcxx protobuf pygtk dbus-python
xdg_utils xdg_utils
gettext boost pyrex gettext boost pyrex
makeWrapper makeWrapper

View File

@ -1,13 +1,13 @@
{ stdenv, fetchFromGitHub, bash, which }: { stdenv, fetchFromGitHub, bash, which, withFont ? "" }:
stdenv.mkDerivation rec { stdenv.mkDerivation rec {
version = "0.7.0"; version = "0.8.0";
name = "nerdfonts-${version}"; name = "nerdfonts-${version}";
src = fetchFromGitHub { src = fetchFromGitHub {
owner = "ryanoasis"; owner = "ryanoasis";
repo = "nerd-fonts"; repo = "nerd-fonts";
rev = version; rev = version;
sha256 = "0q2h8hpkbid8idi2kvzx5bnhyh65y51k02g7xpv3drjqj08cz7y0"; sha256 = "0n7idfk4460j8g0rw73hzz195pdh4c916hpc5r6dxpvgcmvryzc5";
}; };
dontPatchShebangs = true; dontPatchShebangs = true;
buildInputs = [ which ]; buildInputs = [ which ];
@ -17,7 +17,7 @@ stdenv.mkDerivation rec {
''; '';
installPhase = '' installPhase = ''
mkdir -p $out/share/fonts/truetype mkdir -p $out/share/fonts/truetype
./install.sh ./install.sh ${withFont}
''; '';
meta = with stdenv.lib; { meta = with stdenv.lib; {
description = "Nerd Fonts is a project that attempts to patch as many developer targeted and/or used fonts as possible. The patch is to specifically add a high number of additional glyphs from popular 'iconic fonts' such as Font Awesome, Devicons, Octicons, and others."; description = "Nerd Fonts is a project that attempts to patch as many developer targeted and/or used fonts as possible. The patch is to specifically add a high number of additional glyphs from popular 'iconic fonts' such as Font Awesome, Devicons, Octicons, and others.";

View File

@ -8,7 +8,7 @@ stdenv.mkDerivation rec {
}; };
buildInputs = [ makeWrapper pkgconfig efl python2Packages.python python2Packages.wrapPython dbus ]; buildInputs = [ makeWrapper pkgconfig efl python2Packages.python python2Packages.wrapPython dbus ];
pythonPath = [ python2Packages.pythonefl python2Packages.dbus elementary ]; pythonPath = [ python2Packages.pythonefl python2Packages.dbus-python elementary ];
postInstall = '' postInstall = ''
wrapPythonPrograms wrapPythonPrograms
''; '';

View File

@ -17,7 +17,7 @@ stdenv.mkDerivation rec {
gst_all_1.gst-libav libpulseaudio libsndfile xorg.libXcursor xorg.printproto gst_all_1.gst-libav libpulseaudio libsndfile xorg.libXcursor xorg.printproto
xorg.libX11 udev utillinux systemd ]; xorg.libX11 udev utillinux systemd ];
propagatedBuildInputs = [ libxkbcommon python27Packages.dbus dbus libjpeg xorg.libXcomposite propagatedBuildInputs = [ libxkbcommon python27Packages.dbus-python dbus libjpeg xorg.libXcomposite
xorg.libXdamage xorg.libXinerama xorg.libXp xorg.libXtst xorg.libXi xorg.libXext xorg.libXdamage xorg.libXinerama xorg.libXp xorg.libXtst xorg.libXi xorg.libXext
bullet xorg.libXScrnSaver xorg.libXrender xorg.libXfixes xorg.libXrandr bullet xorg.libXScrnSaver xorg.libXrender xorg.libXfixes xorg.libXrandr
xorg.libxkbfile xorg.libxcb xorg.xcbutilkeysyms openjpeg doxygen expat luajit xorg.libxkbfile xorg.libxcb xorg.xcbutilkeysyms openjpeg doxygen expat luajit

View File

@ -1,8 +1,10 @@
{ stdenv, fetchurl, python, pkgconfig, libgnome, GConf, pygobject, pygtk, glib, gtk, pythonDBus, gnome_vfs}: { stdenv, fetchurl, pythonPackages, pkgconfig, libgnome, GConf, glib, gtk, gnome_vfs}:
with stdenv.lib; with stdenv.lib;
stdenv.mkDerivation rec { let
inherit (pythonPackages) python pygobject pygtk dbus-python;
in stdenv.mkDerivation rec {
version = "2.28"; version = "2.28";
name = "gnome-python-${version}.1"; name = "gnome-python-${version}.1";
@ -28,7 +30,7 @@ stdenv.mkDerivation rec {
cp bonobo/*.{py,defs} $out/share/pygtk/2.0/defs/ cp bonobo/*.{py,defs} $out/share/pygtk/2.0/defs/
''; '';
buildInputs = [ python pkgconfig pygobject pygtk glib gtk GConf libgnome pythonDBus gnome_vfs ]; buildInputs = [ python pkgconfig pygobject pygtk glib gtk GConf libgnome dbus-python gnome_vfs ];
doCheck = false; doCheck = false;

View File

@ -1,5 +1,5 @@
{ stdenv, fetchurl, pkgconfig, gnome3, gtk3, wrapGAppsHook { stdenv, fetchurl, pkgconfig, gnome3, gtk3, wrapGAppsHook
, itstool, libxml2, python3, python3Packages, pyatspi, at_spi2_core , itstool, libxml2, python3Packages, at_spi2_core
, dbus, intltool, libwnck3 }: , dbus, intltool, libwnck3 }:
stdenv.mkDerivation rec { stdenv.mkDerivation rec {
@ -11,7 +11,7 @@ stdenv.mkDerivation rec {
}; };
buildInputs = [ buildInputs = [
pkgconfig gtk3 wrapGAppsHook itstool libxml2 python3 pyatspi pkgconfig gtk3 wrapGAppsHook itstool libxml2 python3Packages.python python3Packages.pyatspi
python3Packages.pygobject3 python3Packages.ipython python3Packages.pygobject3 python3Packages.ipython
at_spi2_core dbus intltool libwnck3 gnome3.defaultIconTheme at_spi2_core dbus intltool libwnck3 gnome3.defaultIconTheme
]; ];

View File

@ -1,5 +1,5 @@
{ stdenv, intltool, fetchurl, gdk_pixbuf, tracker { stdenv, intltool, fetchurl, gdk_pixbuf, tracker
, python3, libxml2, python3Packages, libnotify, wrapGAppsHook , libxml2, python3Packages, libnotify, wrapGAppsHook
, pkgconfig, gtk3, glib, cairo , pkgconfig, gtk3, glib, cairo
, makeWrapper, itstool, gnome3, librsvg, gst_all_1 }: , makeWrapper, itstool, gnome3, librsvg, gst_all_1 }:
@ -9,9 +9,9 @@ stdenv.mkDerivation rec {
propagatedUserEnvPkgs = [ gnome3.gnome_themes_standard ]; propagatedUserEnvPkgs = [ gnome3.gnome_themes_standard ];
buildInputs = [ pkgconfig gtk3 glib intltool itstool gnome3.libmediaart buildInputs = [ pkgconfig gtk3 glib intltool itstool gnome3.libmediaart
gdk_pixbuf gnome3.defaultIconTheme librsvg python3 gdk_pixbuf gnome3.defaultIconTheme librsvg python3Packages.python
gnome3.grilo gnome3.grilo-plugins gnome3.totem-pl-parser libxml2 libnotify gnome3.grilo gnome3.grilo-plugins gnome3.totem-pl-parser libxml2 libnotify
python3Packages.pycairo python3Packages.dbus python3Packages.requests2 python3Packages.pycairo python3Packages.dbus-python python3Packages.requests2
python3Packages.pygobject3 gst_all_1.gstreamer gst_all_1.gst-plugins-base python3Packages.pygobject3 gst_all_1.gstreamer gst_all_1.gst-plugins-base
gst_all_1.gst-plugins-good gst_all_1.gst-plugins-bad wrapGAppsHook gst_all_1.gst-plugins-good gst_all_1.gst-plugins-bad wrapGAppsHook
gnome3.gsettings_desktop_schemas makeWrapper tracker ]; gnome3.gsettings_desktop_schemas makeWrapper tracker ];

View File

@ -14,7 +14,7 @@
, compiler-rt_src , compiler-rt_src
, libcxxabi , libcxxabi
, debugVersion ? false , debugVersion ? false
, enableSharedLibraries ? !stdenv.isDarwin , enableSharedLibraries ? true
}: }:
let let
@ -69,6 +69,11 @@ in stdenv.mkDerivation rec {
paxmark m bin/{lli,llvm-rtdyld} paxmark m bin/{lli,llvm-rtdyld}
''; '';
postInstall = stdenv.lib.optionalString (stdenv.isDarwin && enableSharedLibraries) ''
install_name_tool -id $out/lib/libLLVM.dylib $out/lib/libLLVM.dylib
ln -s $out/lib/libLLVM.dylib $out/lib/libLLVM-${version}.dylib
'';
enableParallelBuilding = true; enableParallelBuilding = true;
passthru.src = src; passthru.src = src;

View File

@ -1,19 +1,24 @@
{ stdenv, fetchurl, SDL, ffmpeg, frei0r, libjack2, libdv, libsamplerate { stdenv, fetchFromGitHub, makeWrapper
, libvorbis, libxml2, makeWrapper, movit, pkgconfig, qt, sox , SDL, ffmpeg, frei0r, libjack2, libdv, libsamplerate
, libvorbis, libxml2, movit, pkgconfig, sox
, gtk2
}: }:
stdenv.mkDerivation rec { stdenv.mkDerivation rec {
name = "mlt-${version}"; name = "mlt-${version}";
version = "0.9.6"; version = "6.2.0";
src = fetchurl { src = fetchFromGitHub {
url = "https://github.com/mltframework/mlt/archive/v${version}.tar.gz"; owner = "mltframework";
sha256 = "0s8ypg0q50zfcmq527y8cbdvzxhiqidm1923k28ar8jqmjp45ssh"; repo = "mlt";
rev = "v${version}";
sha256 = "17jwz1lf9ilaxvgvhg7z86dhcsk95m4wlszy4gn7wab2ns5zhdm7";
}; };
buildInputs = [ buildInputs = [
SDL ffmpeg frei0r libjack2 libdv libsamplerate libvorbis libxml2 SDL ffmpeg frei0r libjack2 libdv libsamplerate libvorbis libxml2
makeWrapper movit pkgconfig qt sox makeWrapper movit pkgconfig sox
gtk2
]; ];
# Mostly taken from: # Mostly taken from:
@ -33,7 +38,7 @@ stdenv.mkDerivation rec {
description = "Open source multimedia framework, designed for television broadcasting"; description = "Open source multimedia framework, designed for television broadcasting";
homepage = http://www.mltframework.org/; homepage = http://www.mltframework.org/;
license = licenses.gpl3; license = licenses.gpl3;
maintainers = [ maintainers.goibhniu ]; maintainers = [ maintainers.tohl ];
platforms = platforms.linux; platforms = platforms.linux;
}; };
} }

View File

@ -0,0 +1,39 @@
{ stdenv, fetchurl, SDL, ffmpeg, frei0r, libjack2, libdv, libsamplerate
, libvorbis, libxml2, makeWrapper, movit, pkgconfig, qt, sox
}:
stdenv.mkDerivation rec {
name = "mlt-${version}";
version = "0.9.6";
src = fetchurl {
url = "https://github.com/mltframework/mlt/archive/v${version}.tar.gz";
sha256 = "0s8ypg0q50zfcmq527y8cbdvzxhiqidm1923k28ar8jqmjp45ssh";
};
buildInputs = [
SDL ffmpeg frei0r libjack2 libdv libsamplerate libvorbis libxml2
makeWrapper movit pkgconfig qt sox
];
# Mostly taken from:
# http://www.kdenlive.org/user-manual/downloading-and-installing-kdenlive/installing-source/installing-mlt-rendering-engine
configureFlags = [
"--avformat-swscale" "--enable-gpl" "--enable-gpl" "--enable-gpl3"
"--enable-opengl"
];
enableParallelBuilding = true;
postInstall = ''
wrapProgram $out/bin/melt --prefix FREI0R_PATH : ${frei0r}/lib/frei0r-1
'';
meta = with stdenv.lib; {
description = "Open source multimedia framework, designed for television broadcasting";
homepage = http://www.mltframework.org/;
license = licenses.gpl3;
maintainers = [ maintainers.goibhniu ];
platforms = platforms.linux;
};
}

View File

@ -4,11 +4,11 @@
stdenv.mkDerivation rec { stdenv.mkDerivation rec {
name = "mlt-${version}"; name = "mlt-${version}";
version = "0.9.8"; version = "6.2.0";
src = fetchurl { src = fetchurl {
url = "https://github.com/mltframework/mlt/archive/v${version}.tar.gz"; url = "https://github.com/mltframework/mlt/archive/v${version}.tar.gz";
sha256 = "0x0hsb05i7g70dh3jll41qlvcylailfgsr0y1dpx7hyigynxc50j"; sha256 = "1zwzfgxrcbwkxnkiwv0a1rzxdnnaly90yyarl9wdw84nx11ffbnx";
}; };
buildInputs = [ buildInputs = [

View File

@ -3,13 +3,13 @@
stdenv.mkDerivation rec { stdenv.mkDerivation rec {
name = "protobuf-${version}"; name = "protobuf-${version}";
version = "3.0.0-beta-3.1"; version = "3.0.0";
# make sure you test also -A pythonPackages.protobuf # make sure you test also -A pythonPackages.protobuf
src = fetchFromGitHub { src = fetchFromGitHub {
owner = "google"; owner = "google";
repo = "protobuf"; repo = "protobuf";
rev = "v${version}"; rev = "v${version}";
sha256 = "1lj3q1wq821q9h2y2hhbnvyy4nw3gl0x2g0kplyvd6ivrissfcqx"; sha256 = "05qkcl96lkdama848m7q3nzzzdckjc158iiyvgmln0zi232xx7g7";
}; };
postPatch = '' postPatch = ''

View File

@ -1,7 +1,9 @@
{ stdenv, fetchurl, cmake, qtbase, pkgconfig, python, dbus_glib, dbus_daemon { stdenv, fetchurl, cmake, qtbase, pkgconfig, pythonPackages, dbus_glib, dbus_daemon
, telepathy_farstream, telepathy_glib, pythonDBus, fetchpatch }: , telepathy_farstream, telepathy_glib, fetchpatch }:
stdenv.mkDerivation rec { let
inherit (pythonPackages) python dbus-python;
in stdenv.mkDerivation rec {
name = "telepathy-qt-0.9.6.1"; name = "telepathy-qt-0.9.6.1";
src = fetchurl { src = fetchurl {
@ -30,7 +32,7 @@ stdenv.mkDerivation rec {
]; ];
nativeBuildInputs = [ cmake pkgconfig python ]; nativeBuildInputs = [ cmake pkgconfig python ];
propagatedBuildInputs = [ qtbase dbus_glib telepathy_farstream telepathy_glib pythonDBus ]; propagatedBuildInputs = [ qtbase dbus_glib telepathy_farstream telepathy_glib dbus-python ];
buildInputs = stdenv.lib.optional doCheck dbus_daemon; buildInputs = stdenv.lib.optional doCheck dbus_daemon;

View File

@ -1,8 +1,9 @@
{ stdenv, fetchurl, python, pythonPackages, qt4, pythonDBus, pkgconfig, lndir, makeWrapper }: { stdenv, fetchurl, pythonPackages, qt4, pkgconfig, lndir, makeWrapper }:
let version = "4.11.3"; let
in version = "4.11.3";
stdenv.mkDerivation { inherit (pythonPackages) python dbus-python;
in stdenv.mkDerivation {
name = "${python.libPrefix}-PyQt-x11-gpl-${version}"; name = "${python.libPrefix}-PyQt-x11-gpl-${version}";
src = fetchurl { src = fetchurl {
@ -12,7 +13,7 @@ stdenv.mkDerivation {
configurePhase = '' configurePhase = ''
mkdir -p $out mkdir -p $out
lndir ${pythonDBus} $out lndir ${dbus-python} $out
export PYTHONPATH=$PYTHONPATH:$out/lib/${python.libPrefix}/site-packages export PYTHONPATH=$PYTHONPATH:$out/lib/${python.libPrefix}/site-packages

View File

@ -1,8 +1,10 @@
{ stdenv, fetchurl, python, pkgconfig, qtbase, qtsvg, qtwebkit, sip, pythonDBus { stdenv, fetchurl, pythonPackages, pkgconfig, qtbase, qtsvg, qtwebkit
, lndir, makeWrapper, qmakeHook }: , lndir, makeWrapper, qmakeHook }:
let let
version = "5.5.1"; version = "5.5.1";
inherit (pythonPackages) python dbus-python;
sip = pythonPackages.sip_4_16;
in stdenv.mkDerivation { in stdenv.mkDerivation {
name = "${python.libPrefix}-PyQt-${version}"; name = "${python.libPrefix}-PyQt-${version}";
@ -30,7 +32,7 @@ in stdenv.mkDerivation {
runHook preConfigure runHook preConfigure
mkdir -p $out mkdir -p $out
lndir ${pythonDBus} $out lndir ${dbus-python} $out
export PYTHONPATH=$PYTHONPATH:$out/lib/${python.libPrefix}/site-packages export PYTHONPATH=$PYTHONPATH:$out/lib/${python.libPrefix}/site-packages

View File

@ -1,11 +1,11 @@
{ callPackage, python, dbus_python, intltool, makeWrapper }: { callPackage, pythonPackages, intltool, makeWrapper }:
let pkg = import ./base.nix { let pkg = import ./base.nix {
version = "3.0.1"; version = "3.0.1";
pkgName = "cdemu-client"; pkgName = "cdemu-client";
pkgSha256 = "1kg5m7npdxli93vihhp033hgkvikw5b6fm0qwgvlvdjby7njyyyg"; pkgSha256 = "1kg5m7npdxli93vihhp033hgkvikw5b6fm0qwgvlvdjby7njyyyg";
}; };
in callPackage pkg { in callPackage pkg {
buildInputs = [ python dbus_python intltool makeWrapper ]; buildInputs = [ pythonPackages.python pythonPackages.dbus-python intltool makeWrapper ];
drvParams = { drvParams = {
postFixup = '' postFixup = ''
wrapProgram $out/bin/cdemu \ wrapProgram $out/bin/cdemu \

View File

@ -1,8 +1,8 @@
{ stdenv, fetchFromGitHub, pkgconfig, python, makeWrapper { stdenv, fetchFromGitHub, pkgconfig, pythonPackages, makeWrapper
, bash, libsamplerate, libsndfile, readline, gcc , bash, libsamplerate, libsndfile, readline, gcc
# Optional Dependencies # Optional Dependencies
, dbus ? null, pythonDBus ? null, libffado ? null, alsaLib ? null , dbus ? null, libffado ? null, alsaLib ? null
, libopus ? null , libopus ? null
# Extra options # Extra options
@ -11,12 +11,13 @@
with stdenv.lib; with stdenv.lib;
let let
inherit (pythonPackages) python dbus-python;
shouldUsePkg = pkg: if pkg != null && stdenv.lib.any (x: x == stdenv.system) pkg.meta.platforms then pkg else null; shouldUsePkg = pkg: if pkg != null && stdenv.lib.any (x: x == stdenv.system) pkg.meta.platforms then pkg else null;
libOnly = prefix == "lib"; libOnly = prefix == "lib";
optDbus = shouldUsePkg dbus; optDbus = shouldUsePkg dbus;
optPythonDBus = if libOnly then null else shouldUsePkg pythonDBus; optPythonDBus = if libOnly then null else shouldUsePkg dbus-python;
optLibffado = if libOnly then null else shouldUsePkg libffado; optLibffado = if libOnly then null else shouldUsePkg libffado;
optAlsaLib = if libOnly then null else shouldUsePkg alsaLib; optAlsaLib = if libOnly then null else shouldUsePkg alsaLib;
optLibopus = shouldUsePkg libopus; optLibopus = shouldUsePkg libopus;

View File

@ -1,8 +1,8 @@
{ stdenv, fetchFromGitHub, pkgconfig, python, makeWrapper { stdenv, fetchFromGitHub, pkgconfig, pythonPackages, makeWrapper
, bash, libsamplerate, libsndfile, readline , bash, libsamplerate, libsndfile, readline
# Optional Dependencies # Optional Dependencies
, dbus ? null, pythonDBus ? null, libffado ? null, alsaLib ? null , dbus ? null, libffado ? null, alsaLib ? null
, libopus ? null , libopus ? null
# Extra options # Extra options
@ -11,12 +11,13 @@
with stdenv.lib; with stdenv.lib;
let let
inherit (pythonPackages) python dbus-python;
shouldUsePkg = pkg: if pkg != null && stdenv.lib.any (x: x == stdenv.system) pkg.meta.platforms then pkg else null; shouldUsePkg = pkg: if pkg != null && stdenv.lib.any (x: x == stdenv.system) pkg.meta.platforms then pkg else null;
libOnly = prefix == "lib"; libOnly = prefix == "lib";
optDbus = shouldUsePkg dbus; optDbus = shouldUsePkg dbus;
optPythonDBus = if libOnly then null else shouldUsePkg pythonDBus; optPythonDBus = if libOnly then null else shouldUsePkg dbus-python;
optLibffado = if libOnly then null else shouldUsePkg libffado; optLibffado = if libOnly then null else shouldUsePkg libffado;
optAlsaLib = if libOnly then null else shouldUsePkg alsaLib; optAlsaLib = if libOnly then null else shouldUsePkg alsaLib;
optLibopus = shouldUsePkg libopus; optLibopus = shouldUsePkg libopus;

View File

@ -1,5 +1,5 @@
{ stdenv, fetchurl, pkgconfig, dbus, glib, alsaLib, python, { stdenv, fetchurl, pkgconfig, dbus, glib, alsaLib,
pythonPackages, pythonDBus, readline, libsndfile, udev, libical, pythonPackages, readline, libsndfile, udev, libical,
systemd, enableWiimote ? false }: systemd, enableWiimote ? false }:
assert stdenv.isLinux; assert stdenv.isLinux;
@ -13,10 +13,10 @@ stdenv.mkDerivation rec {
}; };
pythonPath = with pythonPackages; pythonPath = with pythonPackages;
[ pythonDBus pygobject pygobject3 recursivePthLoader ]; [ dbus pygobject pygobject3 recursivePthLoader ];
buildInputs = buildInputs =
[ pkgconfig dbus glib alsaLib python pythonPackages.wrapPython [ pkgconfig dbus glib alsaLib pythonPackages.python pythonPackages.wrapPython
readline libsndfile udev libical readline libsndfile udev libical
# Disables GStreamer; not clear what it gains us other than a # Disables GStreamer; not clear what it gains us other than a
# zillion extra dependencies. # zillion extra dependencies.

View File

@ -1,10 +1,12 @@
{ stdenv, fetchurl, pkgconfig, dbus, glib, alsaLib, python, { stdenv, fetchurl, pkgconfig, dbus, glib, alsaLib,
pythonPackages, pythonDBus, readline, libsndfile, udev, libical, pythonPackages, readline, libsndfile, udev, libical,
systemd, enableWiimote ? false }: systemd, enableWiimote ? false }:
assert stdenv.isLinux; assert stdenv.isLinux;
stdenv.mkDerivation rec { let
inherit (pythonPackages) python;
in stdenv.mkDerivation rec {
name = "bluez-5.28"; name = "bluez-5.28";
src = fetchurl { src = fetchurl {
@ -13,7 +15,7 @@ stdenv.mkDerivation rec {
}; };
pythonPath = with pythonPackages; pythonPath = with pythonPackages;
[ pythonDBus pygobject pygobject3 recursivePthLoader ]; [ dbus pygobject pygobject3 recursivePthLoader ];
buildInputs = buildInputs =
[ pkgconfig dbus glib alsaLib python pythonPackages.wrapPython [ pkgconfig dbus glib alsaLib python pythonPackages.wrapPython

View File

@ -1,14 +1,13 @@
{ stdenv, fetchurl, pkgconfig, dbus, glib, libusb, alsaLib, python, makeWrapper { stdenv, fetchurl, pkgconfig, dbus, glib, libusb, alsaLib, pythonPackages, makeWrapper
, pythonDBus, pygobject, readline, libsndfile }: , readline, libsndfile }:
assert stdenv.isLinux; assert stdenv.isLinux;
let let
pythonpath = "${pythonDBus}/lib/${python.libPrefix}/site-packages:" inherit (pythonPackages) python;
+ "${pygobject}/lib/${python.libPrefix}/site-packages"; pythonpath = "${pythonPackages.dbus}/lib/${python.libPrefix}/site-packages:"
in + "${pythonPackages.pygobject}/lib/${python.libPrefix}/site-packages";
in stdenv.mkDerivation rec {
stdenv.mkDerivation rec {
name = "bluez-4.101"; name = "bluez-4.101";
src = fetchurl { src = fetchurl {

View File

@ -3,7 +3,7 @@
# Optional dependencies # Optional dependencies
, libjack2 ? null, dbus ? null, dbus_cplusplus ? null, alsaLib ? null , libjack2 ? null, dbus ? null, dbus_cplusplus ? null, alsaLib ? null
, pyqt4 ? null, pythonDBus ? null, xdg_utils ? null , pyqt4 ? null, dbus-python ? null, xdg_utils ? null
# Other Flags # Other Flags
, prefix ? "" , prefix ? ""
@ -20,7 +20,7 @@ let
optDbus_cplusplus = shouldUsePkg dbus_cplusplus; optDbus_cplusplus = shouldUsePkg dbus_cplusplus;
optAlsaLib = shouldUsePkg alsaLib; optAlsaLib = shouldUsePkg alsaLib;
optPyqt4 = shouldUsePkg pyqt4; optPyqt4 = shouldUsePkg pyqt4;
optPythonDBus = shouldUsePkg pythonDBus; optPythonDBus = shouldUsePkg dbus-python;
optXdg_utils = shouldUsePkg xdg_utils; optXdg_utils = shouldUsePkg xdg_utils;
in in
stdenv.mkDerivation rec { stdenv.mkDerivation rec {

View File

@ -5,11 +5,11 @@
stdenv.mkDerivation rec { stdenv.mkDerivation rec {
name = "gradm-${version}"; name = "gradm-${version}";
version = "3.1-201607172312"; version = "3.1-201608131257";
src = fetchurl { src = fetchurl {
url = "http://grsecurity.net/stable/${name}.tar.gz"; url = "http://grsecurity.net/stable/${name}.tar.gz";
sha256 = "1r3fbrfijj8mbh3gl489q5bj2srj35f9f96i04nfmw427qpcg0a2"; sha256 = "0y5565rhil5ciprwz7nx4s4ah7dsxx7zrkg42dbq0mcg8m316xrb";
}; };
nativeBuildInputs = [ bison flex ]; nativeBuildInputs = [ bison flex ];

View File

@ -0,0 +1,25 @@
{ stdenv, fetchurl }:
stdenv.mkDerivation rec {
name = "hd-idle-1.05";
src = fetchurl {
url = "mirror://sourceforge/project/hd-idle/${name}.tgz";
sha256 = "031sm996s0rhy3z91b9xvyimsj2yd2fhsww2al2hxda5s5wzxzjf";
};
prePatch = ''
substituteInPlace Makefile \
--replace "-g root -o root" ""
'';
installFlags = [ "TARGET_DIR=$(out)" ];
meta = with stdenv.lib; {
description = "Spins down external disks after a period of idle time";
homepage = http://hd-idle.sourceforge.net/;
license = licenses.gpl2Plus;
platforms = platforms.linux;
maintainers = [ maintainers.rycee ];
};
}

View File

@ -13,6 +13,8 @@ GRKERNSEC_CONFIG_VIRT_EPT y
GRKERNSEC_CONFIG_VIRT_KVM y GRKERNSEC_CONFIG_VIRT_KVM y
GRKERNSEC_CONFIG_PRIORITY_SECURITY y GRKERNSEC_CONFIG_PRIORITY_SECURITY y
PAX_SOFTMODE y
PAX_PT_PAX_FLAGS y PAX_PT_PAX_FLAGS y
PAX_XATTR_PAX_FLAGS y PAX_XATTR_PAX_FLAGS y
PAX_EI_PAX n PAX_EI_PAX n
@ -20,7 +22,7 @@ PAX_EI_PAX n
GRKERNSEC_PROC_GID 0 GRKERNSEC_PROC_GID 0
PAX_LATENT_ENTROPY n PAX_LATENT_ENTROPY n
PAX_SIZE_OVERFLOW n
GRKERNSEC_HIDESYM n GRKERNSEC_HIDESYM n
GRKERNSEC_RANDSTRUCT n GRKERNSEC_RANDSTRUCT n
GRKERNSEC_PROC n GRKERNSEC_PROC n

View File

@ -1,12 +1,12 @@
{ stdenv, fetchurl, perl, buildLinux, ... } @ args: { stdenv, fetchurl, perl, buildLinux, ... } @ args:
import ./generic.nix (args // rec { import ./generic.nix (args // rec {
version = "4.1.27"; version = "4.1.30";
extraMeta.branch = "4.1"; extraMeta.branch = "4.1";
src = fetchurl { src = fetchurl {
url = "mirror://kernel/linux/kernel/v4.x/linux-${version}.tar.xz"; url = "mirror://kernel/linux/kernel/v4.x/linux-${version}.tar.xz";
sha256 = "02gkmn3j15wih6aq94p6mbivv996lr7zcj6vz4wh8wr7wmmy1kmv"; sha256 = "1iljmpr3b07fwhzzxkmx0pqz6ja8cnkx4fv52glcjrp6rjpfl8lx";
}; };
kernelPatches = args.kernelPatches; kernelPatches = args.kernelPatches;

View File

@ -1,12 +1,12 @@
{ stdenv, fetchurl, perl, buildLinux, ... } @ args: { stdenv, fetchurl, perl, buildLinux, ... } @ args:
import ./generic.nix (args // rec { import ./generic.nix (args // rec {
version = "4.4.17"; version = "4.4.18";
extraMeta.branch = "4.4"; extraMeta.branch = "4.4";
src = fetchurl { src = fetchurl {
url = "mirror://kernel/linux/kernel/v4.x/linux-${version}.tar.xz"; url = "mirror://kernel/linux/kernel/v4.x/linux-${version}.tar.xz";
sha256 = "10ags1n345irx1bi3fyal326b3m5myndz19v0klbvxhd3i3m350m"; sha256 = "0b2pna9l8hl2dc07faii3i0ixy382476pmh50wl1j8v1bz50rfg6";
}; };
kernelPatches = args.kernelPatches; kernelPatches = args.kernelPatches;

View File

@ -1,12 +1,12 @@
{ stdenv, fetchurl, perl, buildLinux, ... } @ args: { stdenv, fetchurl, perl, buildLinux, ... } @ args:
import ./generic.nix (args // rec { import ./generic.nix (args // rec {
version = "4.6.6"; version = "4.6.7";
extraMeta.branch = "4.6"; extraMeta.branch = "4.6";
src = fetchurl { src = fetchurl {
url = "mirror://kernel/linux/kernel/v4.x/linux-${version}.tar.xz"; url = "mirror://kernel/linux/kernel/v4.x/linux-${version}.tar.xz";
sha256 = "1lx00j0z0rasmc87mcvqd1h6r4znb9c2q22jbs2mrissr5w05vgm"; sha256 = "107acpq6jk48ng25jlyv905zslrrv77yxwr46mqbq5lxg8rdg7fh";
}; };
kernelPatches = args.kernelPatches; kernelPatches = args.kernelPatches;

View File

@ -1,13 +1,12 @@
{ stdenv, fetchurl, perl, buildLinux, ... } @ args: { stdenv, fetchurl, perl, buildLinux, ... } @ args:
import ./generic.nix (args // rec { import ./generic.nix (args // rec {
version = "4.7"; version = "4.7.1";
modDirVersion = "4.7.0";
extraMeta.branch = "4.7"; extraMeta.branch = "4.7";
src = fetchurl { src = fetchurl {
url = "mirror://kernel/linux/kernel/v4.x/linux-${version}.tar.xz"; url = "mirror://kernel/linux/kernel/v4.x/linux-${version}.tar.xz";
sha256 = "5190c3d1209aeda04168145bf50569dc0984f80467159b1dc50ad731e3285f10"; sha256 = "0dl1zc4xb8lwrryrpwfqmbnwciypzpah8vkhsl5nx0l3qcck6n15";
}; };
kernelPatches = args.kernelPatches; kernelPatches = args.kernelPatches;

View File

@ -1,13 +1,12 @@
{ stdenv, fetchurl, perl, buildLinux, ... } @ args: { stdenv, fetchurl, perl, buildLinux, ... } @ args:
import ./generic.nix (args // rec { import ./generic.nix (args // rec {
version = "4.7"; version = "4.7.1";
modDirVersion = "4.7.0";
extraMeta.branch = "4.7"; extraMeta.branch = "4.7";
src = fetchurl { src = fetchurl {
url = "mirror://kernel/linux/kernel/v4.x/linux-${version}.tar.xz"; url = "mirror://kernel/linux/kernel/v4.x/linux-${version}.tar.xz";
sha256 = "042z53ik3mqaqlfrn5b70kw882fwd42zanqld10s1vcs438w742i"; sha256 = "0dl1zc4xb8lwrryrpwfqmbnwciypzpah8vkhsl5nx0l3qcck6n15";
}; };
kernelPatches = args.kernelPatches; kernelPatches = args.kernelPatches;

View File

@ -93,9 +93,9 @@ rec {
grsecurity_4_4 = throw "grsecurity stable is no longer supported"; grsecurity_4_4 = throw "grsecurity stable is no longer supported";
grsecurity_testing = grsecPatch grsecurity_testing = grsecPatch
{ kver = "4.7"; { kver = "4.7.1";
grrev = "201608131240"; grrev = "201608161813";
sha256 = "0bcng47xk5nf4xwcl1l6a2nfb54b8v5piwg42nf3d99hy4si8fvd"; sha256 = "0ppay8gv7ml7kajbin7gclhrpkmc6pggxcbzzngm7qwdjjk5pppj";
}; };
# This patch relaxes grsec constraints on the location of usermode helpers, # This patch relaxes grsec constraints on the location of usermode helpers,

View File

@ -1,8 +1,9 @@
{stdenv, fetchurl, makeWrapper, useSetUID, dbus, libxml2, pam, pkgconfig, pmount, python, pythonDBus}: {stdenv, fetchurl, makeWrapper, useSetUID, dbus, libxml2, pam, pkgconfig, pmount, pythonPackages}:
let let
pmountBin = useSetUID pmount "/bin/pmount"; pmountBin = useSetUID pmount "/bin/pmount";
pumountBin = useSetUID pmount "/bin/pumount"; pumountBin = useSetUID pmount "/bin/pumount";
inherit (pythonPackages) python dbus-python;
in in
stdenv.mkDerivation rec { stdenv.mkDerivation rec {
@ -36,7 +37,7 @@ stdenv.mkDerivation rec {
for prog in $out/bin/pamusb-conf $out/bin/pamusb-agent; do for prog in $out/bin/pamusb-conf $out/bin/pamusb-agent; do
substituteInPlace $prog --replace '/usr/bin/env python' '/bin/python' substituteInPlace $prog --replace '/usr/bin/env python' '/bin/python'
wrapProgram $prog \ wrapProgram $prog \
--prefix PYTHONPATH : "$(toPythonPath ${pythonDBus})" --prefix PYTHONPATH : "$(toPythonPath ${dbus-python})"
done done
''; '';

View File

@ -0,0 +1,29 @@
{ stdenv, fetchurl }:
stdenv.mkDerivation rec {
name = "mattermost-${version}";
version = "3.3.0";
src = fetchurl {
url = "https://releases.mattermost.com/${version}/mattermost-team-${version}-linux-amd64.tar.gz";
sha256 = "16mp75hv4lzkj99lj18c5vyqsmk9kqk5r81hirq41fgb6bdqx509";
};
installPhase = ''
mkdir -p $out
mv * $out/
ln -s ./platform $out/bin/mattermost-platform
'';
postFixup = ''
patchelf --set-interpreter "$(cat $NIX_CC/nix-support/dynamic-linker)" $out/bin/platform
'';
meta = with stdenv.lib; {
description = "Open-Source, self-hosted Slack-alternative";
homepage = "https://www.mattermost.org";
license = with licenses; [ agpl3 asl20 ];
maintainers = with maintainers; [ fpletz ];
platforms = [ "x86_64-linux" ];
};
}

View File

@ -0,0 +1,23 @@
{ stdenv, buildGoPackage, fetchFromGitHub }:
buildGoPackage rec {
name = "matterircd-${version}";
version = "0.9.0";
src = fetchFromGitHub {
owner = "42wim";
repo = "matterircd";
rev = "v${version}";
sha256 = "1sh34vwi8ycmdsgpzqwa7gcjzb0rn46aig6n40hxy6q1lk2l6m3c";
};
goPackagePath = "github.com/42vim/matterircd";
meta = with stdenv.lib; {
inherit (src.meta) homepage;
description = "Minimal IRC server bridge to Mattermost";
license = licenses.mit;
maintainers = with maintainers; [ fpletz ];
platforms = platforms.unix;
};
}

View File

@ -9,7 +9,7 @@ stdenv.mkDerivation rec {
}; };
buildInputs = [ autoreconfHook pkgconfig systemd glib dbus libnl pythonPackages.python pythonPackages.wrapPython ]; buildInputs = [ autoreconfHook pkgconfig systemd glib dbus libnl pythonPackages.python pythonPackages.wrapPython ];
pythonPath = [ pythonPackages.pygobject pythonPackages.dbus pythonPackages.pygtk ]; pythonPath = [ pythonPackages.pygobject pythonPackages.dbus-python pythonPackages.pygtk ];
configureFlags = [ "--disable-debug" "--enable-tools" "--enable-ese" "--with-systemdsystemunitdir=$out/lib/systemd/system" ]; configureFlags = [ "--disable-debug" "--enable-tools" "--enable-ese" "--with-systemdsystemunitdir=$out/lib/systemd/system" ];

View File

@ -11,7 +11,7 @@ buildGoPackage rec {
# Generated with the `gdm2nix.rb` script and the `Godeps` file from the # Generated with the `gdm2nix.rb` script and the `Godeps` file from the
# influxdb repo root. # influxdb repo root.
goDeps = ./deps.json; goDeps = ./. + builtins.toPath "/deps-${version}.json";
meta = with lib; { meta = with lib; {
description = "An open-source distributed time series database"; description = "An open-source distributed time series database";

View File

@ -0,0 +1,155 @@
[
{
"goPackagePath": "collectd.org",
"fetch": {
"type": "git",
"url": "https://github.com/collectd/go-collectd.git",
"rev": "9fc824c70f713ea0f058a07b49a4c563ef2a3b98",
"sha256": "0kjal6bsjpnppfnlqbg7g56xwssaj2ani499yykyj817zq56hi0w"
}
},
{
"goPackagePath": "github.com/BurntSushi/toml",
"fetch": {
"type": "git",
"url": "https://github.com/BurntSushi/toml.git",
"rev": "a4eecd407cf4129fc902ece859a0114e4cf1a7f4",
"sha256": "1l74zvd534k2fs73gmaq4mgl48p1i9559k1gwq4vakca727z5sgf"
}
},
{
"goPackagePath": "github.com/bmizerany/pat",
"fetch": {
"type": "git",
"url": "https://github.com/bmizerany/pat.git",
"rev": "b8a35001b773c267eb260a691f4e5499a3531600",
"sha256": "11zxd45rvjm6cn3wzbi18wy9j4vr1r1hgg6gzlqnxffiizkycxmz"
}
},
{
"goPackagePath": "github.com/boltdb/bolt",
"fetch": {
"type": "git",
"url": "https://github.com/boltdb/bolt.git",
"rev": "2f846c3551b76d7710f159be840d66c3d064abbe",
"sha256": "0cvpcgmzlrn87jqrflwf4pciz6i25ri1r83sq7v1z9zry1ah16r5"
}
},
{
"goPackagePath": "github.com/davecgh/go-spew",
"fetch": {
"type": "git",
"url": "https://github.com/davecgh/go-spew.git",
"rev": "fc32781af5e85e548d3f1abaf0fa3dbe8a72495c",
"sha256": "1dwwd4va0qnyr256i7n8d4g24d7yyvwd0975y6v4dy06qpwir232"
}
},
{
"goPackagePath": "github.com/dgrijalva/jwt-go",
"fetch": {
"type": "git",
"url": "https://github.com/dgrijalva/jwt-go.git",
"rev": "a2c85815a77d0f951e33ba4db5ae93629a1530af",
"sha256": "1m7011hdr4qa400awbdagj2m5zwfbvhinq8p5hq7ysn14xpaq5vw"
}
},
{
"goPackagePath": "github.com/dgryski/go-bits",
"fetch": {
"type": "git",
"url": "https://github.com/dgryski/go-bits.git",
"rev": "86c69b3c986f9d40065df5bd8f765796549eef2e",
"sha256": "08i3p8lcisr88gmwvi8qdc8bgksxh5ydjspgfbi4aba9msybp78b"
}
},
{
"goPackagePath": "github.com/dgryski/go-bitstream",
"fetch": {
"type": "git",
"url": "https://github.com/dgryski/go-bitstream.git",
"rev": "27cd5973303fde7d914860be1ea4b927a6be0c92",
"sha256": "12ji4vcfy0cz12yq43cz0w1f1k4c1kg0vwpsk1iy47kc38kzdkc6"
}
},
{
"goPackagePath": "github.com/gogo/protobuf",
"fetch": {
"type": "git",
"url": "https://github.com/gogo/protobuf.git",
"rev": "74b6e9deaff6ba6da1389ec97351d337f0d08b06",
"sha256": "0045fz4bx72rikm2ggx9j1h3yrq518299qwaizrgy5jvxzj1707b"
}
},
{
"goPackagePath": "github.com/golang/snappy",
"fetch": {
"type": "git",
"url": "https://github.com/golang/snappy.git",
"rev": "5979233c5d6225d4a8e438cdd0b411888449ddab",
"sha256": "0i0pvwc2a4xgsns6mr3xbc6p0sra34qsaagd7yf7v1as0z7ydl3s"
}
},
{
"goPackagePath": "github.com/influxdata/usage-client",
"fetch": {
"type": "git",
"url": "https://github.com/influxdata/usage-client.git",
"rev": "475977e68d79883d9c8d67131c84e4241523f452",
"sha256": "0yhywablqqpd2x70rax1kf7yaw1jpvrc2gks8360cwisda57d3qy"
}
},
{
"goPackagePath": "github.com/jwilder/encoding",
"fetch": {
"type": "git",
"url": "https://github.com/jwilder/encoding.git",
"rev": "b421ab402545ef5a119f4f827784c6551d9bfc37",
"sha256": "0sjz2cl8kpni0mh0y4269k417dj06gn2y0ppi25i3wh9p4j4i4fq"
}
},
{
"goPackagePath": "github.com/kimor79/gollectd",
"fetch": {
"type": "git",
"url": "https://github.com/kimor79/gollectd.git",
"rev": "61d0deeb4ffcc167b2a1baa8efd72365692811bc",
"sha256": "0als2v4d5hlw0sqam670p3fi471ikgl3l81bp31mf3s3jssdxwfs"
}
},
{
"goPackagePath": "github.com/paulbellamy/ratecounter",
"fetch": {
"type": "git",
"url": "https://github.com/paulbellamy/ratecounter.git",
"rev": "5a11f585a31379765c190c033b6ad39956584447",
"sha256": "137p62imi91zhkjcjigdd64n7f9z6djjpsxcyifgrcxs41jj9ra0"
}
},
{
"goPackagePath": "github.com/peterh/liner",
"fetch": {
"type": "git",
"url": "https://github.com/peterh/liner.git",
"rev": "82a939e738b0ee23e84ec7a12d8e216f4d95c53f",
"sha256": "1187c1rqmh9k9ap5bz3p9hbjp3ad5hysykh58kgv5clah1jbkg04"
}
},
{
"goPackagePath": "github.com/rakyll/statik",
"fetch": {
"type": "git",
"url": "https://github.com/rakyll/statik.git",
"rev": "274df120e9065bdd08eb1120e0375e3dc1ae8465",
"sha256": "0llk7bxmk66wdiy42h32vj1jfk8zg351xq21hwhrq7gkfljghffp"
}
},
{
"goPackagePath": "golang.org/x/crypto",
"fetch": {
"type": "git",
"url": "https://github.com/golang/crypto.git",
"rev": "1f22c0103821b9390939b6776727195525381532",
"sha256": "1acy12f396sr3lrnbcnym5q72qnlign5bagving41qijzjnc219m"
}
}
]

View File

@ -0,0 +1,13 @@
{ lib, buildGoPackage, fetchFromGitHub }@args:
import ./default.nix (args // rec {
version = "1.0.0-beta3";
src = fetchFromGitHub {
owner = "influxdata";
repo = "influxdb";
rev = "v${version}";
sha256 = "1hj9wl2bfd1llc11jrv8bq18wl2y9n6fl3w6052wb530j7gsivsq";
};
})

View File

@ -74,33 +74,33 @@ let
in { in {
postgresql91 = common { postgresql91 = common {
version = "9.1.21"; version = "9.1.23";
psqlSchema = "9.1"; psqlSchema = "9.1";
sha256 = "14xkvv7ph7yh399wppqpil9lgh1vw53nyg5ynk5a8j9idw3yjvnn"; sha256 = "1mgnfm65fspkq62skfy48rjkprnxcfhydw0x3ipp4sdkngl72x3z";
}; };
postgresql92 = common { postgresql92 = common {
version = "9.2.16"; version = "9.2.18";
psqlSchema = "9.2"; psqlSchema = "9.2";
sha256 = "048vfkq58kkhcrw5vj4vplgvxia1k0lrbhbi30b2iy3bf2w4q5nj"; sha256 = "1x1mxbwqvgj9s4y8pb4vv6fmmr36z5zl3b2ggb84ckdfhvakganp";
}; };
postgresql93 = common { postgresql93 = common {
version = "9.3.12"; version = "9.3.14";
psqlSchema = "9.3"; psqlSchema = "9.3";
sha256 = "0rrf24mw68lwxjjnbbaayizhhcylwnr7ij5d60vpzl467yi9wczk"; sha256 = "1783kl0abf9az90mvs08pdh63d33cv2njc1q515zz89bqkqj4hsw";
}; };
postgresql94 = common { postgresql94 = common {
version = "9.4.7"; version = "9.4.9";
psqlSchema = "9.4"; psqlSchema = "9.4";
sha256 = "1q41bwwa4x1ff2qzlrsfia25ys5gfrihbqwib1z6j3mk6mn5wyfc"; sha256 = "1jg1l6vrfwhfyqrx07bgcpqxb5zcp8zwm8qd2vcj0k11j0pac861";
}; };
postgresql95 = common { postgresql95 = common {
version = "9.5.3"; version = "9.5.4";
psqlSchema = "9.5"; psqlSchema = "9.5";
sha256 = "1d500d2qsdzysnis6qi84xchnz5xh8kx8sjfmkbsijwaqlfw11bk"; sha256 = "1l3fqxlpxgl6nrcd4h6lpi2hsiv56yg83n3xrn704rmdch8mfpng";
}; };

View File

@ -30,7 +30,7 @@ in buildPythonApplication rec {
]; ];
propagatedBuildInputs = with pythonPackages; [ propagatedBuildInputs = with pythonPackages; [
pillow pygtk pygobject rencode pycrypto cryptography pycups lz4 dbus pillow pygtk pygobject rencode pycrypto cryptography pycups lz4 dbus-python
]; ];
preBuild = '' preBuild = ''

View File

@ -1,5 +1,5 @@
{ stdenv, fetchurl, autoreconfHook, intltool { stdenv, fetchurl, autoreconfHook, intltool
, python, wrapPython, mpd, pygtk, dbus, pynotify , pythonPackages, pythonFull
}: }:
stdenv.mkDerivation rec { stdenv.mkDerivation rec {
@ -11,9 +11,9 @@ stdenv.mkDerivation rec {
sha256 = "0zdmamj2ldhr6y3s464w8y2x3yizda784jnlrg3j3myfabssisvz"; sha256 = "0zdmamj2ldhr6y3s464w8y2x3yizda784jnlrg3j3myfabssisvz";
}; };
buildInputs = [ intltool autoreconfHook ]; buildInputs = [ intltool autoreconfHook pythonPackages.wrapPython ];
propagatedBuildInputs = [ python wrapPython ]; propagatedBuildInputs = with pythonPackages; [ pythonFull pygtk dbus-python ];
pythonPath = [ mpd pygtk dbus pynotify ]; pythonPath = with pythonPackages; [ mpd pygtk dbus-python notify ];
postInstall = "wrapPythonPrograms"; postInstall = "wrapPythonPrograms";
meta = with stdenv.lib; { meta = with stdenv.lib; {

View File

@ -1,8 +1,8 @@
{ stdenv, fetchFromGitHub, zfs, mbuffer, perl, perlPackages, wget, autoconf, automake }: { stdenv, fetchFromGitHub, zfs, mbuffer, perl, perlPackages, wget, autoconf, automake }:
let let
version = "0.15.5"; version = "0.15.7";
checksum = "09cf9n5i1wxlkhq8ky9npg1a6qiz4blizhbb9390gy0m0wl9l7zw"; checksum = "1xb94kxfq9sm3g0s6wpyyz6h2aihgca5gyybg0a5r8sar7yz97j0";
in in
stdenv.mkDerivation rec { stdenv.mkDerivation rec {
name = "znapzend-${version}"; name = "znapzend-${version}";

View File

@ -24,7 +24,7 @@ in stdenv.mkDerivation rec {
sed -i 's,CDLL(",CDLL("${libpulseaudio}/lib/,g' blueman/main/PulseAudioUtils.py sed -i 's,CDLL(",CDLL("${libpulseaudio}/lib/,g' blueman/main/PulseAudioUtils.py
''; '';
pythonPath = with pythonPackages; [ dbus pygobject3 ]; pythonPath = with pythonPackages; [ dbus-python pygobject3 ];
propagatedUserEnvPkgs = [ obex_data_server dconf ]; propagatedUserEnvPkgs = [ obex_data_server dconf ];

View File

@ -26,7 +26,7 @@ in stdenv.mkDerivation rec {
]; ];
pythonPath = with pythonPackages; pythonPath = with pythonPackages;
[ pycups pycurl dbus pygobject3 requests2 ]; [ pycups pycurl dbus-python pygobject3 requests2 ];
configureFlags = configureFlags =
[ "--with-udev-rules" [ "--with-udev-rules"

View File

@ -15,7 +15,7 @@ stdenv.mkDerivation rec {
buildInputs = [ buildInputs = [
pythonPackages.python pythonPackages.python
pythonPackages.dbus pythonPackages.dbus-python
pythonPackages.pygobject pythonPackages.pygobject
pythonPackages.pygtk pythonPackages.pygtk
pythonPackages.notify pythonPackages.notify

View File

@ -4,7 +4,7 @@
, locale ? "C" }: , locale ? "C" }:
let let
inherit (pythonPackages) python pygobject dbus pyGtkGlade pycairo; inherit (pythonPackages) python pygobject dbus-python pyGtkGlade pycairo;
in stdenv.mkDerivation rec { in stdenv.mkDerivation rec {
name = "wicd-${version}"; name = "wicd-${version}";
version = "1.7.2.4"; version = "1.7.2.4";
@ -38,15 +38,15 @@ in stdenv.mkDerivation rec {
substituteInPlace in/scripts=wicd.in --subst-var-by TEMPLATE-DEFAULT $out/share/other/dhclient.conf.template.default substituteInPlace in/scripts=wicd.in --subst-var-by TEMPLATE-DEFAULT $out/share/other/dhclient.conf.template.default
sed -i "2iexport PATH=${python}/bin:${wpa_supplicant}/sbin:${dhcpcd}/sbin:${dhcp}/sbin:${wirelesstools}/sbin:${nettools}/sbin:${nettools}/bin:${iputils}/bin:${openresolv}/sbin:${iproute}/sbin\$\{PATH:+:\}\$PATH" in/scripts=wicd.in sed -i "2iexport PATH=${python}/bin:${wpa_supplicant}/sbin:${dhcpcd}/sbin:${dhcp}/sbin:${wirelesstools}/sbin:${nettools}/sbin:${nettools}/bin:${iputils}/bin:${openresolv}/sbin:${iproute}/sbin\$\{PATH:+:\}\$PATH" in/scripts=wicd.in
sed -i "3iexport PYTHONPATH=$(toPythonPath $out):$(toPythonPath ${pygobject}):$(toPythonPath ${dbus})\$\{PYTHONPATH:+:\}\$PYTHONPATH" in/scripts=wicd.in sed -i "3iexport PYTHONPATH=$(toPythonPath $out):$(toPythonPath ${pygobject}):$(toPythonPath ${dbus-python})\$\{PYTHONPATH:+:\}\$PYTHONPATH" in/scripts=wicd.in
sed -i "2iexport PATH=${python}/bin\$\{PATH:+:\}\$PATH" in/scripts=wicd-client.in sed -i "2iexport PATH=${python}/bin\$\{PATH:+:\}\$PATH" in/scripts=wicd-client.in
sed -i "3iexport PYTHONPATH=$(toPythonPath $out):$(toPythonPath ${pyGtkGlade})/gtk-2.0:$(toPythonPath ${pygobject}):$(toPythonPath ${pygobject})/gtk-2.0:$(toPythonPath ${pycairo}):$(toPythonPath ${dbus})\$\{PYTHONPATH:+:\}\$PYTHONPATH" in/scripts=wicd-client.in sed -i "3iexport PYTHONPATH=$(toPythonPath $out):$(toPythonPath ${pyGtkGlade})/gtk-2.0:$(toPythonPath ${pygobject}):$(toPythonPath ${pygobject})/gtk-2.0:$(toPythonPath ${pycairo}):$(toPythonPath ${dbus-python})\$\{PYTHONPATH:+:\}\$PYTHONPATH" in/scripts=wicd-client.in
sed -i "2iexport PATH=${python}/bin\$\{PATH:+:\}\$PATH" in/scripts=wicd-gtk.in sed -i "2iexport PATH=${python}/bin\$\{PATH:+:\}\$PATH" in/scripts=wicd-gtk.in
sed -i "3iexport PYTHONPATH=$(toPythonPath $out):$(toPythonPath ${pyGtkGlade})/gtk-2.0:$(toPythonPath ${pygobject}):$(toPythonPath ${pygobject})/gtk-2.0:$(toPythonPath ${pycairo}):$(toPythonPath ${dbus}):$(toPythonPath ${pythonPackages.notify})\$\{PYTHONPATH:+:\}\$PYTHONPATH" in/scripts=wicd-gtk.in sed -i "3iexport PYTHONPATH=$(toPythonPath $out):$(toPythonPath ${pyGtkGlade})/gtk-2.0:$(toPythonPath ${pygobject}):$(toPythonPath ${pygobject})/gtk-2.0:$(toPythonPath ${pycairo}):$(toPythonPath ${dbus-python}):$(toPythonPath ${pythonPackages.notify})\$\{PYTHONPATH:+:\}\$PYTHONPATH" in/scripts=wicd-gtk.in
sed -i "2iexport PATH=${python}/bin\$\{PATH:+:\}\$PATH" in/scripts=wicd-cli.in sed -i "2iexport PATH=${python}/bin\$\{PATH:+:\}\$PATH" in/scripts=wicd-cli.in
sed -i "3iexport PYTHONPATH=$(toPythonPath $out):$(toPythonPath ${pyGtkGlade})/gtk-2.0:$(toPythonPath ${pygobject}):$(toPythonPath ${pycairo}):$(toPythonPath ${dbus})\$\{PYTHONPATH:+:\}\$PYTHONPATH" in/scripts=wicd-cli.in sed -i "3iexport PYTHONPATH=$(toPythonPath $out):$(toPythonPath ${pyGtkGlade})/gtk-2.0:$(toPythonPath ${pygobject}):$(toPythonPath ${pycairo}):$(toPythonPath ${dbus-python})\$\{PYTHONPATH:+:\}\$PYTHONPATH" in/scripts=wicd-cli.in
sed -i "2iexport PATH=${python}/bin\$\{PATH:+:\}\$PATH" in/scripts=wicd-curses.in sed -i "2iexport PATH=${python}/bin\$\{PATH:+:\}\$PATH" in/scripts=wicd-curses.in
sed -i "3iexport PYTHONPATH=$(toPythonPath $out):$(toPythonPath ${pyGtkGlade})/gtk-2.0:$(toPythonPath ${pygobject}):$(toPythonPath ${pycairo}):$(toPythonPath ${dbus}):$(toPythonPath ${pythonPackages.urwid}):$(toPythonPath ${pythonPackages.curses})\$\{PYTHONPATH:+:\}\$PYTHONPATH" in/scripts=wicd-curses.in sed -i "3iexport PYTHONPATH=$(toPythonPath $out):$(toPythonPath ${pyGtkGlade})/gtk-2.0:$(toPythonPath ${pygobject}):$(toPythonPath ${pycairo}):$(toPythonPath ${dbus-python}):$(toPythonPath ${pythonPackages.urwid}):$(toPythonPath ${pythonPackages.curses})\$\{PYTHONPATH:+:\}\$PYTHONPATH" in/scripts=wicd-curses.in
rm po/ast.po rm po/ast.po
''; '';

View File

@ -843,14 +843,7 @@ in
mpdcron = callPackage ../tools/audio/mpdcron { }; mpdcron = callPackage ../tools/audio/mpdcron { };
mpdris2 = callPackage ../tools/audio/mpdris2 { mpdris2 = callPackage ../tools/audio/mpdris2 { };
python = pythonFull;
wrapPython = pythonPackages.wrapPython;
mpd = pythonPackages.mpd;
pygtk = pythonPackages.pygtk;
dbus = pythonPackages.dbus;
pynotify = pythonPackages.notify;
};
playerctl = callPackage ../tools/audio/playerctl { }; playerctl = callPackage ../tools/audio/playerctl { };
@ -3188,8 +3181,6 @@ in
pwnat = callPackage ../tools/networking/pwnat { }; pwnat = callPackage ../tools/networking/pwnat { };
pyatspi = python3Packages.pyatspi;
pycangjie = pythonPackages.pycangjie; pycangjie = pythonPackages.pycangjie;
pydb = callPackage ../development/tools/pydb { }; pydb = callPackage ../development/tools/pydb { };
@ -3198,8 +3189,6 @@ in
pystringtemplate = callPackage ../development/python-modules/stringtemplate { }; pystringtemplate = callPackage ../development/python-modules/stringtemplate { };
pythonDBus = self.dbus_python;
pythonIRClib = pythonPackages.pythonIRClib; pythonIRClib = pythonPackages.pythonIRClib;
pythonSexy = callPackage ../development/python-modules/libsexy { }; pythonSexy = callPackage ../development/python-modules/libsexy { };
@ -3524,9 +3513,7 @@ in
sonarr = callPackage ../servers/sonarr { }; sonarr = callPackage ../servers/sonarr { };
sonata = callPackage ../applications/audio/sonata { sonata = callPackage ../applications/audio/sonata { };
inherit (python3Packages) buildPythonApplication python isPy3k dbus pygobject3 mpd2;
};
sparsehash = callPackage ../development/libraries/sparsehash { }; sparsehash = callPackage ../development/libraries/sparsehash { };
@ -3756,6 +3743,8 @@ in
tracefilesim = callPackage ../development/tools/analysis/garcosim/tracefilesim { }; tracefilesim = callPackage ../development/tools/analysis/garcosim/tracefilesim { };
translate-shell = callPackage ../applications/misc/translate-shell { };
trash-cli = callPackage ../tools/misc/trash-cli { }; trash-cli = callPackage ../tools/misc/trash-cli { };
trickle = callPackage ../tools/networking/trickle {}; trickle = callPackage ../tools/networking/trickle {};
@ -7070,7 +7059,6 @@ in
dbus_cplusplus = callPackage ../development/libraries/dbus-cplusplus { }; dbus_cplusplus = callPackage ../development/libraries/dbus-cplusplus { };
dbus_glib = callPackage ../development/libraries/dbus-glib { }; dbus_glib = callPackage ../development/libraries/dbus-glib { };
dbus_java = callPackage ../development/libraries/java/dbus-java { }; dbus_java = callPackage ../development/libraries/java/dbus-java { };
dbus_python = self.pythonPackages.dbus;
dbus-sharp-1_0 = callPackage ../development/libraries/dbus-sharp/dbus-sharp-1.0.nix { }; dbus-sharp-1_0 = callPackage ../development/libraries/dbus-sharp/dbus-sharp-1.0.nix { };
dbus-sharp-2_0 = callPackage ../development/libraries/dbus-sharp { }; dbus-sharp-2_0 = callPackage ../development/libraries/dbus-sharp { };
@ -8743,7 +8731,9 @@ in
withGUI = false; withGUI = false;
}; };
mlt-qt4 = callPackage ../development/libraries/mlt { mlt = callPackage ../development/libraries/mlt {};
mlt-qt4 = callPackage ../development/libraries/mlt/qt-4.nix {
ffmpeg = ffmpeg_2; ffmpeg = ffmpeg_2;
qt = qt4; qt = qt4;
}; };
@ -10273,6 +10263,9 @@ in
mailman = callPackage ../servers/mail/mailman { }; mailman = callPackage ../servers/mail/mailman { };
mattermost = callPackage ../servers/mattermost { };
matterircd = callPackage ../servers/mattermost/matterircd.nix { };
mediatomb = callPackage ../servers/mediatomb { mediatomb = callPackage ../servers/mediatomb {
spidermonkey = spidermonkey_185; spidermonkey = spidermonkey_185;
}; };
@ -10411,6 +10404,8 @@ in
influxdb = (callPackage ../servers/nosql/influxdb/v0.nix { }).bin // { outputs = [ "bin" ]; }; influxdb = (callPackage ../servers/nosql/influxdb/v0.nix { }).bin // { outputs = [ "bin" ]; };
influxdb10 = (callPackage ../servers/nosql/influxdb/v1.nix { }).bin // { outputs = [ "bin" ]; };
hyperdex = callPackage ../servers/nosql/hyperdex { }; hyperdex = callPackage ../servers/nosql/hyperdex { };
mysql55 = callPackage ../servers/sql/mysql/5.5.x.nix { mysql55 = callPackage ../servers/sql/mysql/5.5.x.nix {
@ -10728,10 +10723,6 @@ in
blktrace = callPackage ../os-specific/linux/blktrace { }; blktrace = callPackage ../os-specific/linux/blktrace { };
bluez4 = lowPrio (callPackage ../os-specific/linux/bluez {
pygobject = pygobject3;
});
bluez5 = callPackage ../os-specific/linux/bluez/bluez5.nix { }; bluez5 = callPackage ../os-specific/linux/bluez/bluez5.nix { };
# Needed for LibreOffice # Needed for LibreOffice
@ -10881,7 +10872,7 @@ in
fatrace = callPackage ../os-specific/linux/fatrace { }; fatrace = callPackage ../os-specific/linux/fatrace { };
ffadoFull = callPackage ../os-specific/linux/ffado { ffadoFull = callPackage ../os-specific/linux/ffado {
inherit (pythonPackages) python pyqt4; inherit (pythonPackages) python pyqt4 dbus-python;
}; };
libffado = self.ffadoFull.override { prefix = "lib"; }; libffado = self.ffadoFull.override { prefix = "lib"; };
@ -10917,6 +10908,8 @@ in
flex = flex_2_5_35; flex = flex_2_5_35;
}; };
hd-idle = callPackage ../os-specific/linux/hd-idle { };
hdparm = callPackage ../os-specific/linux/hdparm { }; hdparm = callPackage ../os-specific/linux/hdparm { };
hibernate = callPackage ../os-specific/linux/hibernate { }; hibernate = callPackage ../os-specific/linux/hibernate { };
@ -11085,7 +11078,6 @@ in
linux_4_1 = callPackage ../os-specific/linux/kernel/linux-4.1.nix { linux_4_1 = callPackage ../os-specific/linux/kernel/linux-4.1.nix {
kernelPatches = kernelPatches =
[ kernelPatches.bridge_stp_helper [ kernelPatches.bridge_stp_helper
kernelPatches.hiddev_CVE_2016_5829
] ]
++ lib.optionals ((platform.kernelArch or null) == "mips") ++ lib.optionals ((platform.kernelArch or null) == "mips")
[ kernelPatches.mips_fpureg_emu [ kernelPatches.mips_fpureg_emu
@ -12369,6 +12361,10 @@ in
bitmeter = callPackage ../applications/audio/bitmeter { }; bitmeter = callPackage ../applications/audio/bitmeter { };
bitwig-studio = callPackage ../applications/audio/bitwig-studio {
inherit (gnome2) zenity;
};
bleachbit = callPackage ../applications/misc/bleachbit { }; bleachbit = callPackage ../applications/misc/bleachbit { };
blender = callPackage ../applications/misc/blender { blender = callPackage ../applications/misc/blender {
@ -13383,7 +13379,6 @@ in
hakuneko = callPackage ../tools/misc/hakuneko { }; hakuneko = callPackage ../tools/misc/hakuneko { };
hamster-time-tracker = callPackage ../applications/misc/hamster-time-tracker { hamster-time-tracker = callPackage ../applications/misc/hamster-time-tracker {
inherit (pythonPackages) pyxdg pygtk dbus sqlite3;
inherit (gnome) gnome_python; inherit (gnome) gnome_python;
}; };
@ -13816,7 +13811,6 @@ in
mendeley = callPackage ../applications/office/mendeley { }; mendeley = callPackage ../applications/office/mendeley { };
mercurial = callPackage ../applications/version-management/mercurial { mercurial = callPackage ../applications/version-management/mercurial {
inherit (pythonPackages) curses docutils hg-git dulwich;
inherit (darwin.apple_sdk.frameworks) ApplicationServices; inherit (darwin.apple_sdk.frameworks) ApplicationServices;
inherit (darwin) cf-private; inherit (darwin) cf-private;
guiSupport = false; # use mercurialFull to get hgk GUI guiSupport = false; # use mercurialFull to get hgk GUI
@ -13939,6 +13933,8 @@ in
ncmpcpp = callPackage ../applications/audio/ncmpcpp { }; ncmpcpp = callPackage ../applications/audio/ncmpcpp { };
ympd = callPackage ../applications/audio/ympd { };
nload = callPackage ../applications/networking/nload { }; nload = callPackage ../applications/networking/nload { };
normalize = callPackage ../applications/audio/normalize { }; normalize = callPackage ../applications/audio/normalize { };
@ -14420,12 +14416,9 @@ in
quirc = callPackage ../tools/graphics/quirc {}; quirc = callPackage ../tools/graphics/quirc {};
quodlibet = callPackage ../applications/audio/quodlibet { quodlibet = callPackage ../applications/audio/quodlibet { };
inherit (pythonPackages) mutagen;
};
quodlibet-with-gst-plugins = callPackage ../applications/audio/quodlibet { quodlibet-with-gst-plugins = callPackage ../applications/audio/quodlibet {
inherit (pythonPackages) mutagen;
withGstPlugins = true; withGstPlugins = true;
gst_plugins_bad = null; gst_plugins_bad = null;
}; };

View File

@ -191,7 +191,7 @@ in modules // {
}; };
}; };
dbus = callPackage ../development/python-modules/dbus { dbus-python = callPackage ../development/python-modules/dbus {
dbus = pkgs.dbus; dbus = pkgs.dbus;
}; };
@ -265,14 +265,11 @@ in modules // {
}; };
pyqt4 = callPackage ../development/python-modules/pyqt/4.x.nix { pyqt4 = callPackage ../development/python-modules/pyqt/4.x.nix {
pythonDBus = self.dbus;
pythonPackages = self; pythonPackages = self;
}; };
pyqt5 = pkgs.qt55.callPackage ../development/python-modules/pyqt/5.x.nix { pyqt5 = pkgs.qt55.callPackage ../development/python-modules/pyqt/5.x.nix {
sip = self.sip_4_16; pythonPackages = self;
pythonDBus = self.dbus;
python = self.python;
}; };
pyside = callPackage ../development/python-modules/pyside { }; pyside = callPackage ../development/python-modules/pyside { };
@ -14612,7 +14609,7 @@ in modules // {
sha256 = "0yjxwisxpxy3vpnqk9nw5k3db3xx6wyf6sk1px9m94s30glcq2cc"; sha256 = "0yjxwisxpxy3vpnqk9nw5k3db3xx6wyf6sk1px9m94s30glcq2cc";
}; };
propagatedBuildInputs = with self; [ appdirs pyyaml requests2 dbus emoji sleekxmpp mock ]; propagatedBuildInputs = with self; [ appdirs pyyaml requests2 dbus-python emoji sleekxmpp mock ];
meta = { meta = {
description = "A utility for sending notifications, on demand and when commands finish"; description = "A utility for sending notifications, on demand and when commands finish";
@ -17822,13 +17819,17 @@ in modules // {
psutil = buildPythonPackage rec { psutil = buildPythonPackage rec {
name = "psutil-${version}"; name = "psutil-${version}";
version = "4.3.0"; version = "3.4.2";
src = pkgs.fetchurl { src = pkgs.fetchurl {
url = "mirror://pypi/p/psutil/${name}.tar.gz"; url = "mirror://pypi/p/psutil/${name}.tar.gz";
sha256 = "1w4r09fvn6kd80m5mx4ws1wz100brkaq6hzzpwrns8cgjzjpl6c6"; sha256 = "b17fa01aa766daa388362d0eda5c215d77e03a8d37676b68971f37bf3913b725";
}; };
# Certain tests fail due to being in a chroot.
# See also the older issue: https://code.google.com/p/psutil/issues/detail?id=434
doCheck = false;
buildInputs = with self; [ mock ] ++ optionals stdenv.isDarwin [ pkgs.darwin.IOKit ]; buildInputs = with self; [ mock ] ++ optionals stdenv.isDarwin [ pkgs.darwin.IOKit ];
meta = { meta = {
@ -22457,7 +22458,7 @@ in modules // {
# error: invalid command 'test' # error: invalid command 'test'
doCheck = false; doCheck = false;
propagatedBuildInputs = with self; [ pkgs.xorg.libX11 pkgs.pythonDBus pygobject ]; propagatedBuildInputs = with self; [ pkgs.xorg.libX11 dbus-python pygobject ];
meta = { meta = {
description = "High-level, platform independent Skype API wrapper for Python"; description = "High-level, platform independent Skype API wrapper for Python";
@ -26724,7 +26725,7 @@ in modules // {
}; };
preConfigure = '' preConfigure = ''
export NIX_CFLAGS_COMPILE="$(pkg-config --cflags efl) -I${self.dbus}/include/dbus-1.0 $NIX_CFLAGS_COMPILE" export NIX_CFLAGS_COMPILE="$(pkg-config --cflags efl) -I${self.dbus-python}/include/dbus-1.0 $NIX_CFLAGS_COMPILE"
''; '';
preBuild = "${python}/bin/${python.executable} setup.py build_ext"; preBuild = "${python}/bin/${python.executable} setup.py build_ext";
installPhase= "${python}/bin/${python.executable} setup.py install --prefix=$out"; installPhase= "${python}/bin/${python.executable} setup.py install --prefix=$out";
@ -26794,7 +26795,7 @@ in modules // {
# no tests available # no tests available
doCheck = false; doCheck = false;
propagatedBuildInputs = with self; [ pygobject3 dbus ]; propagatedBuildInputs = with self; [ pygobject3 dbus-python ];
meta = { meta = {
homepage = https://github.com/ricardomv/snapper-gui; homepage = https://github.com/ricardomv/snapper-gui;