mirror of
https://github.com/NixOS/nixpkgs.git
synced 2024-11-26 08:53:21 +00:00
Merge remote-tracking branch 'upstream/master' into staging
Conflicts: pkgs/development/tools/build-managers/conan/default.nix
This commit is contained in:
commit
2fec9c6e29
@ -319,6 +319,11 @@
|
|||||||
github = "amiloradovsky";
|
github = "amiloradovsky";
|
||||||
name = "Andrew Miloradovsky";
|
name = "Andrew Miloradovsky";
|
||||||
};
|
};
|
||||||
|
aminechikhaoui = {
|
||||||
|
email = "amine.chikhaoui91@gmail.com";
|
||||||
|
github = "AmineChikhaoui";
|
||||||
|
name = "Amine Chikhaoui";
|
||||||
|
};
|
||||||
amorsillo = {
|
amorsillo = {
|
||||||
email = "andrew.morsillo@gmail.com";
|
email = "andrew.morsillo@gmail.com";
|
||||||
github = "AndrewMorsillo";
|
github = "AndrewMorsillo";
|
||||||
@ -636,11 +641,6 @@
|
|||||||
github = "calbrecht";
|
github = "calbrecht";
|
||||||
name = "Christian Albrecht";
|
name = "Christian Albrecht";
|
||||||
};
|
};
|
||||||
calrama = {
|
|
||||||
email = "moritz@ucworks.org";
|
|
||||||
github = "MoritzMaxeiner";
|
|
||||||
name = "Moritz Maxeiner";
|
|
||||||
};
|
|
||||||
calvertvl = {
|
calvertvl = {
|
||||||
email = "calvertvl@gmail.com";
|
email = "calvertvl@gmail.com";
|
||||||
github = "calvertvl";
|
github = "calvertvl";
|
||||||
@ -1038,11 +1038,6 @@
|
|||||||
github = "dtzWill";
|
github = "dtzWill";
|
||||||
name = "Will Dietz";
|
name = "Will Dietz";
|
||||||
};
|
};
|
||||||
dupgit = {
|
|
||||||
email = "olivier.delhomme@free.fr";
|
|
||||||
github = "dupgit";
|
|
||||||
name = "Olivier Delhomme";
|
|
||||||
};
|
|
||||||
dywedir = {
|
dywedir = {
|
||||||
email = "dywedir@protonmail.ch";
|
email = "dywedir@protonmail.ch";
|
||||||
github = "dywedir";
|
github = "dywedir";
|
||||||
@ -1553,6 +1548,11 @@
|
|||||||
github = "iblech";
|
github = "iblech";
|
||||||
name = "Ingo Blechschmidt";
|
name = "Ingo Blechschmidt";
|
||||||
};
|
};
|
||||||
|
idontgetoutmuch = {
|
||||||
|
email = "dominic@steinitz.org";
|
||||||
|
github = "idontgetoutmuch";
|
||||||
|
name = "Dominic Steinitz";
|
||||||
|
};
|
||||||
igsha = {
|
igsha = {
|
||||||
email = "igor.sharonov@gmail.com";
|
email = "igor.sharonov@gmail.com";
|
||||||
github = "igsha";
|
github = "igsha";
|
||||||
@ -1730,6 +1730,11 @@
|
|||||||
github = "johnazoidberg";
|
github = "johnazoidberg";
|
||||||
name = "Daniel Schäfer";
|
name = "Daniel Schäfer";
|
||||||
};
|
};
|
||||||
|
johnchildren = {
|
||||||
|
email = "john.a.children@gmail.com";
|
||||||
|
github = "johnchildren";
|
||||||
|
name = "John Children";
|
||||||
|
};
|
||||||
johnmh = {
|
johnmh = {
|
||||||
email = "johnmh@openblox.org";
|
email = "johnmh@openblox.org";
|
||||||
github = "johnmh";
|
github = "johnmh";
|
||||||
|
@ -6,11 +6,22 @@
|
|||||||
# TODO: add assert statements
|
# TODO: add assert statements
|
||||||
|
|
||||||
let
|
let
|
||||||
|
/* Remove duplicate elements from the list based on some extracted value. O(n^2) complexity.
|
||||||
|
*/
|
||||||
|
nubOn = f: list:
|
||||||
|
if list == [] then
|
||||||
|
[]
|
||||||
|
else
|
||||||
|
let
|
||||||
|
x = pkgs.lib.head list;
|
||||||
|
xs = pkgs.lib.filter (p: f x != f p) (pkgs.lib.drop 1 list);
|
||||||
|
in
|
||||||
|
[x] ++ nubOn f xs;
|
||||||
|
|
||||||
pkgs = import ./../../default.nix { };
|
pkgs = import ./../../default.nix { };
|
||||||
|
|
||||||
packagesWith = cond: return: set:
|
packagesWith = cond: return: set:
|
||||||
pkgs.lib.unique
|
nubOn (pkg: pkg.updateScript)
|
||||||
(pkgs.lib.flatten
|
(pkgs.lib.flatten
|
||||||
(pkgs.lib.mapAttrsToList
|
(pkgs.lib.mapAttrsToList
|
||||||
(name: pkg:
|
(name: pkg:
|
||||||
@ -65,7 +76,7 @@ let
|
|||||||
if package == null then
|
if package == null then
|
||||||
builtins.throw "Package with an attribute name `${name}` does not exists."
|
builtins.throw "Package with an attribute name `${name}` does not exists."
|
||||||
else if ! builtins.hasAttr "updateScript" package then
|
else if ! builtins.hasAttr "updateScript" package then
|
||||||
builtins.throw "Package with an attribute name `${name}` does have an `passthru.updateScript` defined."
|
builtins.throw "Package with an attribute name `${name}` does not have a `passthru.updateScript` attribute defined."
|
||||||
else
|
else
|
||||||
package;
|
package;
|
||||||
|
|
||||||
|
@ -382,6 +382,6 @@ fi
|
|||||||
if [ "$action" = build-vm ]; then
|
if [ "$action" = build-vm ]; then
|
||||||
cat >&2 <<EOF
|
cat >&2 <<EOF
|
||||||
|
|
||||||
Done. The virtual machine can be started by running $(echo $pathToConfig/bin/run-*-vm).
|
Done. The virtual machine can be started by running $(echo $pathToConfig/bin/run-*-vm)
|
||||||
EOF
|
EOF
|
||||||
fi
|
fi
|
||||||
|
@ -50,12 +50,7 @@ in
|
|||||||
description = ''
|
description = ''
|
||||||
If enabled, start the Resilio Sync daemon. Once enabled, you can
|
If enabled, start the Resilio Sync daemon. Once enabled, you can
|
||||||
interact with the service through the Web UI, or configure it in your
|
interact with the service through the Web UI, or configure it in your
|
||||||
NixOS configuration. Enabling the <literal>resilio</literal> service
|
NixOS configuration.
|
||||||
also installs a systemd user unit which can be used to start
|
|
||||||
user-specific copies of the daemon. Once installed, you can use
|
|
||||||
<literal>systemctl --user start resilio</literal> as your user to start
|
|
||||||
the daemon using the configuration file located at
|
|
||||||
<literal>$HOME/.config/resilio-sync/config.json</literal>.
|
|
||||||
'';
|
'';
|
||||||
};
|
};
|
||||||
|
|
||||||
|
@ -182,7 +182,7 @@ sub GrubFs {
|
|||||||
# Based on the type pull in the identifier from the system
|
# Based on the type pull in the identifier from the system
|
||||||
my ($status, @devInfo) = runCommand("@utillinux@/bin/blkid -o export @{[$fs->device]}");
|
my ($status, @devInfo) = runCommand("@utillinux@/bin/blkid -o export @{[$fs->device]}");
|
||||||
if ($status != 0) {
|
if ($status != 0) {
|
||||||
die "Failed to get blkid info for @{[$fs->mount]} on @{[$fs->device]}";
|
die "Failed to get blkid info (returned $status) for @{[$fs->mount]} on @{[$fs->device]}";
|
||||||
}
|
}
|
||||||
my @matches = join("", @devInfo) =~ m/@{[uc $fsIdentifier]}=([^\n]*)/;
|
my @matches = join("", @devInfo) =~ m/@{[uc $fsIdentifier]}=([^\n]*)/;
|
||||||
if ($#matches != 0) {
|
if ($#matches != 0) {
|
||||||
|
@ -142,7 +142,7 @@ let
|
|||||||
default = { };
|
default = { };
|
||||||
example = { mtu = "1492"; window = "524288"; };
|
example = { mtu = "1492"; window = "524288"; };
|
||||||
description = ''
|
description = ''
|
||||||
Other route options. See the symbol <literal>OPTION</literal>
|
Other route options. See the symbol <literal>OPTIONS</literal>
|
||||||
in the <literal>ip-route(8)</literal> manual page for the details.
|
in the <literal>ip-route(8)</literal> manual page for the details.
|
||||||
'';
|
'';
|
||||||
};
|
};
|
||||||
@ -191,7 +191,7 @@ let
|
|||||||
preferTempAddress = mkOption {
|
preferTempAddress = mkOption {
|
||||||
type = types.bool;
|
type = types.bool;
|
||||||
default = cfg.enableIPv6;
|
default = cfg.enableIPv6;
|
||||||
defaultText = literalExample "config.networking.enableIpv6";
|
defaultText = literalExample "config.networking.enableIPv6";
|
||||||
description = ''
|
description = ''
|
||||||
When using SLAAC prefer a temporary (IPv6) address over the EUI-64
|
When using SLAAC prefer a temporary (IPv6) address over the EUI-64
|
||||||
address for originating connections. This is used to reduce tracking.
|
address for originating connections. This is used to reduce tracking.
|
||||||
|
@ -319,8 +319,8 @@ in
|
|||||||
networkingOptions =
|
networkingOptions =
|
||||||
mkOption {
|
mkOption {
|
||||||
default = [
|
default = [
|
||||||
"-net nic,vlan=0,model=virtio"
|
"-net nic,netdev=user.0,model=virtio"
|
||||||
"-net user,vlan=0\${QEMU_NET_OPTS:+,$QEMU_NET_OPTS}"
|
"-netdev user,id=user.0,\${QEMU_NET_OPTS:+,$QEMU_NET_OPTS}"
|
||||||
];
|
];
|
||||||
type = types.listOf types.str;
|
type = types.listOf types.str;
|
||||||
description = ''
|
description = ''
|
||||||
@ -436,7 +436,7 @@ in
|
|||||||
|
|
||||||
# FIXME: Figure out how to make this work on non-x86
|
# FIXME: Figure out how to make this work on non-x86
|
||||||
virtualisation.qemu.options =
|
virtualisation.qemu.options =
|
||||||
mkIf (pkgs.stdenv.isi686 || pkgs.stdenv.isx86_64) [ "-vga std" "-usbdevice tablet" ];
|
mkIf (pkgs.stdenv.isi686 || pkgs.stdenv.isx86_64) [ "-vga std" "-usb" "-device usb-tablet,bus=usb-bus.0" ];
|
||||||
|
|
||||||
# Mount the host filesystem via 9P, and bind-mount the Nix store
|
# Mount the host filesystem via 9P, and bind-mount the Nix store
|
||||||
# of the host into our own filesystem. We use mkVMOverride to
|
# of the host into our own filesystem. We use mkVMOverride to
|
||||||
|
@ -138,8 +138,8 @@ let
|
|||||||
boulder = let
|
boulder = let
|
||||||
owner = "letsencrypt";
|
owner = "letsencrypt";
|
||||||
repo = "boulder";
|
repo = "boulder";
|
||||||
rev = "9866abab8962a591f06db457a4b84c518cc88243";
|
rev = "9c6a1f2adc4c26d925588f5ae366cfd4efb7813a";
|
||||||
version = "20170510";
|
version = "20180129";
|
||||||
|
|
||||||
in pkgs.buildGoPackage rec {
|
in pkgs.buildGoPackage rec {
|
||||||
name = "${repo}-${version}";
|
name = "${repo}-${version}";
|
||||||
@ -147,7 +147,7 @@ let
|
|||||||
src = pkgs.fetchFromGitHub {
|
src = pkgs.fetchFromGitHub {
|
||||||
name = "${name}-src";
|
name = "${name}-src";
|
||||||
inherit rev owner repo;
|
inherit rev owner repo;
|
||||||
sha256 = "170m5cjngbrm36wi7wschqw8jzs7kxpcyzmshq3pcrmcpigrhna1";
|
sha256 = "09kszswrifm9rc6idfaq0p1mz5w21as2qbc8gd5pphrq9cf9pn55";
|
||||||
};
|
};
|
||||||
|
|
||||||
postPatch = ''
|
postPatch = ''
|
||||||
@ -168,6 +168,18 @@ let
|
|||||||
cat "${snakeOilCa}/ca.pem" > test/test-ca.pem
|
cat "${snakeOilCa}/ca.pem" > test/test-ca.pem
|
||||||
'';
|
'';
|
||||||
|
|
||||||
|
# Until vendored pkcs11 is go 1.9 compatible
|
||||||
|
preBuild = ''
|
||||||
|
rm -r go/src/github.com/letsencrypt/boulder/vendor/github.com/miekg/pkcs11
|
||||||
|
'';
|
||||||
|
|
||||||
|
extraSrcs = map mkGoDep [
|
||||||
|
{ goPackagePath = "github.com/miekg/pkcs11";
|
||||||
|
rev = "6dbd569b952ec150d1425722dbbe80f2c6193f83";
|
||||||
|
sha256 = "1m8g6fx7df6hf6q6zsbyw1icjmm52dmsx28rgb0h930wagvngfwb";
|
||||||
|
}
|
||||||
|
];
|
||||||
|
|
||||||
goPackagePath = "github.com/${owner}/${repo}";
|
goPackagePath = "github.com/${owner}/${repo}";
|
||||||
buildInputs = [ pkgs.libtool ];
|
buildInputs = [ pkgs.libtool ];
|
||||||
};
|
};
|
||||||
@ -284,7 +296,11 @@ let
|
|||||||
ocsp-updater.after = [ "boulder-publisher" ];
|
ocsp-updater.after = [ "boulder-publisher" ];
|
||||||
ocsp-responder.args = "--config ${cfgDir}/ocsp-responder.json";
|
ocsp-responder.args = "--config ${cfgDir}/ocsp-responder.json";
|
||||||
ct-test-srv = {};
|
ct-test-srv = {};
|
||||||
mail-test-srv.args = "--closeFirst 5";
|
mail-test-srv.args = let
|
||||||
|
key = "${boulderSource}/test/mail-test-srv/minica-key.pem";
|
||||||
|
crt = "${boulderSource}/test/mail-test-srv/minica.pem";
|
||||||
|
in
|
||||||
|
"--closeFirst 5 --cert ${crt} --key ${key}";
|
||||||
};
|
};
|
||||||
|
|
||||||
commonPath = [ softhsm pkgs.mariadb goose boulder ];
|
commonPath = [ softhsm pkgs.mariadb goose boulder ];
|
||||||
|
@ -1,7 +1,7 @@
|
|||||||
# Test for NixOS' container support.
|
# Test for NixOS' container support.
|
||||||
|
|
||||||
import ./make-test.nix ({ pkgs, ...} : {
|
import ./make-test.nix ({ pkgs, ...} : {
|
||||||
name = "containers-bridge";
|
name = "containers-tmpfs";
|
||||||
meta = with pkgs.stdenv.lib.maintainers; {
|
meta = with pkgs.stdenv.lib.maintainers; {
|
||||||
maintainers = [ ckampka ];
|
maintainers = [ ckampka ];
|
||||||
};
|
};
|
||||||
|
@ -10,7 +10,7 @@ import ./make-test.nix ({ pkgs, ... }: {
|
|||||||
docker =
|
docker =
|
||||||
{ config, pkgs, ... }: {
|
{ config, pkgs, ... }: {
|
||||||
virtualisation = {
|
virtualisation = {
|
||||||
diskSize = 1024;
|
diskSize = 2048;
|
||||||
docker.enable = true;
|
docker.enable = true;
|
||||||
};
|
};
|
||||||
};
|
};
|
||||||
@ -21,19 +21,29 @@ import ./make-test.nix ({ pkgs, ... }: {
|
|||||||
$docker->waitForUnit("sockets.target");
|
$docker->waitForUnit("sockets.target");
|
||||||
|
|
||||||
$docker->succeed("docker load --input='${pkgs.dockerTools.examples.bash}'");
|
$docker->succeed("docker load --input='${pkgs.dockerTools.examples.bash}'");
|
||||||
$docker->succeed("docker run ${pkgs.dockerTools.examples.bash.imageName} /bin/bash --version");
|
$docker->succeed("docker run --rm ${pkgs.dockerTools.examples.bash.imageName} /bin/bash --version");
|
||||||
|
$docker->succeed("docker rmi ${pkgs.dockerTools.examples.bash.imageName}");
|
||||||
|
|
||||||
|
# Check if the nix store is correctly initialized by listing dependencies of the installed Nix binary
|
||||||
$docker->succeed("docker load --input='${pkgs.dockerTools.examples.nix}'");
|
$docker->succeed("docker load --input='${pkgs.dockerTools.examples.nix}'");
|
||||||
$docker->succeed("docker run ${pkgs.dockerTools.examples.nix.imageName} /bin/nix-store -qR ${pkgs.nix}");
|
$docker->succeed("docker run --rm ${pkgs.dockerTools.examples.nix.imageName} /bin/nix-store -qR ${pkgs.nix}");
|
||||||
|
$docker->succeed("docker rmi ${pkgs.dockerTools.examples.nix.imageName}");
|
||||||
|
|
||||||
# To test the pullImage tool
|
# To test the pullImage tool
|
||||||
$docker->succeed("docker load --input='${pkgs.dockerTools.examples.nixFromDockerHub}'");
|
$docker->succeed("docker load --input='${pkgs.dockerTools.examples.nixFromDockerHub}'");
|
||||||
$docker->succeed("docker run nixos/nix:1.11 nix-store --version");
|
$docker->succeed("docker run --rm nixos/nix:1.11 nix-store --version");
|
||||||
|
$docker->succeed("docker rmi nixos/nix:1.11");
|
||||||
|
|
||||||
# To test runAsRoot and entry point
|
# To test runAsRoot and entry point
|
||||||
$docker->succeed("docker load --input='${pkgs.dockerTools.examples.nginx}'");
|
$docker->succeed("docker load --input='${pkgs.dockerTools.examples.nginx}'");
|
||||||
$docker->succeed("docker run --name nginx -d -p 8000:80 ${pkgs.dockerTools.examples.nginx.imageName}");
|
$docker->succeed("docker run --name nginx -d -p 8000:80 ${pkgs.dockerTools.examples.nginx.imageName}");
|
||||||
$docker->waitUntilSucceeds('curl http://localhost:8000/');
|
$docker->waitUntilSucceeds('curl http://localhost:8000/');
|
||||||
$docker->succeed("docker rm --force nginx");
|
$docker->succeed("docker rm --force nginx");
|
||||||
|
$docker->succeed("docker rmi '${pkgs.dockerTools.examples.nginx.imageName}'");
|
||||||
|
|
||||||
|
# An pulled image can be used as base image
|
||||||
|
$docker->succeed("docker load --input='${pkgs.dockerTools.examples.onTopOfPulledImage}'");
|
||||||
|
$docker->succeed("docker run --rm ontopofpulledimage hello");
|
||||||
|
$docker->succeed("docker rmi ontopofpulledimage");
|
||||||
'';
|
'';
|
||||||
})
|
})
|
||||||
|
@ -20,6 +20,6 @@ import ./make-test.nix ({ lib, ... }:
|
|||||||
$machine->start;
|
$machine->start;
|
||||||
$machine->waitForUnit("grafana.service");
|
$machine->waitForUnit("grafana.service");
|
||||||
$machine->waitForOpenPort(3000);
|
$machine->waitForOpenPort(3000);
|
||||||
$machine->succeed("curl -sS http://127.0.0.1:3000/");
|
$machine->succeed("curl -sSfL http://127.0.0.1:3000/");
|
||||||
'';
|
'';
|
||||||
})
|
})
|
||||||
|
@ -43,6 +43,9 @@ let
|
|||||||
"init=${pkgs.writeScript "mini-init.sh" miniInit}"
|
"init=${pkgs.writeScript "mini-init.sh" miniInit}"
|
||||||
];
|
];
|
||||||
|
|
||||||
|
# XXX: Remove this once TSS location detection has been fixed in VirtualBox
|
||||||
|
boot.kernelPackages = pkgs.linuxPackages_4_9;
|
||||||
|
|
||||||
fileSystems."/" = {
|
fileSystems."/" = {
|
||||||
device = "vboxshare";
|
device = "vboxshare";
|
||||||
fsType = "vboxsf";
|
fsType = "vboxsf";
|
||||||
|
@ -0,0 +1,38 @@
|
|||||||
|
--- a/src/txmempool.h
|
||||||
|
+++ b/src/txmempool.h
|
||||||
|
@@ -204,7 +204,7 @@
|
||||||
|
class CompareTxMemPoolEntryByDescendantScore
|
||||||
|
{
|
||||||
|
public:
|
||||||
|
- bool operator()(const CTxMemPoolEntry& a, const CTxMemPoolEntry& b)
|
||||||
|
+ bool operator()(const CTxMemPoolEntry& a, const CTxMemPoolEntry& b) const
|
||||||
|
{
|
||||||
|
bool fUseADescendants = UseDescendantScore(a);
|
||||||
|
bool fUseBDescendants = UseDescendantScore(b);
|
||||||
|
@@ -226,7 +226,7 @@
|
||||||
|
}
|
||||||
|
|
||||||
|
// Calculate which score to use for an entry (avoiding division).
|
||||||
|
- bool UseDescendantScore(const CTxMemPoolEntry &a)
|
||||||
|
+ bool UseDescendantScore(const CTxMemPoolEntry &a) const
|
||||||
|
{
|
||||||
|
double f1 = (double)a.GetModifiedFee() * a.GetSizeWithDescendants();
|
||||||
|
double f2 = (double)a.GetModFeesWithDescendants() * a.GetTxSize();
|
||||||
|
@@ -241,7 +241,7 @@
|
||||||
|
class CompareTxMemPoolEntryByScore
|
||||||
|
{
|
||||||
|
public:
|
||||||
|
- bool operator()(const CTxMemPoolEntry& a, const CTxMemPoolEntry& b)
|
||||||
|
+ bool operator()(const CTxMemPoolEntry& a, const CTxMemPoolEntry& b) const
|
||||||
|
{
|
||||||
|
double f1 = (double)a.GetModifiedFee() * b.GetTxSize();
|
||||||
|
double f2 = (double)b.GetModifiedFee() * a.GetTxSize();
|
||||||
|
@@ -255,7 +255,7 @@
|
||||||
|
class CompareTxMemPoolEntryByEntryTime
|
||||||
|
{
|
||||||
|
public:
|
||||||
|
- bool operator()(const CTxMemPoolEntry& a, const CTxMemPoolEntry& b)
|
||||||
|
+ bool operator()(const CTxMemPoolEntry& a, const CTxMemPoolEntry& b) const
|
||||||
|
{
|
||||||
|
return a.GetTime() < b.GetTime();
|
||||||
|
}
|
@ -7,13 +7,13 @@ with stdenv.lib;
|
|||||||
stdenv.mkDerivation rec {
|
stdenv.mkDerivation rec {
|
||||||
|
|
||||||
name = "bitcoin" + (toString (optional (!withGui) "d")) + "-unlimited-" + version;
|
name = "bitcoin" + (toString (optional (!withGui) "d")) + "-unlimited-" + version;
|
||||||
version = "1.0.2.0";
|
version = "1.0.3.0";
|
||||||
|
|
||||||
src = fetchFromGitHub {
|
src = fetchFromGitHub {
|
||||||
owner = "bitcoinunlimited";
|
owner = "bitcoinunlimited";
|
||||||
repo = "bitcoinunlimited";
|
repo = "bitcoinunlimited";
|
||||||
rev = "v${version}";
|
rev = "v${version}";
|
||||||
sha256 = "17cmyns1908s2rqs0zwr05f3541nqm2pg08n2xn97g2k3yimdg5q";
|
sha256 = "0l02a7h502msrp4c02wgm7f3159ap8l61k4890vas99gq7ywxkcx";
|
||||||
};
|
};
|
||||||
|
|
||||||
nativeBuildInputs = [ pkgconfig autoreconfHook ];
|
nativeBuildInputs = [ pkgconfig autoreconfHook ];
|
||||||
@ -21,8 +21,13 @@ stdenv.mkDerivation rec {
|
|||||||
miniupnpc utillinux protobuf libevent ]
|
miniupnpc utillinux protobuf libevent ]
|
||||||
++ optionals withGui [ qt4 qrencode ];
|
++ optionals withGui [ qt4 qrencode ];
|
||||||
|
|
||||||
|
patches = [
|
||||||
|
./bitcoin-unlimited-const-comparators.patch
|
||||||
|
];
|
||||||
|
|
||||||
configureFlags = [ "--with-boost-libdir=${boost.out}/lib" ]
|
configureFlags = [ "--with-boost-libdir=${boost.out}/lib" ]
|
||||||
++ optionals withGui [ "--with-gui=qt4" ];
|
++ optionals withGui [ "--with-gui=qt4" ];
|
||||||
|
enableParallelBuilding = true;
|
||||||
|
|
||||||
meta = {
|
meta = {
|
||||||
description = "Peer-to-peer electronic cash system (Unlimited client)";
|
description = "Peer-to-peer electronic cash system (Unlimited client)";
|
||||||
|
@ -5,11 +5,11 @@
|
|||||||
with stdenv.lib;
|
with stdenv.lib;
|
||||||
stdenv.mkDerivation rec{
|
stdenv.mkDerivation rec{
|
||||||
name = "bit1" + (toString (optional (!withGui) "d")) + "-" + version;
|
name = "bit1" + (toString (optional (!withGui) "d")) + "-" + version;
|
||||||
version = "1.14.5";
|
version = "1.15.1";
|
||||||
|
|
||||||
src = fetchurl {
|
src = fetchurl {
|
||||||
url = "https://github.com/btc1/bitcoin/archive/v${version}.tar.gz";
|
url = "https://github.com/btc1/bitcoin/archive/v${version}.tar.gz";
|
||||||
sha256 = "1az6bbblh3adgcs16r9cjz8jacg6sbwfpg8zzfzkbp9h9j85ass5";
|
sha256 = "0v0g2wb4nsnhddxzb63vj2bc1mgyj05vqm5imicjfz8prvgc0si8";
|
||||||
};
|
};
|
||||||
|
|
||||||
nativeBuildInputs = [ pkgconfig autoreconfHook ];
|
nativeBuildInputs = [ pkgconfig autoreconfHook ];
|
||||||
|
@ -19,8 +19,8 @@ rec {
|
|||||||
bitcoin-xt = callPackage ./bitcoin-xt.nix { boost = boost165; withGui = true; };
|
bitcoin-xt = callPackage ./bitcoin-xt.nix { boost = boost165; withGui = true; };
|
||||||
bitcoind-xt = callPackage ./bitcoin-xt.nix { boost = boost165; withGui = false; };
|
bitcoind-xt = callPackage ./bitcoin-xt.nix { boost = boost165; withGui = false; };
|
||||||
|
|
||||||
btc1 = callPackage ./btc1.nix { withGui = true; };
|
btc1 = callPackage ./btc1.nix { boost = boost165; withGui = true; };
|
||||||
btc1d = callPackage ./btc1.nix { withGui = false; };
|
btc1d = callPackage ./btc1.nix { boost = boost165; withGui = false; };
|
||||||
|
|
||||||
cryptop = python3.pkgs.callPackage ./cryptop { };
|
cryptop = python3.pkgs.callPackage ./cryptop { };
|
||||||
|
|
||||||
@ -31,8 +31,8 @@ rec {
|
|||||||
|
|
||||||
dero = callPackage ./dero.nix { };
|
dero = callPackage ./dero.nix { };
|
||||||
|
|
||||||
dogecoin = callPackage ./dogecoin.nix { withGui = true; };
|
dogecoin = callPackage ./dogecoin.nix { boost = boost165; withGui = true; };
|
||||||
dogecoind = callPackage ./dogecoin.nix { withGui = false; };
|
dogecoind = callPackage ./dogecoin.nix { boost = boost165; withGui = false; };
|
||||||
|
|
||||||
ethsign = callPackage ./ethsign { };
|
ethsign = callPackage ./ethsign { };
|
||||||
|
|
||||||
@ -46,8 +46,8 @@ rec {
|
|||||||
litecoin = callPackage ./litecoin.nix { withGui = true; };
|
litecoin = callPackage ./litecoin.nix { withGui = true; };
|
||||||
litecoind = callPackage ./litecoin.nix { withGui = false; };
|
litecoind = callPackage ./litecoin.nix { withGui = false; };
|
||||||
|
|
||||||
memorycoin = callPackage ./memorycoin.nix { withGui = true; };
|
memorycoin = callPackage ./memorycoin.nix { boost = boost165; withGui = true; };
|
||||||
memorycoind = callPackage ./memorycoin.nix { withGui = false; };
|
memorycoind = callPackage ./memorycoin.nix { boost = boost165; withGui = false; };
|
||||||
|
|
||||||
namecoin = callPackage ./namecoin.nix { withGui = true; };
|
namecoin = callPackage ./namecoin.nix { withGui = true; };
|
||||||
namecoind = callPackage ./namecoin.nix { withGui = false; };
|
namecoind = callPackage ./namecoin.nix { withGui = false; };
|
||||||
|
@ -51,6 +51,6 @@ stdenv.mkDerivation rec{
|
|||||||
homepage = http://www.bitcoin.org/;
|
homepage = http://www.bitcoin.org/;
|
||||||
maintainers = with maintainers; [ AndersonTorres ];
|
maintainers = with maintainers; [ AndersonTorres ];
|
||||||
license = licenses.mit;
|
license = licenses.mit;
|
||||||
platforms = platforms.unix;
|
platforms = subtractLists [ "aarch64-linux" ] platforms.unix;
|
||||||
};
|
};
|
||||||
}
|
}
|
||||||
|
@ -3,14 +3,14 @@
|
|||||||
|
|
||||||
with stdenv.lib;
|
with stdenv.lib;
|
||||||
stdenv.mkDerivation rec {
|
stdenv.mkDerivation rec {
|
||||||
version = "nc0.13.0rc1";
|
version = "nc0.15.99-name-tab-beta2";
|
||||||
name = "namecoin" + toString (optional (!withGui) "d") + "-" + version;
|
name = "namecoin" + toString (optional (!withGui) "d") + "-" + version;
|
||||||
|
|
||||||
src = fetchFromGitHub {
|
src = fetchFromGitHub {
|
||||||
owner = "namecoin";
|
owner = "namecoin";
|
||||||
repo = "namecoin-core";
|
repo = "namecoin-core";
|
||||||
rev = version;
|
rev = version;
|
||||||
sha256 = "17zz0rm3js285w2assxp8blfx830rs0ambcsaqqfli9mnaik3m39";
|
sha256 = "1r0v0yvlazmidxp6xhapbdawqb8fhzrdp11d4an5vgxa208s6wdf";
|
||||||
};
|
};
|
||||||
|
|
||||||
nativeBuildInputs = [
|
nativeBuildInputs = [
|
||||||
|
@ -27,6 +27,8 @@ stdenv.mkDerivation rec {
|
|||||||
|
|
||||||
# Without it doesn't find all of the boost libraries.
|
# Without it doesn't find all of the boost libraries.
|
||||||
BOOST_LIB_DIR="${boost}/lib";
|
BOOST_LIB_DIR="${boost}/lib";
|
||||||
|
# uses the deprecated get_generic_category() in boost_system
|
||||||
|
NIX_CFLAGS_COMPILE="-DBOOST_SYSTEM_ENABLE_DEPRECATED=1";
|
||||||
|
|
||||||
LC_ALL = "en_US.UTF-8";
|
LC_ALL = "en_US.UTF-8";
|
||||||
|
|
||||||
|
@ -29,6 +29,7 @@
|
|||||||
, writeTextFile
|
, writeTextFile
|
||||||
, xkeyboard_config
|
, xkeyboard_config
|
||||||
, zlib
|
, zlib
|
||||||
|
, gtk2, gnome_vfs, glib, GConf
|
||||||
, fontsConf
|
, fontsConf
|
||||||
}:
|
}:
|
||||||
|
|
||||||
@ -95,6 +96,11 @@ let
|
|||||||
libpulseaudio
|
libpulseaudio
|
||||||
libX11
|
libX11
|
||||||
|
|
||||||
|
# For GTKLookAndFeel
|
||||||
|
gtk2
|
||||||
|
gnome_vfs
|
||||||
|
glib
|
||||||
|
GConf
|
||||||
]}" \
|
]}" \
|
||||||
--set QT_XKB_CONFIG_ROOT "${xkeyboard_config}/share/X11/xkb" \
|
--set QT_XKB_CONFIG_ROOT "${xkeyboard_config}/share/X11/xkb" \
|
||||||
--set FONTCONFIG_FILE ${fontsConf}
|
--set FONTCONFIG_FILE ${fontsConf}
|
||||||
|
@ -1,20 +1,27 @@
|
|||||||
{ stdenv, callPackage, fetchurl, makeFontsConf }:
|
{ stdenv, callPackage, fetchurl, makeFontsConf, gnome2 }:
|
||||||
let
|
let
|
||||||
mkStudio = opts: callPackage (import ./common.nix opts) {
|
mkStudio = opts: callPackage (import ./common.nix opts) {
|
||||||
fontsConf = makeFontsConf {
|
fontsConf = makeFontsConf {
|
||||||
fontDirectories = [];
|
fontDirectories = [];
|
||||||
};
|
};
|
||||||
|
inherit (gnome2) GConf gnome_vfs;
|
||||||
};
|
};
|
||||||
in rec {
|
in rec {
|
||||||
|
# Old alias
|
||||||
|
preview = beta;
|
||||||
|
|
||||||
|
# Attributes are named by the channels
|
||||||
|
|
||||||
# linux-bundle
|
# linux-bundle
|
||||||
stable = mkStudio {
|
stable = mkStudio {
|
||||||
pname = "android-studio";
|
pname = "android-studio";
|
||||||
|
#pname = "android-studio-stable"; # TODO: Rename
|
||||||
version = "3.0.1.0"; # "Android Studio 3.0.1"
|
version = "3.0.1.0"; # "Android Studio 3.0.1"
|
||||||
build = "171.4443003";
|
build = "171.4443003";
|
||||||
sha256Hash = "1krahlqr70nq3csqiinq2m4fgs68j11hd9gg2dx2nrpw5zni0wdd";
|
sha256Hash = "1krahlqr70nq3csqiinq2m4fgs68j11hd9gg2dx2nrpw5zni0wdd";
|
||||||
|
|
||||||
meta = with stdenv.lib; {
|
meta = with stdenv.lib; {
|
||||||
description = "The Official IDE for Android (stable version)";
|
description = "The Official IDE for Android (stable channel)";
|
||||||
longDescription = ''
|
longDescription = ''
|
||||||
Android Studio is the official IDE for Android app development, based on
|
Android Studio is the official IDE for Android app development, based on
|
||||||
IntelliJ IDEA.
|
IntelliJ IDEA.
|
||||||
@ -27,15 +34,38 @@ in rec {
|
|||||||
};
|
};
|
||||||
|
|
||||||
# linux-beta-bundle
|
# linux-beta-bundle
|
||||||
preview = mkStudio {
|
beta = mkStudio {
|
||||||
pname = "android-studio-preview";
|
pname = "android-studio-preview";
|
||||||
version = "3.1.0.12"; # "Android Studio 3.1 Beta 4"
|
#pname = "android-studio-beta"; # TODO: Rename
|
||||||
build = "173.4615496";
|
version = "3.1.0.14"; # "Android Studio 3.1 RC 2"
|
||||||
sha256Hash = "0rp0vg5hwv7kdrirydvnwznpfwibwwm2dxsbhbxfkyahph10ly72";
|
build = "173.4640767";
|
||||||
|
sha256Hash = "00v8qbis4jm31v1g9989f9y15av6p3ywj8mmfxcsc3hjlpzdgid8";
|
||||||
|
|
||||||
meta = stable.meta // {
|
meta = stable.meta // {
|
||||||
description = "The Official IDE for Android (preview version)";
|
description = "The Official IDE for Android (beta channel)";
|
||||||
homepage = https://developer.android.com/studio/preview/index.html;
|
homepage = https://developer.android.com/studio/preview/index.html;
|
||||||
};
|
};
|
||||||
};
|
};
|
||||||
|
|
||||||
|
dev = mkStudio {
|
||||||
|
pname = "android-studio-dev";
|
||||||
|
version = "3.2.0.5"; # "Android Studio 3.2 Canary 6"
|
||||||
|
build = "173.4640885";
|
||||||
|
sha256Hash = "1fbjk1dhvi975dm09s9iz9ja53fjqca07nw5h068gdj3358pj3k8";
|
||||||
|
|
||||||
|
meta = beta.meta // {
|
||||||
|
description = "The Official IDE for Android (dev channel)";
|
||||||
|
};
|
||||||
|
};
|
||||||
|
|
||||||
|
canary = mkStudio {
|
||||||
|
pname = "android-studio-canary";
|
||||||
|
version = "3.2.0.5"; # "Android Studio 3.2 Canary 6"
|
||||||
|
build = "173.4640885";
|
||||||
|
sha256Hash = "1fbjk1dhvi975dm09s9iz9ja53fjqca07nw5h068gdj3358pj3k8";
|
||||||
|
|
||||||
|
meta = beta.meta // {
|
||||||
|
description = "The Official IDE for Android (canary channel)";
|
||||||
|
};
|
||||||
|
};
|
||||||
}
|
}
|
||||||
|
@ -6,12 +6,12 @@ with stdenv.lib;
|
|||||||
|
|
||||||
stdenv.mkDerivation rec {
|
stdenv.mkDerivation rec {
|
||||||
name = "${pname}-${stdenv.lib.optionalString contribPlugins "full-"}${version}";
|
name = "${pname}-${stdenv.lib.optionalString contribPlugins "full-"}${version}";
|
||||||
version = "16.01";
|
version = "17.12";
|
||||||
pname = "codeblocks";
|
pname = "codeblocks";
|
||||||
|
|
||||||
src = fetchurl {
|
src = fetchurl {
|
||||||
url = "mirror://sourceforge/codeblocks/Sources/${version}/codeblocks_${version}.tar.gz";
|
url = "mirror://sourceforge/codeblocks/Sources/${version}/codeblocks_${version}.tar.xz";
|
||||||
sha256 = "00sskm91r20ywydwqwx6v7z3nwn9lyh5297c5wp3razldlh9vyrh";
|
sha256 = "1q2pph7md1p10i83rir2l4gvy7ym2iw8w6sk5vl995knf851m20k";
|
||||||
};
|
};
|
||||||
|
|
||||||
nativeBuildInputs = [ autoreconfHook pkgconfig libtool file zip ];
|
nativeBuildInputs = [ autoreconfHook pkgconfig libtool file zip ];
|
||||||
@ -22,11 +22,7 @@ stdenv.mkDerivation rec {
|
|||||||
preConfigure = "substituteInPlace ./configure --replace /usr/bin/file ${file}/bin/file";
|
preConfigure = "substituteInPlace ./configure --replace /usr/bin/file ${file}/bin/file";
|
||||||
postConfigure = optionalString stdenv.isLinux "substituteInPlace libtool --replace ldconfig ${stdenv.cc.libc.bin}/bin/ldconfig";
|
postConfigure = optionalString stdenv.isLinux "substituteInPlace libtool --replace ldconfig ${stdenv.cc.libc.bin}/bin/ldconfig";
|
||||||
configureFlags = [ "--enable-pch=no" ]
|
configureFlags = [ "--enable-pch=no" ]
|
||||||
++ optional contribPlugins "--with-contrib-plugins";
|
++ optional contribPlugins [ "--with-contrib-plugins" "--with-boost-libdir=${boost}/lib" ];
|
||||||
|
|
||||||
# Fix boost 1.59 compat
|
|
||||||
# Try removing in the next version
|
|
||||||
#CPPFLAGS = "-DBOOST_ERROR_CODE_HEADER_ONLY -DBOOST_SYSTEM_NO_DEPRECATED";
|
|
||||||
|
|
||||||
meta = {
|
meta = {
|
||||||
maintainers = [ maintainers.linquize ];
|
maintainers = [ maintainers.linquize ];
|
||||||
|
@ -15,6 +15,8 @@ stdenv.mkDerivation rec {
|
|||||||
|
|
||||||
hardeningDisable = [ "format" ];
|
hardeningDisable = [ "format" ];
|
||||||
|
|
||||||
|
patches = [ ./gcc7.patch ];
|
||||||
|
|
||||||
meta = with lib; {
|
meta = with lib; {
|
||||||
description = "File editor/viewer/analyzer for executables";
|
description = "File editor/viewer/analyzer for executables";
|
||||||
homepage = http://hte.sourceforge.net;
|
homepage = http://hte.sourceforge.net;
|
||||||
|
11
pkgs/applications/editors/ht/gcc7.patch
Normal file
11
pkgs/applications/editors/ht/gcc7.patch
Normal file
@ -0,0 +1,11 @@
|
|||||||
|
--- ht-2.1.0.org/htapp.cc 2014-09-14 16:55:26.000000000 +0100
|
||||||
|
+++ ht-2.1.0/htapp.cc 2018-03-10 12:48:07.158533800 +0000
|
||||||
|
@@ -3023,7 +3023,7 @@
|
||||||
|
{
|
||||||
|
uint a = 2;
|
||||||
|
uint b = u/a;
|
||||||
|
- while (abs(a - b) > 1) {
|
||||||
|
+ while (abs((int)(a - b)) > 1) {
|
||||||
|
a = (a+b)/2;
|
||||||
|
b = u/a;
|
||||||
|
}
|
@ -1,7 +1,7 @@
|
|||||||
{ stdenv, lib, callPackage, fetchurl, makeDesktopItem, makeWrapper
|
{ stdenv, lib, callPackage, fetchurl, makeDesktopItem, makeWrapper
|
||||||
, # Patchelf dependencies:
|
, # Patchelf dependencies:
|
||||||
alsaLib, atomEnv, boehmgc, flac, libogg, libvorbis, libXScrnSaver, libGLU_combined
|
alsaLib, atomEnv, boehmgc, flac, libogg, libvorbis, libXScrnSaver, libGLU_combined
|
||||||
, openssl, xlibs, xorg, zlib
|
, openssl, xorg, zlib
|
||||||
}:
|
}:
|
||||||
|
|
||||||
let
|
let
|
||||||
|
@ -20,11 +20,11 @@ let
|
|||||||
|
|
||||||
in stdenv.mkDerivation rec {
|
in stdenv.mkDerivation rec {
|
||||||
name = "nano-${version}";
|
name = "nano-${version}";
|
||||||
version = "2.9.3";
|
version = "2.9.4";
|
||||||
|
|
||||||
src = fetchurl {
|
src = fetchurl {
|
||||||
url = "mirror://gnu/nano/${name}.tar.xz";
|
url = "mirror://gnu/nano/${name}.tar.xz";
|
||||||
sha256 = "04j05nbnp8vjjwja90d83p4s6ywyl6qhggflcjzw0p9d9gyvr0vp";
|
sha256 = "0nm3zy4azr5rkxjq7jfybbj3cnddmvxc49rxyqm9cp2zfdp75y9c";
|
||||||
};
|
};
|
||||||
|
|
||||||
nativeBuildInputs = [ texinfo ] ++ optional enableNls gettext;
|
nativeBuildInputs = [ texinfo ] ++ optional enableNls gettext;
|
||||||
|
@ -2,7 +2,7 @@
|
|||||||
makeWrapper, libXScrnSaver, libxkbfile, libsecret }:
|
makeWrapper, libXScrnSaver, libxkbfile, libsecret }:
|
||||||
|
|
||||||
let
|
let
|
||||||
version = "1.20.1";
|
version = "1.21.0";
|
||||||
channel = "stable";
|
channel = "stable";
|
||||||
|
|
||||||
plat = {
|
plat = {
|
||||||
@ -12,9 +12,9 @@ let
|
|||||||
}.${stdenv.system};
|
}.${stdenv.system};
|
||||||
|
|
||||||
sha256 = {
|
sha256 = {
|
||||||
"i686-linux" = "0gycz857bl9ikfrylim970qgmyw7rcy3gbg2zsjddp9cgdk9basn";
|
"i686-linux" = "0gib1ljf1zm432cgv9i59dq7n9fblcgy6diy2qy4g1ichi92s2i3";
|
||||||
"x86_64-linux" = "0rx0qyxv173s9wjw97f94h61f12lh42grnmabgsvwd87b8zx4qim";
|
"x86_64-linux" = "08md8q325z8q3afzxbpzvjfwdjw7phqd7cpq2vadwnd2ixvga2nk";
|
||||||
"x86_64-darwin" = "0mqxmmkp3bsmy1g35prsgan61zzq5368gp720v37cwx1rskl0bfg";
|
"x86_64-darwin" = "0jmlhza48k5amb4phwy8k6xyznvivzd7gjsmsn4lmnasrxj5lask";
|
||||||
}.${stdenv.system};
|
}.${stdenv.system};
|
||||||
|
|
||||||
archive_fmt = if stdenv.system == "x86_64-darwin" then "zip" else "tar.gz";
|
archive_fmt = if stdenv.system == "x86_64-darwin" then "zip" else "tar.gz";
|
||||||
@ -79,7 +79,7 @@ in
|
|||||||
|
|
||||||
patchelf \
|
patchelf \
|
||||||
--set-rpath "${rpath}" \
|
--set-rpath "${rpath}" \
|
||||||
$out/lib/vscode/resources/app/node_modules/keytar/build/Release/keytar.node
|
$out/lib/vscode/resources/app/node_modules.asar.unpacked/keytar/build/Release/keytar.node
|
||||||
|
|
||||||
ln -s ${lib.makeLibraryPath [libsecret]}/libsecret-1.so.0 $out/lib/vscode/libsecret-1.so.0
|
ln -s ${lib.makeLibraryPath [libsecret]}/libsecret-1.so.0 $out/lib/vscode/libsecret-1.so.0
|
||||||
'';
|
'';
|
||||||
|
@ -1,25 +1,35 @@
|
|||||||
{ stdenv, fetchurl, wxGTK, autoconf, automake, libtool, python, gettext, bash }:
|
{ stdenv, fetchFromGitHub, fetchpatch, wxGTK, autoconf, automake, libtool, python, gettext, bash }:
|
||||||
|
|
||||||
stdenv.mkDerivation rec {
|
stdenv.mkDerivation rec {
|
||||||
name = "wxHexEditor-${version}";
|
name = "wxHexEditor-${version}";
|
||||||
version = "v0.22";
|
version = "v0.24";
|
||||||
|
|
||||||
src = fetchurl {
|
src = fetchFromGitHub {
|
||||||
url = "mirror://sourceforge/wxhexeditor/${name}-src.tar.bz2";
|
repo = "wxHexEditor";
|
||||||
sha256 = "15ir038g4lyw1q5bsay974hvj0nkg2yd9kccwxz808cd45fp411w";
|
owner = "EUA";
|
||||||
|
rev = version;
|
||||||
|
sha256 = "08xnhaif8syv1fa0k6lc3jm7yg2k50b02lyds8w0jyzh4xi5crqj";
|
||||||
};
|
};
|
||||||
|
|
||||||
buildInputs = [ wxGTK autoconf automake libtool python gettext ];
|
buildInputs = [ wxGTK autoconf automake libtool python gettext ];
|
||||||
|
|
||||||
patchPhase = ''
|
preConfigure = "patchShebangs .";
|
||||||
substituteInPlace Makefile --replace "/usr/local" "$out"
|
|
||||||
|
prePatch = ''
|
||||||
|
substituteInPlace Makefile --replace "/usr" "$out"
|
||||||
substituteInPlace Makefile --replace "mhash; ./configure" "mhash; ./configure --prefix=$out"
|
substituteInPlace Makefile --replace "mhash; ./configure" "mhash; ./configure --prefix=$out"
|
||||||
substituteInPlace udis86/autogen.sh --replace "/bin/bash" "${bash}/bin/bash"
|
|
||||||
'';
|
'';
|
||||||
|
|
||||||
|
patches = [
|
||||||
|
# https://github.com/EUA/wxHexEditor/issues/90
|
||||||
|
(fetchpatch {
|
||||||
|
url = https://github.com/EUA/wxHexEditor/commit/d0fa3ddc3e9dc9b05f90b650991ef134f74eed01.patch;
|
||||||
|
sha256 = "1wcb70hrnhq72frj89prcqylpqs74xrfz3kdfdkq84p5qfz9svyj";
|
||||||
|
})
|
||||||
|
];
|
||||||
|
|
||||||
buildPhase = ''
|
buildPhase = ''
|
||||||
make OPTFLAGS="-fopenmp"
|
make OPTFLAGS="-fopenmp"
|
||||||
|
|
||||||
'';
|
'';
|
||||||
|
|
||||||
meta = {
|
meta = {
|
||||||
|
File diff suppressed because it is too large
Load Diff
@ -1,4 +1,4 @@
|
|||||||
# This file has been generated by node2nix 1.3.0. Do not edit!
|
# This file has been generated by node2nix 1.5.3. Do not edit!
|
||||||
|
|
||||||
{pkgs ? import <nixpkgs> {
|
{pkgs ? import <nixpkgs> {
|
||||||
inherit system;
|
inherit system;
|
||||||
@ -8,6 +8,7 @@ let
|
|||||||
nodeEnv = import ../../../development/node-packages/node-env.nix {
|
nodeEnv = import ../../../development/node-packages/node-env.nix {
|
||||||
inherit (pkgs) stdenv python2 utillinux runCommand writeTextFile;
|
inherit (pkgs) stdenv python2 utillinux runCommand writeTextFile;
|
||||||
inherit nodejs;
|
inherit nodejs;
|
||||||
|
libtool = if pkgs.stdenv.isDarwin then pkgs.darwin.cctools else null;
|
||||||
};
|
};
|
||||||
in
|
in
|
||||||
import ./node-packages.nix {
|
import ./node-packages.nix {
|
||||||
|
22
pkgs/applications/graphics/gnuclad/default.nix
Normal file
22
pkgs/applications/graphics/gnuclad/default.nix
Normal file
@ -0,0 +1,22 @@
|
|||||||
|
{ stdenv, fetchurl, pkgconfig
|
||||||
|
}:
|
||||||
|
|
||||||
|
stdenv.mkDerivation rec {
|
||||||
|
name = "gnuclad";
|
||||||
|
version = "0.2.4";
|
||||||
|
|
||||||
|
src = fetchurl {
|
||||||
|
url = "https://launchpad.net/gnuclad/trunk/0.2/+download/${name}-${version}.tar.gz";
|
||||||
|
sha256 = "0ka2kscpjff7gflsargv3r9fdaxhkf3nym9mfaln3pnq6q7fwdki";
|
||||||
|
};
|
||||||
|
|
||||||
|
nativeBuildInputs = [ pkgconfig ];
|
||||||
|
|
||||||
|
meta = with stdenv.lib; {
|
||||||
|
homepage = https://launchpad.net/gnuclad;
|
||||||
|
description = "gnuclad tries to help the environment by creating trees. It's primary use will be generating cladogram trees for the GNU/Linux distro timeline project.";
|
||||||
|
license = licenses.gpl3Plus;
|
||||||
|
maintainers = with maintainers; [ mog ];
|
||||||
|
platforms = platforms.linux;
|
||||||
|
};
|
||||||
|
}
|
@ -1,7 +1,7 @@
|
|||||||
{ stdenv, fetchurl, lib, makeWrapper,
|
{ stdenv, fetchurl, lib, makeWrapper,
|
||||||
# build dependencies
|
# build dependencies
|
||||||
alsaLib, atk, cairo, cups, dbus, expat, fontconfig,
|
alsaLib, atk, cairo, cups, dbus, expat, fontconfig,
|
||||||
freetype, gdk_pixbuf, glib, gnome2, nspr, nss, xlibs,
|
freetype, gdk_pixbuf, glib, gnome2, nspr, nss, xorg,
|
||||||
glibc, udev
|
glibc, udev
|
||||||
}:
|
}:
|
||||||
|
|
||||||
@ -55,17 +55,17 @@ stdenv.mkDerivation rec {
|
|||||||
gnome2.pango
|
gnome2.pango
|
||||||
nspr
|
nspr
|
||||||
nss
|
nss
|
||||||
xlibs.libX11
|
xorg.libX11
|
||||||
xlibs.libXScrnSaver
|
xorg.libXScrnSaver
|
||||||
xlibs.libXcomposite
|
xorg.libXcomposite
|
||||||
xlibs.libXcursor
|
xorg.libXcursor
|
||||||
xlibs.libXdamage
|
xorg.libXdamage
|
||||||
xlibs.libXext
|
xorg.libXext
|
||||||
xlibs.libXfixes
|
xorg.libXfixes
|
||||||
xlibs.libXi
|
xorg.libXi
|
||||||
xlibs.libXrandr
|
xorg.libXrandr
|
||||||
xlibs.libXrender
|
xorg.libXrender
|
||||||
xlibs.libXtst
|
xorg.libXtst
|
||||||
stdenv.cc.cc.lib
|
stdenv.cc.cc.lib
|
||||||
stdenv.cc.cc
|
stdenv.cc.cc
|
||||||
glibc
|
glibc
|
||||||
|
@ -1,5 +1,5 @@
|
|||||||
{ stdenv, fetchgit, cmake, pkgconfig, zlib, libpng, cairo, freetype
|
{ stdenv, fetchgit, cmake, pkgconfig, zlib, libpng, cairo, freetype
|
||||||
, json_c, fontconfig, gtkmm3, pangomm, glew, libGLU, xlibs, pcre
|
, json_c, fontconfig, gtkmm3, pangomm, glew, libGLU, xorg, pcre
|
||||||
, wrapGAppsHook
|
, wrapGAppsHook
|
||||||
}:
|
}:
|
||||||
stdenv.mkDerivation rec {
|
stdenv.mkDerivation rec {
|
||||||
@ -18,7 +18,7 @@ stdenv.mkDerivation rec {
|
|||||||
buildInputs = [
|
buildInputs = [
|
||||||
zlib libpng cairo freetype
|
zlib libpng cairo freetype
|
||||||
json_c fontconfig gtkmm3 pangomm glew libGLU
|
json_c fontconfig gtkmm3 pangomm glew libGLU
|
||||||
xlibs.libpthreadstubs xlibs.libXdmcp pcre
|
xorg.libpthreadstubs xorg.libXdmcp pcre
|
||||||
];
|
];
|
||||||
enableParallelBuilding = true;
|
enableParallelBuilding = true;
|
||||||
|
|
||||||
|
@ -1,4 +1,4 @@
|
|||||||
{ stdenv, fetchFromGitHub, scsh, feh, xlibs }:
|
{ stdenv, fetchFromGitHub, scsh, feh, xorg }:
|
||||||
|
|
||||||
stdenv.mkDerivation rec {
|
stdenv.mkDerivation rec {
|
||||||
pname = "deco";
|
pname = "deco";
|
||||||
@ -21,7 +21,7 @@ stdenv.mkDerivation rec {
|
|||||||
postFixup = ''
|
postFixup = ''
|
||||||
substituteInPlace $out/bin/deco --replace "/usr/bin/env scsh" "${scsh}/bin/scsh"
|
substituteInPlace $out/bin/deco --replace "/usr/bin/env scsh" "${scsh}/bin/scsh"
|
||||||
substituteInPlace $out/bin/deco --replace "feh" "${feh}/bin/feh"
|
substituteInPlace $out/bin/deco --replace "feh" "${feh}/bin/feh"
|
||||||
substituteInPlace $out/bin/deco --replace "xdpyinfo" "${xlibs.xdpyinfo}/bin/xdpyinfo"
|
substituteInPlace $out/bin/deco --replace "xdpyinfo" "${xorg.xdpyinfo}/bin/xdpyinfo"
|
||||||
'';
|
'';
|
||||||
|
|
||||||
meta = with stdenv.lib; {
|
meta = with stdenv.lib; {
|
||||||
|
@ -29,11 +29,11 @@ let
|
|||||||
license_dir = "~/.config/houdini";
|
license_dir = "~/.config/houdini";
|
||||||
in
|
in
|
||||||
stdenv.mkDerivation rec {
|
stdenv.mkDerivation rec {
|
||||||
version = "16.0.671";
|
version = "16.5.405";
|
||||||
name = "houdini-runtime-${version}";
|
name = "houdini-runtime-${version}";
|
||||||
src = requireFile rec {
|
src = requireFile rec {
|
||||||
name = "houdini-${version}-linux_x86_64_gcc4.8.tar.gz";
|
name = "houdini-${version}-linux_x86_64_gcc4.8.tar.gz";
|
||||||
sha256 = "1d3c1a1128szlgaf3ilw5y20plz5azwp37v0ljawgm80y64hq15r";
|
sha256 = "14i0kzv881jqd5z9jshri1fxxi3pkxdmi5l4p2b51c9i3apsxmw6";
|
||||||
message = ''
|
message = ''
|
||||||
This nix expression requires that ${name} is already part of the store.
|
This nix expression requires that ${name} is already part of the store.
|
||||||
Download it from https://sidefx.com and add it to the nix store with:
|
Download it from https://sidefx.com and add it to the nix store with:
|
||||||
|
@ -2,11 +2,11 @@
|
|||||||
|
|
||||||
stdenv.mkDerivation rec {
|
stdenv.mkDerivation rec {
|
||||||
name = "josm-${version}";
|
name = "josm-${version}";
|
||||||
version = "13478";
|
version = "13500";
|
||||||
|
|
||||||
src = fetchurl {
|
src = fetchurl {
|
||||||
url = "https://josm.openstreetmap.de/download/josm-snapshot-${version}.jar";
|
url = "https://josm.openstreetmap.de/download/josm-snapshot-${version}.jar";
|
||||||
sha256 = "1mc1zdcnlm14ky820cj61sid6aiq9k11kj6vzlqskvgqazc60xj4";
|
sha256 = "1dyys4y859dazjqpn3f7vd0cpyglk82y3igrdca293y0n0hrmi7v";
|
||||||
};
|
};
|
||||||
|
|
||||||
buildInputs = [ jre8 makeWrapper ];
|
buildInputs = [ jre8 makeWrapper ];
|
||||||
|
27
pkgs/applications/misc/overmind/default.nix
Normal file
27
pkgs/applications/misc/overmind/default.nix
Normal file
@ -0,0 +1,27 @@
|
|||||||
|
{ stdenv, buildGoPackage, fetchFromGitHub, tmux, makeWrapper }:
|
||||||
|
|
||||||
|
buildGoPackage rec {
|
||||||
|
name = "overmind-${version}";
|
||||||
|
version = "1.1.1";
|
||||||
|
goPackagePath = "github.com/DarthSim/overmind";
|
||||||
|
|
||||||
|
nativeBuildInputs = [ makeWrapper ];
|
||||||
|
|
||||||
|
postInstall = ''
|
||||||
|
wrapProgram "$bin/bin/overmind" --prefix PATH : "${stdenv.lib.makeBinPath [ tmux ]}"
|
||||||
|
'';
|
||||||
|
|
||||||
|
src = fetchFromGitHub {
|
||||||
|
owner = "DarthSim";
|
||||||
|
repo = "overmind";
|
||||||
|
rev = "v${version}";
|
||||||
|
sha256 = "0gdsbm54ln07jv1kgg53fiavx18xxw4f21lfcdl74ijk6bx4jbzv";
|
||||||
|
};
|
||||||
|
|
||||||
|
meta = with stdenv.lib; {
|
||||||
|
homepage = https://github.com/DarthSim/;
|
||||||
|
description = "Process manager for Procfile-based applications and tmux";
|
||||||
|
license = with licenses; [ mit ];
|
||||||
|
maintainers = [ maintainers.adisbladis ];
|
||||||
|
};
|
||||||
|
}
|
@ -50,7 +50,7 @@ let
|
|||||||
else if stdenv.system == "i686-linux" then "${stdenv.cc}/nix-support/dynamic-linker"
|
else if stdenv.system == "i686-linux" then "${stdenv.cc}/nix-support/dynamic-linker"
|
||||||
else throw "Unsupported platform for PlayOnLinux: ${stdenv.system}";
|
else throw "Unsupported platform for PlayOnLinux: ${stdenv.system}";
|
||||||
ld64 = "${stdenv.cc}/nix-support/dynamic-linker";
|
ld64 = "${stdenv.cc}/nix-support/dynamic-linker";
|
||||||
libs = pkgs: stdenv.lib.makeLibraryPath [ pkgs.xlibs.libX11 ];
|
libs = pkgs: stdenv.lib.makeLibraryPath [ pkgs.xorg.libX11 ];
|
||||||
|
|
||||||
in stdenv.mkDerivation {
|
in stdenv.mkDerivation {
|
||||||
name = "playonlinux-${version}";
|
name = "playonlinux-${version}";
|
||||||
|
@ -58,7 +58,7 @@ stdenv.mkDerivation rec {
|
|||||||
mkdir -p $out/share/icons
|
mkdir -p $out/share/icons
|
||||||
cp ${icon} $out/share/icons/robomongo.png
|
cp ${icon} $out/share/icons/robomongo.png
|
||||||
|
|
||||||
patchelf --set-interpreter ${stdenv.glibc}/lib/ld-linux-x86-64.so.2 $BASEDIR/bin/robo3t
|
patchelf --set-interpreter ${stdenv.cc.libc}/lib/ld-linux-x86-64.so.2 $BASEDIR/bin/robo3t
|
||||||
|
|
||||||
mkdir $out/bin
|
mkdir $out/bin
|
||||||
|
|
||||||
@ -70,7 +70,7 @@ stdenv.mkDerivation rec {
|
|||||||
meta = {
|
meta = {
|
||||||
homepage = https://robomongo.org/;
|
homepage = https://robomongo.org/;
|
||||||
description = "Query GUI for mongodb";
|
description = "Query GUI for mongodb";
|
||||||
platforms = stdenv.lib.intersectLists stdenv.lib.platforms.linux stdenv.lib.platforms.x86_64;
|
platforms = [ "x86_64-linux" ];
|
||||||
license = stdenv.lib.licenses.gpl3;
|
license = stdenv.lib.licenses.gpl3;
|
||||||
maintainers = [ stdenv.lib.maintainers.eperuffo ];
|
maintainers = [ stdenv.lib.maintainers.eperuffo ];
|
||||||
};
|
};
|
||||||
|
54
pkgs/applications/misc/rofi/config.patch
Normal file
54
pkgs/applications/misc/rofi/config.patch
Normal file
@ -0,0 +1,54 @@
|
|||||||
|
diff --git a/script/rofi-theme-selector b/script/rofi-theme-selector
|
||||||
|
index 0646e4bc..f827dbfe 100755
|
||||||
|
--- a/script/rofi-theme-selector
|
||||||
|
+++ b/script/rofi-theme-selector
|
||||||
|
@@ -42,34 +42,7 @@ function find_themes()
|
||||||
|
DIRS=${XDG_DATA_DIRS}
|
||||||
|
OLDIFS=${IFS}
|
||||||
|
IFS=:
|
||||||
|
- if [ -z "${XDG_DATA_DIRS}" ]
|
||||||
|
- then
|
||||||
|
- echo "XDG_DATA_DIRS needs to be set for this script to function correctly."
|
||||||
|
- echo -n "Using dirs from \$PATH: "
|
||||||
|
- DIRS=
|
||||||
|
- # Iterate over items in $PATH
|
||||||
|
- for p in ${PATH}; do
|
||||||
|
- # Remove trailing / if exists.
|
||||||
|
- x=${p%/}
|
||||||
|
- # remove both /bin and /sbin and /games from end
|
||||||
|
- x=${x%/bin}
|
||||||
|
- x=${x%/sbin}
|
||||||
|
- x=${x%/games}
|
||||||
|
- # Add /share
|
||||||
|
- x=${x}/share
|
||||||
|
- # Check if entry exists Prepend : so :${x}: matches nicely
|
||||||
|
- case ":${DIRS}" in
|
||||||
|
- *$x:*);;
|
||||||
|
- *) DIRS+="$x:";;
|
||||||
|
- esac
|
||||||
|
- done
|
||||||
|
- # Remove trailing :
|
||||||
|
- DIRS=${DIRS%:}
|
||||||
|
- echo "${DIRS}"
|
||||||
|
- fi
|
||||||
|
- # Add user dir.
|
||||||
|
- DIRS+=":${HOME}/.local/share/"
|
||||||
|
- DIRS+=":${HOME}/.config/"
|
||||||
|
+ DIRS+=":%ROFIOUT%/"
|
||||||
|
for p in ${DIRS}; do
|
||||||
|
p=${p%/}
|
||||||
|
TD=${p}/rofi/themes
|
||||||
|
@@ -164,7 +137,12 @@ Current theme: <b>${CUR}</b>"""
|
||||||
|
###
|
||||||
|
function set_theme()
|
||||||
|
{
|
||||||
|
- CDIR="${HOME}/.config/rofi/"
|
||||||
|
+ if [ -d "${XDG_CONFIG_HOME}" ]; then
|
||||||
|
+ CDIR="${XDG_CONFIG_HOME}/rofi/"
|
||||||
|
+ else
|
||||||
|
+ CDIR="${HOME}/.config/rofi/"
|
||||||
|
+ fi
|
||||||
|
+
|
||||||
|
if [ ! -d "${CDIR}" ]
|
||||||
|
then
|
||||||
|
mkdir -p ${CDIR}
|
@ -4,25 +4,33 @@
|
|||||||
}:
|
}:
|
||||||
|
|
||||||
stdenv.mkDerivation rec {
|
stdenv.mkDerivation rec {
|
||||||
version = "1.4.2";
|
version = "1.5.0";
|
||||||
name = "rofi-${version}";
|
name = "rofi-${version}";
|
||||||
|
|
||||||
src = fetchurl {
|
src = fetchurl {
|
||||||
url = "https://github.com/DaveDavenport/rofi/releases/download/${version}/${name}.tar.gz";
|
url = "https://github.com/DaveDavenport/rofi/releases/download/${version}/${name}.tar.gz";
|
||||||
sha256 = "0ys7grazqz5hw3nx2393df54ykcd5gw0zn66kik5fvzijpg3qfcx";
|
sha256 = "0h068wqf0n6gmil2g3lh263pm7spkp4k5rxbnfp52n8izqgyf7al";
|
||||||
};
|
};
|
||||||
|
|
||||||
|
# config.patch may be removed in the future - https://github.com/DaveDavenport/rofi/pull/781
|
||||||
|
patches = [ ./config.patch ];
|
||||||
|
|
||||||
preConfigure = ''
|
preConfigure = ''
|
||||||
patchShebangs "script"
|
patchShebangs "script"
|
||||||
# root not present in build /etc/passwd
|
# root not present in build /etc/passwd
|
||||||
sed -i 's/~root/~nobody/g' test/helper-expand.c
|
sed -i 's/~root/~nobody/g' test/helper-expand.c
|
||||||
'';
|
'';
|
||||||
|
|
||||||
|
postFixup = ''
|
||||||
|
substituteInPlace "$out"/bin/rofi-theme-selector \
|
||||||
|
--replace "%ROFIOUT%" "$out/share"
|
||||||
|
'';
|
||||||
|
|
||||||
nativeBuildInputs = [ autoreconfHook pkgconfig ];
|
nativeBuildInputs = [ autoreconfHook pkgconfig ];
|
||||||
buildInputs = [ libxkbcommon pango cairo git bison flex librsvg check
|
buildInputs = [ libxkbcommon pango cairo git bison flex librsvg check
|
||||||
libstartup_notification libxcb xcbutil xcbutilwm xcbutilxrm which
|
libstartup_notification libxcb xcbutil xcbutilwm xcbutilxrm which
|
||||||
];
|
];
|
||||||
doCheck = true;
|
doCheck = false;
|
||||||
|
|
||||||
meta = with stdenv.lib; {
|
meta = with stdenv.lib; {
|
||||||
description = "Window switcher, run dialog and dmenu replacement";
|
description = "Window switcher, run dialog and dmenu replacement";
|
||||||
|
@ -1,7 +1,7 @@
|
|||||||
{ stdenv, fetchFromGitHub, pkgconfig, vte, gtk }:
|
{ stdenv, fetchFromGitHub, pkgconfig, vte, gtk }:
|
||||||
|
|
||||||
stdenv.mkDerivation rec {
|
stdenv.mkDerivation rec {
|
||||||
name = "stupidterm-2017-03-15";
|
name = "stupidterm-2018-03-10";
|
||||||
|
|
||||||
nativeBuildInputs = [ pkgconfig ];
|
nativeBuildInputs = [ pkgconfig ];
|
||||||
|
|
||||||
@ -10,8 +10,8 @@ stdenv.mkDerivation rec {
|
|||||||
src = fetchFromGitHub {
|
src = fetchFromGitHub {
|
||||||
owner = "esmil";
|
owner = "esmil";
|
||||||
repo = "stupidterm";
|
repo = "stupidterm";
|
||||||
rev = "752316a783f52317ffd9f05d32e208dbcafc5ba6";
|
rev = "0463519a96c9e4f9ce9fdc99d8e776499346ccba";
|
||||||
sha256 = "1d8fyhr9sgpxgkwzkyiws0kvhmqfwwyycvcr1qf2wjldiax222lv";
|
sha256 = "1vbk53xyjn33myb3fix6y7sxb1x3rndrkk5l9qa60qaw2ivkr965";
|
||||||
};
|
};
|
||||||
|
|
||||||
makeFlags = "PKGCONFIG=${pkgconfig}/bin/pkg-config binary=stupidterm";
|
makeFlags = "PKGCONFIG=${pkgconfig}/bin/pkg-config binary=stupidterm";
|
||||||
|
@ -18,7 +18,7 @@ stdenv.mkDerivation rec {
|
|||||||
homepage = https://tasktools.org/projects/timewarrior.html;
|
homepage = https://tasktools.org/projects/timewarrior.html;
|
||||||
license = licenses.mit;
|
license = licenses.mit;
|
||||||
maintainers = with maintainers; [ matthiasbeyer mrVanDalo ];
|
maintainers = with maintainers; [ matthiasbeyer mrVanDalo ];
|
||||||
platforms = platforms.linux;
|
platforms = platforms.linux ++ platforms.darwin;
|
||||||
};
|
};
|
||||||
}
|
}
|
||||||
|
|
||||||
|
@ -1,20 +1,23 @@
|
|||||||
{ stdenv, python3Packages, fetchFromGitHub }:
|
{ stdenv, python3Packages, fetchFromGitHub }:
|
||||||
|
|
||||||
python3Packages.buildPythonApplication rec {
|
python3Packages.buildPythonApplication rec {
|
||||||
name = "urlscan-${version}";
|
pname = "urlscan";
|
||||||
version = "0.8.6";
|
version = "0.8.7";
|
||||||
|
|
||||||
src = fetchFromGitHub {
|
src = fetchFromGitHub {
|
||||||
owner = "firecat53";
|
owner = "firecat53";
|
||||||
repo = "urlscan";
|
repo = pname;
|
||||||
rev = version;
|
rev = version;
|
||||||
sha256 = "1v26fni64n0lbv37m35plh2bsrvhpb4ibgmg2mv05qfc3df721s5";
|
sha256 = "1jxjcq869jimsq1ihk2fbjhp5lj7yga0hbp0msskxyz92afl1kz8";
|
||||||
};
|
};
|
||||||
|
|
||||||
propagatedBuildInputs = [ python3Packages.urwid ];
|
propagatedBuildInputs = [ python3Packages.urwid ];
|
||||||
|
|
||||||
|
doCheck = false; # No tests available
|
||||||
|
|
||||||
meta = with stdenv.lib; {
|
meta = with stdenv.lib; {
|
||||||
description = "Mutt and terminal url selector (similar to urlview)";
|
description = "Mutt and terminal url selector (similar to urlview)";
|
||||||
|
homepage = https://github.com/firecat53/urlscan;
|
||||||
license = licenses.gpl2;
|
license = licenses.gpl2;
|
||||||
maintainers = with maintainers; [ dpaetzel jfrankenau ];
|
maintainers = with maintainers; [ dpaetzel jfrankenau ];
|
||||||
};
|
};
|
||||||
|
@ -139,27 +139,43 @@ let
|
|||||||
|
|
||||||
patches = [
|
patches = [
|
||||||
./patches/nix_plugin_paths_52.patch
|
./patches/nix_plugin_paths_52.patch
|
||||||
# To enable ChromeCast, go to chrome://flags and set "Load Media Router Component Extension" to Enabled
|
|
||||||
## Fixes Chromecast: https://bugs.chromium.org/p/chromium/issues/detail?id=734325
|
|
||||||
## TODO investigate build error
|
|
||||||
#./patches/fix_network_api_crash.patch
|
|
||||||
|
|
||||||
# As major versions are added, you can trawl the gentoo and arch repos at
|
# As major versions are added, you can trawl the gentoo and arch repos at
|
||||||
# https://gitweb.gentoo.org/repo/gentoo.git/plain/www-client/chromium/
|
# https://gitweb.gentoo.org/repo/gentoo.git/plain/www-client/chromium/
|
||||||
# https://git.archlinux.org/svntogit/packages.git/tree/trunk?h=packages/chromium
|
# https://git.archlinux.org/svntogit/packages.git/tree/trunk?h=packages/chromium
|
||||||
# for updated patches and hints about build flags
|
# for updated patches and hints about build flags
|
||||||
|
|
||||||
# (gentooPatch "<patch>" "0000000000000000000000000000000000000000000000000000000000000000")
|
# (gentooPatch "<patch>" "0000000000000000000000000000000000000000000000000000000000000000")
|
||||||
] ++ optionals (versionRange "65" "66") [
|
] ++ optionals (versionRange "65" "66") [
|
||||||
(gentooPatch "chromium-stdint.patch" "037gjnc8h087g6dpxz53nqvzbpa9mq0z47h25vix9p62s9nhz2a8")
|
(gentooPatch "chromium-stdint.patch" "037gjnc8h087g6dpxz53nqvzbpa9mq0z47h25vix9p62s9nhz2a8")
|
||||||
(gentooPatch "chromium-webrtc-r0.patch" "0wp4zivbv2wpgiwmiznbq1aw4w98mvwjvdy36cpfmnvr8yw430pd")
|
(gentooPatch "chromium-webrtc-r0.patch" "0wp4zivbv2wpgiwmiznbq1aw4w98mvwjvdy36cpfmnvr8yw430pd")
|
||||||
(gentooPatch "chromium-math.h-r0.patch" "0dlzbdj0lvp9qklgifsvgbn6p1ppxbl3hkwqqqfsw1d9jka9wy8x")
|
(gentooPatch "chromium-math.h-r0.patch" "0dlzbdj0lvp9qklgifsvgbn6p1ppxbl3hkwqqqfsw1d9jka9wy8x")
|
||||||
|
# To enable ChromeCast, go to chrome://flags and set "Load Media Router Component Extension" to Enabled
|
||||||
|
# Fixes Chromecast: https://bugs.chromium.org/p/chromium/issues/detail?id=734325
|
||||||
|
(githubPatch "1517db71cccaec48a05cdf30208e0cba7ab9b9a8" "08ac502cwwb05ml3w4wzn66i5c2d1h22xs5rzszwlnhxckxfc0fk")
|
||||||
|
# GCC 7 fixes
|
||||||
|
(githubPatch "f64fadcd79aebe5ed893ecbf258d1123609d28f8" "1h255w1v327r08cnifs19s4bwmkinqjmdmbwihddc5dyl43sjnvv")
|
||||||
|
(githubPatch "4d8468a07f374c11425494271256151fb6fe0c34" "0kqqq8kj0zv5bi1n9mm0vnn8wsgi98mjmj7snpav21fh3pgiqjrm")
|
||||||
|
(githubPatch "ede5178322ccd297b0ad82ae4c59119ceaab9ea5" "0rsal0dy0yhgs4lhn8h1vy1s77xcssy4f5wals7hvrz5m08jqizj")
|
||||||
|
(githubPatch "7d721f438acb38db556ae9a9e6e8b718bd503216" "13lzvxm63zq3rd8p387ylq4bm9wr4r09vk2w4p81f838pf0v1kbj")
|
||||||
|
# Following commit doesn't apply cleanly to stable branch, replace with handcrafted one
|
||||||
|
#(githubPatch "4f2b52281ce1649ea8347489443965ad33262ecc" "1g59izkicn9cpcphamdgrijs306h5b9i7i4pmy134asn1ifiax5z")
|
||||||
|
./patches/PlaybackImageProvider-copy-constructor.patch
|
||||||
|
# * base/optional.h
|
||||||
|
(githubPatch "f1c8789c71dbdaeeef98ecd52c9715495824e6b0" "0w3d82s10cl10r6zq9vpsscmdhbdkcy0vbdiqy5pvbr031nfxw5w")
|
||||||
|
(githubPatch "5cae9645215d02cb1f986a181a208f8a4817fc86" "052y0f9nwq6y6jh2gvr1pm8qdcqghyi3jj5svvrp5aqirlkwb7ri")
|
||||||
|
# * ConfigurationPolicyProviders
|
||||||
|
(githubPatch "1ee888aed9f9a6291570ce360bcdd2d06bcc68cb" "1bm34p3bsny44sk60j842ghhhx8qaibwpqnfnyndfj96f7nb2az0")
|
||||||
|
(githubPatch "76da73abaeede740fc97479c09c92a52972bc477" "03rkf514ddj9d32d3zfcnf96kzzdk6cwxvrqj8acyv93vp1hvckr")
|
||||||
#(gentooPatch "<patch>" "0000000000000000000000000000000000000000000000000000000000000000")
|
#(gentooPatch "<patch>" "0000000000000000000000000000000000000000000000000000000000000000")
|
||||||
] ++ optionals (versionRange "66" "67") [
|
] ++ optionals (versionRange "66" "67") [
|
||||||
(gentooPatch "chromium-stdint.patch" "037gjnc8h087g6dpxz53nqvzbpa9mq0z47h25vix9p62s9nhz2a8")
|
|
||||||
(gentooPatch "chromium-webrtc-r0.patch" "0wp4zivbv2wpgiwmiznbq1aw4w98mvwjvdy36cpfmnvr8yw430pd")
|
(gentooPatch "chromium-webrtc-r0.patch" "0wp4zivbv2wpgiwmiznbq1aw4w98mvwjvdy36cpfmnvr8yw430pd")
|
||||||
(gentooPatch "chromium-math.h-r0.patch" "0dlzbdj0lvp9qklgifsvgbn6p1ppxbl3hkwqqqfsw1d9jka9wy8x")
|
|
||||||
(gentooPatch "chromium-ffmpeg-r1.patch" "1k8agaqsvg0w0s6s5wh346ih02cc86vr0vwyshw2q9vafa0jvmq4")
|
(gentooPatch "chromium-ffmpeg-r1.patch" "1k8agaqsvg0w0s6s5wh346ih02cc86vr0vwyshw2q9vafa0jvmq4")
|
||||||
|
# GCC 7 fixes
|
||||||
|
(githubPatch "f64fadcd79aebe5ed893ecbf258d1123609d28f8" "1h255w1v327r08cnifs19s4bwmkinqjmdmbwihddc5dyl43sjnvv")
|
||||||
|
(githubPatch "ede5178322ccd297b0ad82ae4c59119ceaab9ea5" "0rsal0dy0yhgs4lhn8h1vy1s77xcssy4f5wals7hvrz5m08jqizj")
|
||||||
|
(githubPatch "7d721f438acb38db556ae9a9e6e8b718bd503216" "13lzvxm63zq3rd8p387ylq4bm9wr4r09vk2w4p81f838pf0v1kbj")
|
||||||
|
(githubPatch "ba4141e451f4e0b1b19410b1b503bd32e150df06" "1cjxw1f9fin6z12b0mcxnxf2mdjb0n3chwz7mgvmp9yij8qhqnxj")
|
||||||
|
(githubPatch "b34ed1e6524479d61ee944ebf6ca7389ea47e563" "1s13zw93nsyr259dzck6gbhg4x46qg5sg14djf4bvrrc6hlkiczw")
|
||||||
|
(githubPatch "4f2b52281ce1649ea8347489443965ad33262ecc" "1g59izkicn9cpcphamdgrijs306h5b9i7i4pmy134asn1ifiax5z")
|
||||||
] ++ optional enableWideVine ./patches/widevine.patch;
|
] ++ optional enableWideVine ./patches/widevine.patch;
|
||||||
|
|
||||||
postPatch = ''
|
postPatch = ''
|
||||||
|
@ -0,0 +1,89 @@
|
|||||||
|
--- a/cc/raster/playback_image_provider.cc
|
||||||
|
+++ b/cc/raster/playback_image_provider.cc
|
||||||
|
@@ -20,7 +20,7 @@
|
||||||
|
PlaybackImageProvider::PlaybackImageProvider(
|
||||||
|
ImageDecodeCache* cache,
|
||||||
|
const gfx::ColorSpace& target_color_space,
|
||||||
|
- base::Optional<Settings> settings)
|
||||||
|
+ base::Optional<Settings>&& settings)
|
||||||
|
: cache_(cache),
|
||||||
|
target_color_space_(target_color_space),
|
||||||
|
settings_(std::move(settings)) {
|
||||||
|
@@ -70,7 +70,10 @@
|
||||||
|
}
|
||||||
|
|
||||||
|
PlaybackImageProvider::Settings::Settings() = default;
|
||||||
|
-PlaybackImageProvider::Settings::Settings(const Settings& other) = default;
|
||||||
|
+PlaybackImageProvider::Settings::Settings(PlaybackImageProvider::Settings&&) =
|
||||||
|
+ default;
|
||||||
|
PlaybackImageProvider::Settings::~Settings() = default;
|
||||||
|
+PlaybackImageProvider::Settings& PlaybackImageProvider::Settings::operator=(
|
||||||
|
+ PlaybackImageProvider::Settings&&) = default;
|
||||||
|
|
||||||
|
} // namespace cc
|
||||||
|
--- a/cc/raster/playback_image_provider.h
|
||||||
|
+++ b/cc/raster/playback_image_provider.h
|
||||||
|
@@ -20,8 +20,10 @@
|
||||||
|
public:
|
||||||
|
struct CC_EXPORT Settings {
|
||||||
|
Settings();
|
||||||
|
- Settings(const Settings& other);
|
||||||
|
+ Settings(const Settings&) = delete;
|
||||||
|
+ Settings(Settings&&);
|
||||||
|
~Settings();
|
||||||
|
+ Settings& operator=(Settings&&);
|
||||||
|
|
||||||
|
// The set of image ids to skip during raster.
|
||||||
|
PaintImageIdFlatSet images_to_skip;
|
||||||
|
@@ -34,7 +36,7 @@
|
||||||
|
// If no settings are provided, all images are skipped during rasterization.
|
||||||
|
PlaybackImageProvider(ImageDecodeCache* cache,
|
||||||
|
const gfx::ColorSpace& target_color_space,
|
||||||
|
- base::Optional<Settings> settings);
|
||||||
|
+ base::Optional<Settings>&& settings);
|
||||||
|
~PlaybackImageProvider() override;
|
||||||
|
|
||||||
|
PlaybackImageProvider(PlaybackImageProvider&& other);
|
||||||
|
--- a/cc/raster/playback_image_provider_unittest.cc
|
||||||
|
+++ b/cc/raster/playback_image_provider_unittest.cc
|
||||||
|
@@ -84,7 +84,8 @@ TEST(PlaybackImageProviderTest, SkipsSomeImages) {
|
||||||
|
settings.emplace();
|
||||||
|
settings->images_to_skip = {skip_image.stable_id()};
|
||||||
|
|
||||||
|
- PlaybackImageProvider provider(&cache, gfx::ColorSpace(), settings);
|
||||||
|
+ PlaybackImageProvider provider(&cache, gfx::ColorSpace(),
|
||||||
|
+ std::move(settings));
|
||||||
|
provider.BeginRaster();
|
||||||
|
|
||||||
|
SkIRect rect = SkIRect::MakeWH(10, 10);
|
||||||
|
@@ -100,7 +101,8 @@ TEST(PlaybackImageProviderTest, RefAndUnrefDecode) {
|
||||||
|
|
||||||
|
base::Optional<PlaybackImageProvider::Settings> settings;
|
||||||
|
settings.emplace();
|
||||||
|
- PlaybackImageProvider provider(&cache, gfx::ColorSpace(), settings);
|
||||||
|
+ PlaybackImageProvider provider(&cache, gfx::ColorSpace(),
|
||||||
|
+ std::move(settings));
|
||||||
|
provider.BeginRaster();
|
||||||
|
|
||||||
|
{
|
||||||
|
@@ -133,7 +135,8 @@ TEST(PlaybackImageProviderTest, AtRasterImages) {
|
||||||
|
settings.emplace();
|
||||||
|
settings->at_raster_images = {draw_image1, draw_image2};
|
||||||
|
|
||||||
|
- PlaybackImageProvider provider(&cache, gfx::ColorSpace(), settings);
|
||||||
|
+ PlaybackImageProvider provider(&cache, gfx::ColorSpace(),
|
||||||
|
+ std::move(settings));
|
||||||
|
|
||||||
|
EXPECT_EQ(cache.refed_image_count(), 0);
|
||||||
|
provider.BeginRaster();
|
||||||
|
@@ -158,7 +161,8 @@ TEST(PlaybackImageProviderTest, SwapsGivenFrames) {
|
||||||
|
settings.emplace();
|
||||||
|
settings->image_to_current_frame_index = image_to_frame;
|
||||||
|
|
||||||
|
- PlaybackImageProvider provider(&cache, gfx::ColorSpace(), settings);
|
||||||
|
+ PlaybackImageProvider provider(&cache, gfx::ColorSpace(),
|
||||||
|
+ std::move(settings));
|
||||||
|
provider.BeginRaster();
|
||||||
|
|
||||||
|
SkIRect rect = SkIRect::MakeWH(10, 10);
|
||||||
|
|
@ -1,98 +0,0 @@
|
|||||||
--- a/third_party/WebKit/Source/platform/wtf/typed_arrays/ArrayBufferContents.h
|
|
||||||
+++ b/third_party/WebKit/Source/platform/wtf/typed_arrays/ArrayBufferContents.h
|
|
||||||
@@ -63,7 +63,7 @@ class WTF_EXPORT ArrayBufferContents {
|
|
||||||
allocation_length_(0),
|
|
||||||
data_(data),
|
|
||||||
data_length_(0),
|
|
||||||
- kind_(AllocationKind::kNormal),
|
|
||||||
+ kind_(WTF::ArrayBufferContents::AllocationKind::kNormal),
|
|
||||||
deleter_(deleter) {}
|
|
||||||
DataHandle(void* allocation_base,
|
|
||||||
size_t allocation_length,
|
|
||||||
@@ -94,11 +94,11 @@ class WTF_EXPORT ArrayBufferContents {
|
|
||||||
reinterpret_cast<uintptr_t>(allocation_base_) +
|
|
||||||
allocation_length_);
|
|
||||||
switch (kind_) {
|
|
||||||
- case AllocationKind::kNormal:
|
|
||||||
+ case WTF::ArrayBufferContents::AllocationKind::kNormal:
|
|
||||||
DCHECK(deleter_);
|
|
||||||
deleter_(data_);
|
|
||||||
return;
|
|
||||||
- case AllocationKind::kReservation:
|
|
||||||
+ case WTF::ArrayBufferContents::AllocationKind::kReservation:
|
|
||||||
ReleaseReservedMemory(allocation_base_, allocation_length_);
|
|
||||||
return;
|
|
||||||
}
|
|
||||||
--- a/third_party/webrtc/modules/audio_processing/aec3/aec_state.cc.orig 2017-08-15 12:45:59.433532111 +0000
|
|
||||||
+++ b/third_party/webrtc/modules/audio_processing/aec3/aec_state.cc 2017-08-15 17:52:59.691328825 +0000
|
|
||||||
@@ -10,7 +10,7 @@
|
|
||||||
|
|
||||||
#include "webrtc/modules/audio_processing/aec3/aec_state.h"
|
|
||||||
|
|
||||||
-#include <math.h>
|
|
||||||
+#include <cmath>
|
|
||||||
#include <numeric>
|
|
||||||
#include <vector>
|
|
||||||
|
|
||||||
--- a/gpu/ipc/common/mailbox_struct_traits.h
|
|
||||||
+++ b/gpu/ipc/common/mailbox_struct_traits.h
|
|
||||||
@@ -15,7 +15,7 @@ namespace mojo {
|
|
||||||
template <>
|
|
||||||
struct StructTraits<gpu::mojom::MailboxDataView, gpu::Mailbox> {
|
|
||||||
static base::span<const int8_t> name(const gpu::Mailbox& mailbox) {
|
|
||||||
- return mailbox.name;
|
|
||||||
+ return base::make_span(mailbox.name);
|
|
||||||
}
|
|
||||||
static bool Read(gpu::mojom::MailboxDataView data, gpu::Mailbox* out);
|
|
||||||
};
|
|
||||||
--- a/services/viz/public/cpp/compositing/filter_operation_struct_traits.h
|
|
||||||
+++ b/services/viz/public/cpp/compositing/filter_operation_struct_traits.h
|
|
||||||
@@ -134,7 +134,7 @@ struct StructTraits<viz::mojom::FilterOperationDataView, cc::FilterOperation> {
|
|
||||||
static base::span<const float> matrix(const cc::FilterOperation& operation) {
|
|
||||||
if (operation.type() != cc::FilterOperation::COLOR_MATRIX)
|
|
||||||
return base::span<const float>();
|
|
||||||
- return operation.matrix();
|
|
||||||
+ return base::make_span(operation.matrix());
|
|
||||||
}
|
|
||||||
|
|
||||||
static base::span<const gfx::Rect> shape(
|
|
||||||
--- a/services/viz/public/cpp/compositing/quads_struct_traits.h
|
|
||||||
+++ b/services/viz/public/cpp/compositing/quads_struct_traits.h
|
|
||||||
@@ -303,7 +303,7 @@ struct StructTraits<viz::mojom::TextureQuadStateDataView, viz::DrawQuad> {
|
|
||||||
static base::span<const float> vertex_opacity(const viz::DrawQuad& input) {
|
|
||||||
const viz::TextureDrawQuad* quad =
|
|
||||||
viz::TextureDrawQuad::MaterialCast(&input);
|
|
||||||
- return quad->vertex_opacity;
|
|
||||||
+ return base::make_span(quad->vertex_opacity);
|
|
||||||
}
|
|
||||||
|
|
||||||
static bool y_flipped(const viz::DrawQuad& input) {
|
|
||||||
--- a/third_party/WebKit/Source/platform/exported/WebCORS.cpp
|
|
||||||
+++ b/third_party/WebKit/Source/platform/exported/WebCORS.cpp
|
|
||||||
@@ -480,7 +480,7 @@ WebString AccessControlErrorString(
|
|
||||||
}
|
|
||||||
default:
|
|
||||||
NOTREACHED();
|
|
||||||
- return "";
|
|
||||||
+ return WebString();
|
|
||||||
}
|
|
||||||
}
|
|
||||||
|
|
||||||
@@ -512,7 +512,7 @@ WebString PreflightErrorString(const PreflightStatus status,
|
|
||||||
}
|
|
||||||
default:
|
|
||||||
NOTREACHED();
|
|
||||||
- return "";
|
|
||||||
+ return WebString();
|
|
||||||
}
|
|
||||||
}
|
|
||||||
|
|
||||||
@@ -533,7 +533,7 @@ WebString RedirectErrorString(const RedirectStatus status,
|
|
||||||
}
|
|
||||||
default:
|
|
||||||
NOTREACHED();
|
|
||||||
- return "";
|
|
||||||
+ return WebString();
|
|
||||||
}
|
|
||||||
}
|
|
||||||
|
|
@ -1,98 +0,0 @@
|
|||||||
From aab2cc3a20af9ebe9ddb8dfd15089f131f95817f Mon Sep 17 00:00:00 2001
|
|
||||||
From: Tomas Popela <tomas.popela@gmail.com>
|
|
||||||
Date: Fri, 20 Oct 2017 14:06:42 +0200
|
|
||||||
Subject: [PATCH] Fix the build of base/numerics with GCC
|
|
||||||
|
|
||||||
Initialize the uninitialized variables where the build is failing.
|
|
||||||
|
|
||||||
BUG=776705
|
|
||||||
|
|
||||||
Change-Id: I5782e18086a752b3676f8738930bf0553f3f97ad
|
|
||||||
---
|
|
||||||
base/numerics/checked_math_impl.h | 6 +++---
|
|
||||||
base/numerics/clamped_math_impl.h | 10 +++++-----
|
|
||||||
2 files changed, 8 insertions(+), 8 deletions(-)
|
|
||||||
|
|
||||||
diff --git a/base/numerics/checked_math_impl.h b/base/numerics/checked_math_impl.h
|
|
||||||
index 2926b37b5e..e083389ebf 100644
|
|
||||||
--- a/base/numerics/checked_math_impl.h
|
|
||||||
+++ b/base/numerics/checked_math_impl.h
|
|
||||||
@@ -67,7 +67,7 @@ struct CheckedAddOp<T,
|
|
||||||
return false;
|
|
||||||
}
|
|
||||||
|
|
||||||
- Promotion presult;
|
|
||||||
+ Promotion presult = {};
|
|
||||||
bool is_valid = true;
|
|
||||||
if (IsIntegerArithmeticSafe<Promotion, T, U>::value) {
|
|
||||||
presult = static_cast<Promotion>(x) + static_cast<Promotion>(y);
|
|
||||||
@@ -127,7 +127,7 @@ struct CheckedSubOp<T,
|
|
||||||
return false;
|
|
||||||
}
|
|
||||||
|
|
||||||
- Promotion presult;
|
|
||||||
+ Promotion presult = {};
|
|
||||||
bool is_valid = true;
|
|
||||||
if (IsIntegerArithmeticSafe<Promotion, T, U>::value) {
|
|
||||||
presult = static_cast<Promotion>(x) - static_cast<Promotion>(y);
|
|
||||||
@@ -183,7 +183,7 @@ struct CheckedMulOp<T,
|
|
||||||
return false;
|
|
||||||
}
|
|
||||||
|
|
||||||
- Promotion presult;
|
|
||||||
+ Promotion presult = {};
|
|
||||||
bool is_valid = true;
|
|
||||||
if (CheckedMulFastOp<Promotion, Promotion>::is_supported) {
|
|
||||||
// The fast op may be available with the promoted type.
|
|
||||||
diff --git a/base/numerics/clamped_math_impl.h b/base/numerics/clamped_math_impl.h
|
|
||||||
index 7b5e4346f2..303a7e945a 100644
|
|
||||||
--- a/base/numerics/clamped_math_impl.h
|
|
||||||
+++ b/base/numerics/clamped_math_impl.h
|
|
||||||
@@ -87,7 +87,7 @@ struct ClampedAddOp<T,
|
|
||||||
"The saturation result cannot be determined from the "
|
|
||||||
"provided types.");
|
|
||||||
const V saturated = CommonMaxOrMin<V>(IsValueNegative(y));
|
|
||||||
- V result;
|
|
||||||
+ V result = {};
|
|
||||||
return BASE_NUMERICS_LIKELY((CheckedAddOp<T, U>::Do(x, y, &result)))
|
|
||||||
? result
|
|
||||||
: saturated;
|
|
||||||
@@ -114,7 +114,7 @@ struct ClampedSubOp<T,
|
|
||||||
"The saturation result cannot be determined from the "
|
|
||||||
"provided types.");
|
|
||||||
const V saturated = CommonMaxOrMin<V>(!IsValueNegative(y));
|
|
||||||
- V result;
|
|
||||||
+ V result = {};
|
|
||||||
return BASE_NUMERICS_LIKELY((CheckedSubOp<T, U>::Do(x, y, &result)))
|
|
||||||
? result
|
|
||||||
: saturated;
|
|
||||||
@@ -136,7 +136,7 @@ struct ClampedMulOp<T,
|
|
||||||
if (ClampedMulFastOp<T, U>::is_supported)
|
|
||||||
return ClampedMulFastOp<T, U>::template Do<V>(x, y);
|
|
||||||
|
|
||||||
- V result;
|
|
||||||
+ V result = {};
|
|
||||||
const V saturated =
|
|
||||||
CommonMaxOrMin<V>(IsValueNegative(x) ^ IsValueNegative(y));
|
|
||||||
return BASE_NUMERICS_LIKELY((CheckedMulOp<T, U>::Do(x, y, &result)))
|
|
||||||
@@ -156,7 +156,7 @@ struct ClampedDivOp<T,
|
|
||||||
using result_type = typename MaxExponentPromotion<T, U>::type;
|
|
||||||
template <typename V = result_type>
|
|
||||||
static constexpr V Do(T x, U y) {
|
|
||||||
- V result;
|
|
||||||
+ V result = {};
|
|
||||||
if (BASE_NUMERICS_LIKELY((CheckedDivOp<T, U>::Do(x, y, &result))))
|
|
||||||
return result;
|
|
||||||
// Saturation goes to max, min, or NaN (if x is zero).
|
|
||||||
@@ -176,7 +176,7 @@ struct ClampedModOp<T,
|
|
||||||
using result_type = typename MaxExponentPromotion<T, U>::type;
|
|
||||||
template <typename V = result_type>
|
|
||||||
static constexpr V Do(T x, U y) {
|
|
||||||
- V result;
|
|
||||||
+ V result = {};
|
|
||||||
return BASE_NUMERICS_LIKELY((CheckedModOp<T, U>::Do(x, y, &result)))
|
|
||||||
? result
|
|
||||||
: x;
|
|
||||||
--
|
|
||||||
2.14.2
|
|
||||||
|
|
@ -1,77 +0,0 @@
|
|||||||
Index: extensions/browser/api/networking_private/networking_private_linux.cc
|
|
||||||
===================================================================
|
|
||||||
--- a/extensions/browser/api/networking_private/networking_private_linux.cc.orig 2016-05-05 03:01:50.000000000 +0200
|
|
||||||
+++ b/extensions/browser/api/networking_private/networking_private_linux.cc 2016-05-10 16:16:42.431052917 +0200
|
|
||||||
@@ -215,12 +215,14 @@ void NetworkingPrivateLinux::GetState(
|
|
||||||
std::unique_ptr<base::DictionaryValue> network_properties(
|
|
||||||
new base::DictionaryValue);
|
|
||||||
|
|
||||||
+ std::string* erp = error.get();
|
|
||||||
+ base::DictionaryValue* npp = network_properties.get();
|
|
||||||
// Runs GetCachedNetworkProperties on |dbus_thread|.
|
|
||||||
dbus_thread_.task_runner()->PostTaskAndReply(
|
|
||||||
FROM_HERE, base::Bind(&NetworkingPrivateLinux::GetCachedNetworkProperties,
|
|
||||||
base::Unretained(this), guid,
|
|
||||||
- base::Unretained(network_properties.get()),
|
|
||||||
- base::Unretained(error.get())),
|
|
||||||
+ base::Unretained(npp),
|
|
||||||
+ base::Unretained(erp)),
|
|
||||||
base::Bind(&GetCachedNetworkPropertiesCallback, base::Passed(&error),
|
|
||||||
base::Passed(&network_properties), success_callback,
|
|
||||||
failure_callback));
|
|
||||||
@@ -301,11 +303,12 @@ void NetworkingPrivateLinux::GetNetworks
|
|
||||||
|
|
||||||
// Runs GetAllWiFiAccessPoints on the dbus_thread and returns the
|
|
||||||
// results back to OnAccessPointsFound where the callback is fired.
|
|
||||||
+ NetworkMap* nmp = network_map.get();
|
|
||||||
dbus_thread_.task_runner()->PostTaskAndReply(
|
|
||||||
FROM_HERE,
|
|
||||||
base::Bind(&NetworkingPrivateLinux::GetAllWiFiAccessPoints,
|
|
||||||
base::Unretained(this), configured_only, visible_only, limit,
|
|
||||||
- base::Unretained(network_map.get())),
|
|
||||||
+ base::Unretained(nmp)),
|
|
||||||
base::Bind(&NetworkingPrivateLinux::OnAccessPointsFound,
|
|
||||||
base::Unretained(this), base::Passed(&network_map),
|
|
||||||
success_callback, failure_callback));
|
|
||||||
@@ -321,11 +324,12 @@ bool NetworkingPrivateLinux::GetNetworks
|
|
||||||
// Runs GetAllWiFiAccessPoints on the dbus_thread and returns the
|
|
||||||
// results back to SendNetworkListChangedEvent to fire the event. No
|
|
||||||
// callbacks are used in this case.
|
|
||||||
+ NetworkMap* nmp = network_map.get();
|
|
||||||
dbus_thread_.task_runner()->PostTaskAndReply(
|
|
||||||
FROM_HERE, base::Bind(&NetworkingPrivateLinux::GetAllWiFiAccessPoints,
|
|
||||||
base::Unretained(this), false /* configured_only */,
|
|
||||||
false /* visible_only */, 0 /* limit */,
|
|
||||||
- base::Unretained(network_map.get())),
|
|
||||||
+ base::Unretained(nmp)),
|
|
||||||
base::Bind(&NetworkingPrivateLinux::OnAccessPointsFoundViaScan,
|
|
||||||
base::Unretained(this), base::Passed(&network_map)));
|
|
||||||
|
|
||||||
@@ -506,11 +510,12 @@ void NetworkingPrivateLinux::StartConnec
|
|
||||||
|
|
||||||
std::unique_ptr<std::string> error(new std::string);
|
|
||||||
|
|
||||||
+ std::string* erp = error.get();
|
|
||||||
// Runs ConnectToNetwork on |dbus_thread|.
|
|
||||||
dbus_thread_.task_runner()->PostTaskAndReply(
|
|
||||||
FROM_HERE,
|
|
||||||
base::Bind(&NetworkingPrivateLinux::ConnectToNetwork,
|
|
||||||
- base::Unretained(this), guid, base::Unretained(error.get())),
|
|
||||||
+ base::Unretained(this), guid, base::Unretained(erp)),
|
|
||||||
base::Bind(&OnNetworkConnectOperationCompleted, base::Passed(&error),
|
|
||||||
success_callback, failure_callback));
|
|
||||||
}
|
|
||||||
@@ -524,11 +529,12 @@ void NetworkingPrivateLinux::StartDiscon
|
|
||||||
|
|
||||||
std::unique_ptr<std::string> error(new std::string);
|
|
||||||
|
|
||||||
+ std::string* erp = error.get();
|
|
||||||
// Runs DisconnectFromNetwork on |dbus_thread|.
|
|
||||||
dbus_thread_.task_runner()->PostTaskAndReply(
|
|
||||||
FROM_HERE,
|
|
||||||
base::Bind(&NetworkingPrivateLinux::DisconnectFromNetwork,
|
|
||||||
- base::Unretained(this), guid, base::Unretained(error.get())),
|
|
||||||
+ base::Unretained(this), guid, base::Unretained(erp)),
|
|
||||||
base::Bind(&OnNetworkConnectOperationCompleted, base::Passed(&error),
|
|
||||||
success_callback, failure_callback));
|
|
||||||
}
|
|
@ -1,34 +0,0 @@
|
|||||||
From 7f90e2cceda0458cf56026eb6ccffb961a47804b Mon Sep 17 00:00:00 2001
|
|
||||||
From: Raphael Kubo da Costa <raphael.kubo.da.costa@intel.com>
|
|
||||||
Date: Fri, 13 Oct 2017 15:49:32 +0200
|
|
||||||
Subject: [PATCH] IWYU: Include math.h for round(3).
|
|
||||||
|
|
||||||
math.h was being implicitly included, which can break the build with
|
|
||||||
alternative libc implementations.
|
|
||||||
|
|
||||||
Bug: None
|
|
||||||
Change-Id: I969b320b65d0f44abb33d3e1036cfbcb859a4952
|
|
||||||
Reviewed-on: https://webrtc-review.googlesource.com/9384
|
|
||||||
Reviewed-by: Tommi <tommi@webrtc.org>
|
|
||||||
Commit-Queue: Raphael Kubo da Costa (rakuco) <raphael.kubo.da.costa@intel.com>
|
|
||||||
Cr-Commit-Position: refs/heads/master@{#20292}
|
|
||||||
---
|
|
||||||
p2p/base/port.cc | 2 ++
|
|
||||||
1 file changed, 2 insertions(+)
|
|
||||||
|
|
||||||
diff --git a/third_party/webrtc/p2p/base/port.cc b/third_party/webrtc/p2p/base/port.cc
|
|
||||||
index a1b478d11..81aa0aadb 100644
|
|
||||||
--- a/third_party/webrtc/p2p/base/port.cc
|
|
||||||
+++ b/third_party/webrtc/p2p/base/port.cc
|
|
||||||
@@ -10,6 +10,8 @@
|
|
||||||
|
|
||||||
#include "p2p/base/port.h"
|
|
||||||
|
|
||||||
+#include <math.h>
|
|
||||||
+
|
|
||||||
#include <algorithm>
|
|
||||||
#include <vector>
|
|
||||||
|
|
||||||
--
|
|
||||||
2.15.0
|
|
||||||
|
|
@ -5,7 +5,7 @@
|
|||||||
, gtk2, hunspell, icu, libevent, libjpeg, libnotify
|
, gtk2, hunspell, icu, libevent, libjpeg, libnotify
|
||||||
, libstartup_notification, libvpx, makeWrapper, libGLU_combined
|
, libstartup_notification, libvpx, makeWrapper, libGLU_combined
|
||||||
, nspr, nss, pango, perl, python, libpulseaudio, sqlite
|
, nspr, nss, pango, perl, python, libpulseaudio, sqlite
|
||||||
, unzip, xlibs, which, yasm, zip, zlib
|
, unzip, xorg, which, yasm, zip, zlib
|
||||||
}:
|
}:
|
||||||
|
|
||||||
stdenv.mkDerivation rec {
|
stdenv.mkDerivation rec {
|
||||||
@ -44,7 +44,7 @@ stdenv.mkDerivation rec {
|
|||||||
hunspell icu libevent libjpeg libnotify libstartup_notification
|
hunspell icu libevent libjpeg libnotify libstartup_notification
|
||||||
libvpx makeWrapper libGLU_combined nspr nss pango perl pkgconfig python
|
libvpx makeWrapper libGLU_combined nspr nss pango perl pkgconfig python
|
||||||
libpulseaudio sqlite unzip which yasm zip zlib
|
libpulseaudio sqlite unzip which yasm zip zlib
|
||||||
] ++ (with xlibs; [
|
] ++ (with xorg; [
|
||||||
libX11 libXext libXft libXi libXrender libXScrnSaver
|
libX11 libXext libXft libXi libXrender libXScrnSaver
|
||||||
libXt pixman scrnsaverproto xextproto
|
libXt pixman scrnsaverproto xextproto
|
||||||
]);
|
]);
|
||||||
|
@ -29,13 +29,13 @@ let
|
|||||||
in python3Packages.buildPythonApplication rec {
|
in python3Packages.buildPythonApplication rec {
|
||||||
name = "qutebrowser-${version}${versionPostfix}";
|
name = "qutebrowser-${version}${versionPostfix}";
|
||||||
namePrefix = "";
|
namePrefix = "";
|
||||||
version = "1.1.1";
|
version = "1.2.0";
|
||||||
versionPostfix = "";
|
versionPostfix = "";
|
||||||
|
|
||||||
# the release tarballs are different from the git checkout!
|
# the release tarballs are different from the git checkout!
|
||||||
src = fetchurl {
|
src = fetchurl {
|
||||||
url = "https://github.com/qutebrowser/qutebrowser/releases/download/v${version}/${name}.tar.gz";
|
url = "https://github.com/qutebrowser/qutebrowser/releases/download/v${version}/${name}.tar.gz";
|
||||||
sha256 = "09fa77rg1yrl8cksavxmgm9z2246s4d8wjbkl5jm1gsam345f7mz";
|
sha256 = "0za0iiljs86y2n4znwk8cgn948xcv8iv80a9qfm87zl18y3ashly";
|
||||||
};
|
};
|
||||||
|
|
||||||
# Needs tox
|
# Needs tox
|
||||||
|
@ -32,7 +32,7 @@ in
|
|||||||
buildFHSUserEnv {
|
buildFHSUserEnv {
|
||||||
name = "dropbox";
|
name = "dropbox";
|
||||||
|
|
||||||
targetPkgs = pkgs: with pkgs; with xlibs; [
|
targetPkgs = pkgs: with pkgs; with xorg; [
|
||||||
libICE libSM libX11 libXcomposite libXdamage libXext libXfixes libXrender
|
libICE libSM libX11 libXcomposite libXdamage libXext libXfixes libXrender
|
||||||
libXxf86vm libxcb xkeyboardconfig
|
libXxf86vm libxcb xkeyboardconfig
|
||||||
curl dbus firefox-bin fontconfig freetype gcc glib gnutar libxml2 libxslt
|
curl dbus firefox-bin fontconfig freetype gcc glib gnutar libxml2 libxslt
|
||||||
|
@ -2,7 +2,6 @@
|
|||||||
fetchgit, fetchhg, fetchbzr, fetchsvn }:
|
fetchgit, fetchhg, fetchbzr, fetchsvn }:
|
||||||
|
|
||||||
let
|
let
|
||||||
isx86_64 = stdenv.lib.any (n: n == stdenv.system) stdenv.lib.platforms.x86_64;
|
|
||||||
gui = true; # Might be implemented with nixpkgs config.
|
gui = true; # Might be implemented with nixpkgs config.
|
||||||
in
|
in
|
||||||
buildGoPackage rec {
|
buildGoPackage rec {
|
||||||
@ -22,11 +21,11 @@ buildGoPackage rec {
|
|||||||
|
|
||||||
nativeBuildInputs = [ pkgconfig ];
|
nativeBuildInputs = [ pkgconfig ];
|
||||||
buildInputs = [ trousers gtk3 gtkspell3 ]
|
buildInputs = [ trousers gtk3 gtkspell3 ]
|
||||||
++ stdenv.lib.optional isx86_64 dclxvi
|
++ stdenv.lib.optional stdenv.hostPlatform.isx86_64 dclxvi
|
||||||
++ stdenv.lib.optionals gui [ wrapGAppsHook ];
|
++ stdenv.lib.optionals gui [ wrapGAppsHook ];
|
||||||
buildFlags = stdenv.lib.optionalString (!gui) "-tags nogui";
|
buildFlags = stdenv.lib.optionalString (!gui) "-tags nogui";
|
||||||
excludedPackages = "\\(appengine\\|bn256cgo\\)";
|
excludedPackages = "\\(appengine\\|bn256cgo\\)";
|
||||||
postPatch = stdenv.lib.optionalString isx86_64 ''
|
postPatch = stdenv.lib.optionalString stdenv.hostPlatform.isx86_64 ''
|
||||||
grep -r 'bn256' | awk -F: '{print $1}' | xargs sed -i \
|
grep -r 'bn256' | awk -F: '{print $1}' | xargs sed -i \
|
||||||
-e "s,golang.org/x/crypto/bn256,github.com/agl/pond/bn256cgo,g" \
|
-e "s,golang.org/x/crypto/bn256,github.com/agl/pond/bn256cgo,g" \
|
||||||
-e "s,bn256\.,bn256cgo.,g"
|
-e "s,bn256\.,bn256cgo.,g"
|
||||||
|
@ -24,7 +24,7 @@
|
|||||||
, gnutls
|
, gnutls
|
||||||
, zlib
|
, zlib
|
||||||
, jsoncpp
|
, jsoncpp
|
||||||
, xlibs
|
, xorg
|
||||||
, libargon2
|
, libargon2
|
||||||
, cryptopp
|
, cryptopp
|
||||||
, openssl
|
, openssl
|
||||||
@ -114,7 +114,7 @@ stdenv.mkDerivation rec {
|
|||||||
zlib
|
zlib
|
||||||
jsoncpp
|
jsoncpp
|
||||||
restbed
|
restbed
|
||||||
xlibs.libX11
|
xorg.libX11
|
||||||
libargon2
|
libargon2
|
||||||
cryptopp
|
cryptopp
|
||||||
openssl
|
openssl
|
||||||
|
@ -1,5 +1,5 @@
|
|||||||
{ stdenv, lib, fetchurl, dpkg, gnome2, atk, cairo, gdk_pixbuf, glib, freetype,
|
{ stdenv, lib, fetchurl, dpkg, gnome2, atk, cairo, gdk_pixbuf, glib, freetype,
|
||||||
fontconfig, dbus, libX11, xlibs, libXi, libXcursor, libXdamage, libXrandr,
|
fontconfig, dbus, libX11, xorg, libXi, libXcursor, libXdamage, libXrandr,
|
||||||
libXcomposite, libXext, libXfixes, libXrender, libXtst, libXScrnSaver, nss,
|
libXcomposite, libXext, libXfixes, libXrender, libXtst, libXScrnSaver, nss,
|
||||||
nspr, alsaLib, cups, expat, udev
|
nspr, alsaLib, cups, expat, udev
|
||||||
}:
|
}:
|
||||||
@ -33,7 +33,7 @@ let
|
|||||||
nss
|
nss
|
||||||
stdenv.cc.cc
|
stdenv.cc.cc
|
||||||
udev
|
udev
|
||||||
xlibs.libxcb
|
xorg.libxcb
|
||||||
];
|
];
|
||||||
|
|
||||||
in
|
in
|
||||||
|
@ -1,5 +1,5 @@
|
|||||||
{ stdenv, lib, fetchurl, dpkg, gnome2, atk, cairo, gdk_pixbuf, glib, freetype,
|
{ stdenv, lib, fetchurl, dpkg, gnome2, atk, cairo, gdk_pixbuf, glib, freetype,
|
||||||
fontconfig, dbus, libX11, xlibs, libXi, libXcursor, libXdamage, libXrandr,
|
fontconfig, dbus, libX11, xorg, libXi, libXcursor, libXdamage, libXrandr,
|
||||||
libXcomposite, libXext, libXfixes, libXrender, libXtst, libXScrnSaver, nss,
|
libXcomposite, libXext, libXfixes, libXrender, libXtst, libXScrnSaver, nss,
|
||||||
nspr, alsaLib, cups, expat, udev
|
nspr, alsaLib, cups, expat, udev
|
||||||
}:
|
}:
|
||||||
@ -33,7 +33,7 @@ let
|
|||||||
nss
|
nss
|
||||||
stdenv.cc.cc
|
stdenv.cc.cc
|
||||||
udev
|
udev
|
||||||
xlibs.libxcb
|
xorg.libxcb
|
||||||
];
|
];
|
||||||
|
|
||||||
in
|
in
|
||||||
|
@ -25,7 +25,7 @@ stdenv.mkDerivation rec {
|
|||||||
})
|
})
|
||||||
];
|
];
|
||||||
|
|
||||||
NIX_CFLAGS_COMPILE = "-Wno-error=unused-result";
|
NIX_CFLAGS_COMPILE = [ "-Wno-error=unused-result" "-Wno-error=duplicate-decl-specifier" ];
|
||||||
|
|
||||||
meta = {
|
meta = {
|
||||||
description = "An IRC proxy (bouncer)";
|
description = "An IRC proxy (bouncer)";
|
||||||
|
@ -1,20 +1,42 @@
|
|||||||
{ stdenv, fetchurl, pkgconfig, lua5_2, file, ncurses, gmime, pcre-cpp
|
{ stdenv, fetchurl, pkgconfig, lua, file, ncurses, gmime, pcre-cpp
|
||||||
, perl, perlPackages }:
|
, perl, perlPackages, makeWrapper
|
||||||
|
, debugBuild ? false
|
||||||
|
, alternativeGlobalConfigFilePath ? null
|
||||||
|
}:
|
||||||
|
|
||||||
let
|
let
|
||||||
version = "2.9";
|
version = "3.1";
|
||||||
|
binaryName = if debugBuild then "lumail2-debug" else "lumail2";
|
||||||
|
alternativeConfig = builtins.toFile "lumail2.lua"
|
||||||
|
(builtins.readFile alternativeGlobalConfigFilePath);
|
||||||
|
|
||||||
|
globalConfig = if isNull alternativeGlobalConfigFilePath then ''
|
||||||
|
mkdir -p $out/etc/lumail2
|
||||||
|
cp global.config.lua $out/etc/lumail2.lua
|
||||||
|
for n in ./lib/*.lua; do
|
||||||
|
cp "$n" $out/etc/lumail2/
|
||||||
|
done
|
||||||
|
'' else ''
|
||||||
|
ln -s ${alternativeConfig} $out/etc/lumail2.lua
|
||||||
|
'';
|
||||||
|
|
||||||
|
getPath = type : "${lua}/lib/?.${type};";
|
||||||
|
luaPath = getPath "lua";
|
||||||
|
luaCPath = getPath "so";
|
||||||
in
|
in
|
||||||
stdenv.mkDerivation {
|
stdenv.mkDerivation {
|
||||||
name = "lumail-${version}";
|
name = "lumail-${version}";
|
||||||
|
|
||||||
src = fetchurl {
|
src = fetchurl {
|
||||||
url = "https://lumail.org/download/lumail-${version}.tar.gz";
|
url = "https://lumail.org/download/lumail-${version}.tar.gz";
|
||||||
sha256 = "1rni5lbic36v4cd1r0l28542x0hlmfqkl6nac79gln491in2l2sc";
|
sha256 = "0vj7p7f02m3w8wb74ilajcwznc4ai4h2ikkz9ildy0c00aqsi5w4";
|
||||||
};
|
};
|
||||||
|
|
||||||
nativeBuildInputs = [ pkgconfig ];
|
enableParallelBuilding = true;
|
||||||
|
|
||||||
|
nativeBuildInputs = [ pkgconfig makeWrapper ];
|
||||||
buildInputs = [
|
buildInputs = [
|
||||||
lua5_2 file ncurses gmime pcre-cpp
|
lua file ncurses gmime pcre-cpp
|
||||||
perl perlPackages.JSON perlPackages.NetIMAPClient
|
perl perlPackages.JSON perlPackages.NetIMAPClient
|
||||||
];
|
];
|
||||||
|
|
||||||
@ -29,16 +51,26 @@ stdenv.mkDerivation {
|
|||||||
sed -e "s|^#\!\(.*/perl.*\)$|#\!\1$perlFlags|" -i perl.d/imap-proxy
|
sed -e "s|^#\!\(.*/perl.*\)$|#\!\1$perlFlags|" -i perl.d/imap-proxy
|
||||||
'';
|
'';
|
||||||
|
|
||||||
|
buildFlags = if debugBuild then "lumail2-debug" else "";
|
||||||
|
|
||||||
|
installPhase = ''
|
||||||
|
mkdir -p $out/bin || true
|
||||||
|
install -m755 ${binaryName} $out/bin/
|
||||||
|
''
|
||||||
|
+ globalConfig
|
||||||
|
+ ''
|
||||||
|
wrapProgram $out/bin/${binaryName} \
|
||||||
|
--prefix LUA_PATH : "${luaPath}" \
|
||||||
|
--prefix LUA_CPATH : "${luaCPath}"
|
||||||
|
'';
|
||||||
|
|
||||||
makeFlags = [
|
makeFlags = [
|
||||||
"LVER=lua"
|
"LVER=lua"
|
||||||
"PREFIX=$(out)"
|
"PREFIX=$(out)"
|
||||||
"SYSCONFDIR=$(out)/etc"
|
"SYSCONFDIR=$(out)/etc"
|
||||||
|
"LUMAIL_LIBS=$(out)/etc/lumail2"
|
||||||
];
|
];
|
||||||
|
|
||||||
postInstall = ''
|
|
||||||
cp lumail2.user.lua $out/etc/lumail2/
|
|
||||||
'';
|
|
||||||
|
|
||||||
meta = with stdenv.lib; {
|
meta = with stdenv.lib; {
|
||||||
description = "Console-based email client";
|
description = "Console-based email client";
|
||||||
homepage = https://lumail.org/;
|
homepage = https://lumail.org/;
|
||||||
|
@ -1,24 +1,80 @@
|
|||||||
{ stdenv, fetchurl, jre, makeWrapper }:
|
{ stdenv, lib, fetchFromGitHub, gradle, perl, jre, makeWrapper, makeDesktopItem, mplayer }:
|
||||||
|
|
||||||
with stdenv.lib;
|
let
|
||||||
|
version = "6.6.3-build-253";
|
||||||
|
name = "frostwire-desktop-${version}";
|
||||||
|
|
||||||
stdenv.mkDerivation rec {
|
src = fetchFromGitHub {
|
||||||
version = "6.4.5";
|
owner = "frostwire";
|
||||||
name = "frostwire-${version}";
|
repo = "frostwire";
|
||||||
|
rev = name;
|
||||||
src = fetchurl {
|
sha256 = "1bqv942hfz12i3b3nm1pfwdp7f58nzjxg44h31f3q47719hh8kd7";
|
||||||
url = "http://dl.frostwire.com/frostwire/${version}/frostwire-${version}.noarch.tar.gz";
|
|
||||||
sha256 = "01nq1vwkqdidmprlnz5d3c5412r6igv689barv64dmb9m6iqg53z";
|
|
||||||
};
|
};
|
||||||
|
|
||||||
|
desktopItem = makeDesktopItem {
|
||||||
|
name = "frostwire";
|
||||||
|
desktopName = "FrostWire";
|
||||||
|
genericName = "P2P Bittorrent client";
|
||||||
|
exec = "frostwire";
|
||||||
|
icon = "frostwire";
|
||||||
|
comment = "Search and explore all kinds of files on the Bittorrent network";
|
||||||
|
categories = "Network;FileTransfer;P2P;";
|
||||||
|
};
|
||||||
|
|
||||||
|
# fake build to pre-download deps into fixed-output derivation
|
||||||
|
deps = stdenv.mkDerivation {
|
||||||
|
name = "${name}-deps";
|
||||||
|
inherit src;
|
||||||
|
buildInputs = [ gradle perl ];
|
||||||
|
buildPhase = ''
|
||||||
|
export GRADLE_USER_HOME=$(mktemp -d)
|
||||||
|
( cd desktop
|
||||||
|
gradle --no-daemon build
|
||||||
|
)
|
||||||
|
'';
|
||||||
|
# perl code mavenizes pathes (com.squareup.okio/okio/1.13.0/a9283170b7305c8d92d25aff02a6ab7e45d06cbe/okio-1.13.0.jar -> com/squareup/okio/okio/1.13.0/okio-1.13.0.jar)
|
||||||
|
installPhase = ''
|
||||||
|
find $GRADLE_USER_HOME -type f -regex '.*\.\(jar\|pom\)' \
|
||||||
|
| perl -pe 's#(.*/([^/]+)/([^/]+)/([^/]+)/[0-9a-f]{30,40}/([^/\s]+))$# ($x = $2) =~ tr|\.|/|; "install -Dm444 $1 \$out/$x/$3/$4/$5" #e' \
|
||||||
|
| sh
|
||||||
|
'';
|
||||||
|
outputHashAlgo = "sha256";
|
||||||
|
outputHashMode = "recursive";
|
||||||
|
outputHash = "0p279i41q7pn6nss8vndv3g4qzrvj3pmhdxq50kymwkyp2kly3lc";
|
||||||
|
};
|
||||||
|
|
||||||
|
in stdenv.mkDerivation {
|
||||||
|
inherit name src;
|
||||||
|
|
||||||
nativeBuildInputs = [ makeWrapper ];
|
nativeBuildInputs = [ makeWrapper ];
|
||||||
|
buildInputs = [ gradle ];
|
||||||
|
|
||||||
|
buildPhase = ''
|
||||||
|
export GRADLE_USER_HOME=$(mktemp -d)
|
||||||
|
( cd desktop
|
||||||
|
substituteInPlace src/com/frostwire/gui/player/MediaPlayerLinux.java \
|
||||||
|
--replace /usr/bin/mplayer ${mplayer}/bin/mplayer
|
||||||
|
substituteInPlace build.gradle \
|
||||||
|
--replace 'mavenCentral()' 'mavenLocal(); maven { url uri("${deps}") }'
|
||||||
|
gradle --offline --no-daemon build
|
||||||
|
)
|
||||||
|
'';
|
||||||
|
|
||||||
installPhase = ''
|
installPhase = ''
|
||||||
mkdir -p $out/share/java
|
mkdir -p $out/lib $out/share/java
|
||||||
mv $(ls */*.jar) $out/share/java
|
|
||||||
|
|
||||||
makeWrapper $out/share/java/frostwire $out/bin/frostwire \
|
cp desktop/build/libs/frostwire.jar $out/share/java/frostwire.jar
|
||||||
--prefix PATH : ${jre}/bin/
|
|
||||||
|
cp ${ { x86_64-darwin = "desktop/lib/native/*.dylib";
|
||||||
|
x86_64-linux = "desktop/lib/native/libjlibtorrent.so";
|
||||||
|
i686-linux = "desktop/lib/native/libjlibtorrentx86.so";
|
||||||
|
}.${stdenv.system} or (throw "unsupported system ${stdenv.system}")
|
||||||
|
} $out/lib
|
||||||
|
|
||||||
|
cp -dpR ${desktopItem}/share $out
|
||||||
|
|
||||||
|
makeWrapper ${jre}/bin/java $out/bin/frostwire \
|
||||||
|
--add-flags "-Djava.library.path=$out/lib -jar $out/share/java/frostwire.jar"
|
||||||
'';
|
'';
|
||||||
|
|
||||||
meta = with stdenv.lib; {
|
meta = with stdenv.lib; {
|
||||||
@ -26,6 +82,6 @@ stdenv.mkDerivation rec {
|
|||||||
description = "BitTorrent Client and Cloud File Downloader";
|
description = "BitTorrent Client and Cloud File Downloader";
|
||||||
license = licenses.gpl2;
|
license = licenses.gpl2;
|
||||||
maintainers = with maintainers; [ gavin ];
|
maintainers = with maintainers; [ gavin ];
|
||||||
platforms = platforms.all;
|
platforms = [ "x86_64-darwin" "x86_64-linux" "i686-linux" ];
|
||||||
};
|
};
|
||||||
}
|
}
|
||||||
|
31
pkgs/applications/networking/p2p/frostwire/frostwire-bin.nix
Normal file
31
pkgs/applications/networking/p2p/frostwire/frostwire-bin.nix
Normal file
@ -0,0 +1,31 @@
|
|||||||
|
{ stdenv, fetchurl, jre, makeWrapper }:
|
||||||
|
|
||||||
|
with stdenv.lib;
|
||||||
|
|
||||||
|
stdenv.mkDerivation rec {
|
||||||
|
version = "6.6.3";
|
||||||
|
name = "frostwire-${version}";
|
||||||
|
|
||||||
|
src = fetchurl {
|
||||||
|
url = "http://dl.frostwire.com/frostwire/${version}/frostwire-${version}.noarch.tar.gz";
|
||||||
|
sha256 = "0n1g0am3d2fxw4a4zzzyif1fal1x3xch9q7743jhkkm3mldl2grw";
|
||||||
|
};
|
||||||
|
|
||||||
|
nativeBuildInputs = [ makeWrapper ];
|
||||||
|
|
||||||
|
installPhase = ''
|
||||||
|
mkdir -p $out/share/java
|
||||||
|
mv $(ls */*.jar) $out/share/java
|
||||||
|
|
||||||
|
makeWrapper $out/share/java/frostwire $out/bin/frostwire \
|
||||||
|
--prefix PATH : ${jre}/bin/
|
||||||
|
'';
|
||||||
|
|
||||||
|
meta = with stdenv.lib; {
|
||||||
|
homepage = http://www.frostwire.com/;
|
||||||
|
description = "BitTorrent Client and Cloud File Downloader";
|
||||||
|
license = licenses.gpl2;
|
||||||
|
maintainers = with maintainers; [ gavin ];
|
||||||
|
platforms = platforms.all;
|
||||||
|
};
|
||||||
|
}
|
@ -15,7 +15,7 @@
|
|||||||
, cairo
|
, cairo
|
||||||
, pango
|
, pango
|
||||||
, gnome3
|
, gnome3
|
||||||
, xlibs
|
, xorg
|
||||||
, libpng12
|
, libpng12
|
||||||
, freetype
|
, freetype
|
||||||
, fontconfig
|
, fontconfig
|
||||||
@ -143,11 +143,11 @@ let
|
|||||||
cairo
|
cairo
|
||||||
pango
|
pango
|
||||||
gnome3.dconf
|
gnome3.dconf
|
||||||
xlibs.libX11
|
xorg.libX11
|
||||||
xlibs.libXext
|
xorg.libXext
|
||||||
xlibs.libXrender
|
xorg.libXrender
|
||||||
xlibs.libXinerama
|
xorg.libXinerama
|
||||||
xlibs.libXfixes
|
xorg.libXfixes
|
||||||
libpng12
|
libpng12
|
||||||
libidn
|
libidn
|
||||||
zlib
|
zlib
|
||||||
|
@ -9,20 +9,20 @@ let
|
|||||||
|
|
||||||
mkLdPath = ps: lib.makeLibraryPath (with ps; [ qt4 dbus alsaLib ]);
|
mkLdPath = ps: lib.makeLibraryPath (with ps; [ qt4 dbus alsaLib ]);
|
||||||
|
|
||||||
deps = ps: (with ps; [ dbus zlib alsaLib fontconfig freetype libpng12 libjpeg ]) ++ (with ps.xlibs; [ libX11 libXext libXdamage libXrandr libXrender libXfixes libSM libXtst libXinerama]);
|
deps = ps: (with ps; [ dbus zlib alsaLib fontconfig freetype libpng12 libjpeg ]) ++ (with ps.xorg; [ libX11 libXext libXdamage libXrandr libXrender libXfixes libSM libXtst libXinerama]);
|
||||||
tvldpath32 = lib.makeLibraryPath (with pkgsi686Linux; [ qt4 "$out/share/teamviewer/tv_bin/wine" ] ++ deps pkgsi686Linux);
|
tvldpath32 = lib.makeLibraryPath (with pkgsi686Linux; [ qt4 "$out/share/teamviewer/tv_bin/wine" ] ++ deps pkgsi686Linux);
|
||||||
tvldpath64 = lib.makeLibraryPath (deps pkgs);
|
tvldpath64 = lib.makeLibraryPath (deps pkgs);
|
||||||
in
|
in
|
||||||
|
|
||||||
stdenv.mkDerivation rec {
|
stdenv.mkDerivation rec {
|
||||||
name = "teamviewer-${version}";
|
name = "teamviewer-${version}";
|
||||||
version = "12.0.85001";
|
version = "12.0.90041";
|
||||||
|
|
||||||
src = fetchurl {
|
src = fetchurl {
|
||||||
# There is a 64-bit package, but it has no differences apart from Debian dependencies.
|
# There is a 64-bit package, but it has no differences apart from Debian dependencies.
|
||||||
# Generic versioned packages (teamviewer_${version}_i386.tar.xz) are not available for some reason.
|
# Generic versioned packages (teamviewer_${version}_i386.tar.xz) are not available for some reason.
|
||||||
url = "https://dl.tvcdn.de/download/version_12x/teamviewer_${version}_i386.deb";
|
url = "https://dl.tvcdn.de/download/version_12x/teamviewer_${version}_i386.deb";
|
||||||
sha256 = "01vzky22gisjxa4ihaygkb7jwhl4z9ldd9lli8fc863nxxbrawks";
|
sha256 = "19gf68xadayncrbpkk3v05xm698zavv8mz8ia6jhadrh5s6i0bwg";
|
||||||
};
|
};
|
||||||
|
|
||||||
unpackPhase = ''
|
unpackPhase = ''
|
||||||
|
@ -32,6 +32,6 @@ stdenv.mkDerivation rec {
|
|||||||
description = "Desktop client for Seafile, the Next-generation Open Source Cloud Storage";
|
description = "Desktop client for Seafile, the Next-generation Open Source Cloud Storage";
|
||||||
license = licenses.asl20;
|
license = licenses.asl20;
|
||||||
platforms = platforms.linux;
|
platforms = platforms.linux;
|
||||||
maintainers = [ maintainers.calrama ];
|
maintainers = [ ];
|
||||||
};
|
};
|
||||||
}
|
}
|
||||||
|
@ -4,16 +4,16 @@
|
|||||||
}:
|
}:
|
||||||
|
|
||||||
let
|
let
|
||||||
arch = if stdenv.system == "x86_64-linux" then "x86_64"
|
arch = if stdenv.system == "x86_64-linux" then "x64"
|
||||||
else if stdenv.system == "i686-linux" then "i386"
|
else if stdenv.system == "i686-linux" then "x86"
|
||||||
else throw "Spideroak client for: ${stdenv.system} not supported!";
|
else throw "Spideroak client for: ${stdenv.system} not supported!";
|
||||||
|
|
||||||
interpreter = if stdenv.system == "x86_64-linux" then "ld-linux-x86-64.so.2"
|
interpreter = if stdenv.system == "x86_64-linux" then "ld-linux-x86-64.so.2"
|
||||||
else if stdenv.system == "i686-linux" then "ld-linux.so.2"
|
else if stdenv.system == "i686-linux" then "ld-linux.so.2"
|
||||||
else throw "Spideroak client for: ${stdenv.system} not supported!";
|
else throw "Spideroak client for: ${stdenv.system} not supported!";
|
||||||
|
|
||||||
sha256 = if stdenv.system == "x86_64-linux" then "0k87rn4aj0v79rz9jvwspnwzmh031ih0y74ra88nc8kl8j6b6gjm"
|
sha256 = if stdenv.system == "x86_64-linux" then "993e01986e3657d6fa979b8d0f45ac25b8223c18f75555016a9f92e651e91b1f"
|
||||||
else if stdenv.system == "i686-linux" then "1wbxfikj8f7rx26asswqrfp9vpk8w5941s21y1pnaff2gcac8m3z"
|
else if stdenv.system == "i686-linux" then "d12c09c3a01bfa48bdecc8763bbf2c7f10b71cea5bcecc177dad031ba79bc83d"
|
||||||
else throw "Spideroak client for: ${stdenv.system} not supported!";
|
else throw "Spideroak client for: ${stdenv.system} not supported!";
|
||||||
|
|
||||||
ldpath = stdenv.lib.makeLibraryPath [
|
ldpath = stdenv.lib.makeLibraryPath [
|
||||||
@ -21,14 +21,14 @@ let
|
|||||||
libX11 libXext libXrender zlib
|
libX11 libXext libXrender zlib
|
||||||
];
|
];
|
||||||
|
|
||||||
version = "6.1.9";
|
version = "7.0.1";
|
||||||
|
|
||||||
in stdenv.mkDerivation {
|
in stdenv.mkDerivation {
|
||||||
name = "spideroak-${version}";
|
name = "spideroak-${version}";
|
||||||
|
|
||||||
src = fetchurl {
|
src = fetchurl {
|
||||||
name = "spideroak-${version}-${arch}";
|
name = "SpiderOakONE-${version}-slack_tar_${arch}.tgz";
|
||||||
url = "https://spideroak.com/getbuild?platform=slackware&arch=${arch}&version=${version}";
|
url = "https://spideroak.com/release/spideroak/slack_tar_${arch}";
|
||||||
inherit sha256;
|
inherit sha256;
|
||||||
};
|
};
|
||||||
|
|
||||||
|
@ -24,7 +24,6 @@
|
|||||||
, qtwebengine
|
, qtwebengine
|
||||||
, sqlite
|
, sqlite
|
||||||
, xorg
|
, xorg
|
||||||
, xlibs
|
|
||||||
, zlib
|
, zlib
|
||||||
# The provided wrapper does this, but since we don't use it
|
# The provided wrapper does this, but since we don't use it
|
||||||
# we emulate the behavior. The downside is that this
|
# we emulate the behavior. The downside is that this
|
||||||
@ -78,7 +77,7 @@ let
|
|||||||
orc
|
orc
|
||||||
sqlite
|
sqlite
|
||||||
xorg.libX11
|
xorg.libX11
|
||||||
xlibs.xcbutilkeysyms
|
xorg.xcbutilkeysyms
|
||||||
xorg.libxcb
|
xorg.libxcb
|
||||||
xorg.libXcomposite
|
xorg.libXcomposite
|
||||||
xorg.libXext
|
xorg.libXext
|
||||||
|
@ -31,7 +31,7 @@ zoteroSrc = stdenv.mkDerivation rec {
|
|||||||
|
|
||||||
fhsEnv = buildFHSUserEnv {
|
fhsEnv = buildFHSUserEnv {
|
||||||
name = "zotero-fhs-env";
|
name = "zotero-fhs-env";
|
||||||
targetPkgs = pkgs: with pkgs; with xlibs; [
|
targetPkgs = pkgs: with pkgs; with xorg; [
|
||||||
gtk3 dbus-glib
|
gtk3 dbus-glib
|
||||||
libXt nss
|
libXt nss
|
||||||
];
|
];
|
||||||
|
@ -1,4 +1,4 @@
|
|||||||
{stdenv, fetchurl, xlibs, cmake, subversion, libGLU_combined, qt5, boost,
|
{stdenv, fetchurl, cmake, subversion, libGLU_combined, qt5, boost,
|
||||||
python27, python27Packages}:
|
python27, python27Packages}:
|
||||||
|
|
||||||
stdenv.mkDerivation rec {
|
stdenv.mkDerivation rec {
|
||||||
|
@ -1,23 +1,26 @@
|
|||||||
{stdenv, fetchurl, cmake}:
|
{ stdenv, fetchzip, cmake }:
|
||||||
|
|
||||||
stdenv.mkDerivation rec {
|
stdenv.mkDerivation rec {
|
||||||
name = "${pname}-${version}";
|
name = "${pname}-${version}";
|
||||||
pname = "clingo";
|
pname = "clingo";
|
||||||
version = "5.2.2";
|
version = "5.2.2";
|
||||||
|
|
||||||
src = fetchurl {
|
src = fetchzip {
|
||||||
url = "https://github.com/potassco/clingo/releases/v${version}.tar.gz";
|
url = "https://github.com/potassco/clingo/archive/v${version}.tar.gz";
|
||||||
sha256 = "1kxzb385g8p9mqm1x9wvjrigifa09w6vj0wl7kradibm5qagh7ns";
|
sha256 = "04rjwpna37gzm8vxr09z3z6ay8y8cxbjd8lga7xvqfpn2l178zjm";
|
||||||
};
|
};
|
||||||
|
|
||||||
buildInputs = [];
|
buildInputs = [];
|
||||||
nativeBuildInputs = [cmake];
|
nativeBuildInputs = [cmake];
|
||||||
|
|
||||||
|
cmakeFlags = [ "-DCLINGO_BUILD_WITH_PYTHON=OFF" ];
|
||||||
|
|
||||||
meta = {
|
meta = {
|
||||||
inherit version;
|
inherit version;
|
||||||
description = "ASP system to ground and solve logic programs";
|
description = "ASP system to ground and solve logic programs";
|
||||||
license = stdenv.lib.licenses.mit;
|
license = stdenv.lib.licenses.mit;
|
||||||
maintainers = [stdenv.lib.maintainers.raskin];
|
maintainers = [stdenv.lib.maintainers.raskin];
|
||||||
platforms = stdenv.lib.platforms.linux;
|
platforms = stdenv.lib.platforms.unix;
|
||||||
homepage = "https://potassco.org/";
|
homepage = "https://potassco.org/";
|
||||||
downloadPage = "https://github.com/potassco/clingo/releases/";
|
downloadPage = "https://github.com/potassco/clingo/releases/";
|
||||||
};
|
};
|
||||||
|
@ -2,14 +2,14 @@
|
|||||||
|
|
||||||
stdenv.mkDerivation rec {
|
stdenv.mkDerivation rec {
|
||||||
name = "TPTP-${version}";
|
name = "TPTP-${version}";
|
||||||
version = "7.0.0";
|
version = "7.1.0";
|
||||||
|
|
||||||
src = fetchurl {
|
src = fetchurl {
|
||||||
url = [
|
url = [
|
||||||
"http://www.cs.miami.edu/~tptp/TPTP/Distribution/TPTP-v${version}.tgz"
|
"http://www.cs.miami.edu/~tptp/TPTP/Distribution/TPTP-v${version}.tgz"
|
||||||
"http://www.cs.miami.edu/~tptp/TPTP/Archive/TPTP-v${version}.tgz"
|
"http://www.cs.miami.edu/~tptp/TPTP/Archive/TPTP-v${version}.tgz"
|
||||||
];
|
];
|
||||||
sha256 = "13rm76lqlgbv15p8as0dpc74z2dfv5xydkhnd0hm3hhi3mn39dk9";
|
sha256 = "0slqbqv4y43wz6wnh72s4n540ssapah0d12mndi0c7xr04kf2v2d";
|
||||||
};
|
};
|
||||||
|
|
||||||
buildInputs = [ tcsh yap perl patchelf ];
|
buildInputs = [ tcsh yap perl patchelf ];
|
||||||
|
@ -4,30 +4,29 @@ with stdenv.lib;
|
|||||||
|
|
||||||
stdenv.mkDerivation rec {
|
stdenv.mkDerivation rec {
|
||||||
name = "bcal-${version}";
|
name = "bcal-${version}";
|
||||||
version = "1.7";
|
version = "1.8";
|
||||||
|
|
||||||
src = fetchFromGitHub {
|
src = fetchFromGitHub {
|
||||||
owner = "jarun";
|
owner = "jarun";
|
||||||
repo = "bcal";
|
repo = "bcal";
|
||||||
rev = "v${version}";
|
rev = "v${version}";
|
||||||
sha256 = "08cqp2jysvy743gmwpzkbqhybsb49n65r63z3if53m3y59qg4aw8";
|
sha256 = "0jdn46wzwq7yn3x6p1xyqarp52pcr0ghnfhkm7nyxv734g1abw7r";
|
||||||
};
|
};
|
||||||
|
|
||||||
nativeBuildInputs = [ python3Packages.pytest ];
|
nativeBuildInputs = [ python3Packages.pytest ];
|
||||||
|
|
||||||
doCheck = !stdenv.isDarwin;
|
doCheck = true;
|
||||||
checkPhase = ''
|
checkPhase = ''
|
||||||
python3 -m pytest test.py
|
python3 -m pytest test.py
|
||||||
'';
|
'';
|
||||||
|
|
||||||
makeFlags = [ "CC=cc" ];
|
|
||||||
installFlags = [ "DESTDIR=$(out)" "PREFIX=" ];
|
installFlags = [ "DESTDIR=$(out)" "PREFIX=" ];
|
||||||
|
|
||||||
meta = {
|
meta = {
|
||||||
description = "Storage conversion and expression calculator";
|
description = "Storage conversion and expression calculator";
|
||||||
homepage = https://github.com/jarun/bcal;
|
homepage = https://github.com/jarun/bcal;
|
||||||
license = licenses.gpl3;
|
license = licenses.gpl3;
|
||||||
platforms = [ "x86_64-darwin" "x86_64-linux" ];
|
platforms = [ "aarch64-linux" "x86_64-darwin" "x86_64-linux" ];
|
||||||
maintainers = with maintainers; [ jfrankenau ];
|
maintainers = with maintainers; [ jfrankenau ];
|
||||||
};
|
};
|
||||||
}
|
}
|
||||||
|
@ -1,4 +1,4 @@
|
|||||||
{ stdenv, fetchurl, lib, xlibs }:
|
{ stdenv, fetchurl, lib, xorg }:
|
||||||
|
|
||||||
let
|
let
|
||||||
name = "scilab-bin-${ver}";
|
name = "scilab-bin-${ver}";
|
||||||
@ -33,12 +33,12 @@ stdenv.mkDerivation rec {
|
|||||||
|
|
||||||
libPath = lib.makeLibraryPath [
|
libPath = lib.makeLibraryPath [
|
||||||
stdenv.cc.cc
|
stdenv.cc.cc
|
||||||
xlibs.libX11
|
xorg.libX11
|
||||||
xlibs.libXext
|
xorg.libXext
|
||||||
xlibs.libXi
|
xorg.libXi
|
||||||
xlibs.libXrender
|
xorg.libXrender
|
||||||
xlibs.libXtst
|
xorg.libXtst
|
||||||
xlibs.libXxf86vm
|
xorg.libXxf86vm
|
||||||
];
|
];
|
||||||
|
|
||||||
phases = [ "unpackPhase" "fixupPhase" "installPhase" ];
|
phases = [ "unpackPhase" "fixupPhase" "installPhase" ];
|
||||||
|
@ -3,12 +3,12 @@
|
|||||||
|
|
||||||
stdenv.mkDerivation rec {
|
stdenv.mkDerivation rec {
|
||||||
name = "yarp-${version}";
|
name = "yarp-${version}";
|
||||||
version = "2.3.68";
|
version = "2.3.70.2";
|
||||||
src = fetchFromGitHub {
|
src = fetchFromGitHub {
|
||||||
owner = "robotology";
|
owner = "robotology";
|
||||||
repo = "yarp";
|
repo = "yarp";
|
||||||
rev = "v${version}";
|
rev = "v${version}";
|
||||||
sha256 = "1ksz2kv4v14fqgz3fsvvmdk2sikhnxr11jhhf7c2547x6jbzhda6";
|
sha256 = "0mphh899niy30xbjjwi9xpsliq8mladfldbbbjfngdrqfhiray1a";
|
||||||
};
|
};
|
||||||
|
|
||||||
buildInputs = [ cmake ace ];
|
buildInputs = [ cmake ace ];
|
||||||
|
@ -7,13 +7,13 @@ with stdenv.lib;
|
|||||||
|
|
||||||
buildGoPackage rec {
|
buildGoPackage rec {
|
||||||
name = "gitea-${version}";
|
name = "gitea-${version}";
|
||||||
version = "1.3.2";
|
version = "1.3.3";
|
||||||
|
|
||||||
src = fetchFromGitHub {
|
src = fetchFromGitHub {
|
||||||
owner = "go-gitea";
|
owner = "go-gitea";
|
||||||
repo = "gitea";
|
repo = "gitea";
|
||||||
rev = "v${version}";
|
rev = "v${version}";
|
||||||
sha256 = "11gzb6x8zixmkm57x8hdncmdbbvppzld3yf7p7m0abigg8zyybsj";
|
sha256 = "0ikkpvarp6mzsqk56ihw72fbv7r98g5v5i83rxq8dk709fdqplm6";
|
||||||
};
|
};
|
||||||
|
|
||||||
patches = [ ./static-root-path.patch ];
|
patches = [ ./static-root-path.patch ];
|
||||||
@ -43,7 +43,7 @@ buildGoPackage rec {
|
|||||||
|
|
||||||
meta = {
|
meta = {
|
||||||
description = "Git with a cup of tea";
|
description = "Git with a cup of tea";
|
||||||
homepage = http://gitea.io;
|
homepage = https://gitea.io;
|
||||||
license = licenses.mit;
|
license = licenses.mit;
|
||||||
maintainers = [ maintainers.disassembler ];
|
maintainers = [ maintainers.disassembler ];
|
||||||
};
|
};
|
||||||
|
@ -7,18 +7,21 @@
|
|||||||
|
|
||||||
with stdenv.lib;
|
with stdenv.lib;
|
||||||
|
|
||||||
|
let
|
||||||
|
curlWithGnuTls = curl.override { gnutlsSupport = true; sslSupport = false; };
|
||||||
|
in
|
||||||
stdenv.mkDerivation rec {
|
stdenv.mkDerivation rec {
|
||||||
name = "gitkraken-${version}";
|
name = "gitkraken-${version}";
|
||||||
version = "3.3.4";
|
version = "3.4.0";
|
||||||
|
|
||||||
src = fetchurl {
|
src = fetchurl {
|
||||||
url = "https://release.gitkraken.com/linux/v${version}.deb";
|
url = "https://release.gitkraken.com/linux/v${version}.deb";
|
||||||
sha256 = "1djrbpm1f258cicf65ddvndpxi1izmnc12253k1zwl77z4jjbwls";
|
sha256 = "0jj3a02bz30xa7p4migyhvxd9s0cllymsp1rdh2pbh40p79g1fp1";
|
||||||
};
|
};
|
||||||
|
|
||||||
libPath = makeLibraryPath [
|
libPath = makeLibraryPath [
|
||||||
stdenv.cc.cc.lib
|
stdenv.cc.cc.lib
|
||||||
curl
|
curlWithGnuTls
|
||||||
udev
|
udev
|
||||||
libX11
|
libX11
|
||||||
libXext
|
libXext
|
||||||
|
@ -5,13 +5,13 @@ with lib;
|
|||||||
|
|
||||||
stdenv.mkDerivation rec {
|
stdenv.mkDerivation rec {
|
||||||
name = "runc-${version}";
|
name = "runc-${version}";
|
||||||
version = "1.0.0-rc4";
|
version = "1.0.0-rc5";
|
||||||
|
|
||||||
src = fetchFromGitHub {
|
src = fetchFromGitHub {
|
||||||
owner = "opencontainers";
|
owner = "opencontainers";
|
||||||
repo = "runc";
|
repo = "runc";
|
||||||
rev = "v${version}";
|
rev = "v${version}";
|
||||||
sha256 = "0dh24x0zw90hs7618pnqvjhd2nx8dpz3b5jwc1vbs8dawj8prir2";
|
sha256 = "1ikqw39jn8dzb4snc4pcg3z85jb67ivskdhx028k17ss29bf4062";
|
||||||
};
|
};
|
||||||
|
|
||||||
outputs = [ "out" "man" ];
|
outputs = [ "out" "man" ];
|
||||||
|
@ -39,6 +39,10 @@ in
|
|||||||
callPackage (import ./generic.nix (rec {
|
callPackage (import ./generic.nix (rec {
|
||||||
version = "4.5.5";
|
version = "4.5.5";
|
||||||
|
|
||||||
|
meta = {
|
||||||
|
knownVulnerabilities = [ "Security support ended in January 2018" ];
|
||||||
|
};
|
||||||
|
|
||||||
src = fetchurl {
|
src = fetchurl {
|
||||||
url = "https://downloads.xenproject.org/release/xen/${version}/xen-${version}.tar.gz";
|
url = "https://downloads.xenproject.org/release/xen/${version}/xen-${version}.tar.gz";
|
||||||
sha256 = "1y74ms4yc3znf8jc3fgyq94va2y0pf7jh8m9pfqnpgklywqnw8g2";
|
sha256 = "1y74ms4yc3znf8jc3fgyq94va2y0pf7jh8m9pfqnpgklywqnw8g2";
|
||||||
|
@ -221,6 +221,7 @@ stdenv.mkDerivation (rec {
|
|||||||
done
|
done
|
||||||
'';
|
'';
|
||||||
|
|
||||||
|
# TODO(@oxij): Stop referencing args here
|
||||||
meta = {
|
meta = {
|
||||||
homepage = http://www.xen.org/;
|
homepage = http://www.xen.org/;
|
||||||
description = "Xen hypervisor and related components"
|
description = "Xen hypervisor and related components"
|
||||||
@ -231,5 +232,5 @@ stdenv.mkDerivation (rec {
|
|||||||
+ withXenfiles (name: x: ''* ${name}: ${x.meta.description or "(No description)"}.'');
|
+ withXenfiles (name: x: ''* ${name}: ${x.meta.description or "(No description)"}.'');
|
||||||
platforms = [ "x86_64-linux" ];
|
platforms = [ "x86_64-linux" ];
|
||||||
maintainers = with stdenv.lib.maintainers; [ eelco tstrobel oxij ];
|
maintainers = with stdenv.lib.maintainers; [ eelco tstrobel oxij ];
|
||||||
};
|
} // (config.meta or {});
|
||||||
} // removeAttrs config [ "xenfiles" "buildInputs" "patches" "postPatch" "meta" ])
|
} // removeAttrs config [ "xenfiles" "buildInputs" "patches" "postPatch" "meta" ])
|
||||||
|
@ -2,7 +2,7 @@
|
|||||||
, stdenv, overrideCC, gcc49
|
, stdenv, overrideCC, gcc49
|
||||||
}:
|
}:
|
||||||
|
|
||||||
# TODO on new Xen version: generalize this to generate [vanilla slim
|
# TODO(@oxij) on new Xen version: generalize this to generate [vanilla slim
|
||||||
# light] for each ./<version>.nix.
|
# light] for each ./<version>.nix.
|
||||||
|
|
||||||
rec {
|
rec {
|
||||||
@ -149,8 +149,8 @@ rec {
|
|||||||
};
|
};
|
||||||
};
|
};
|
||||||
|
|
||||||
xen-vanilla = xen_4_5-vanilla;
|
xen-vanilla = xen_4_8-vanilla;
|
||||||
xen-slim = xen_4_5-slim;
|
xen-slim = xen_4_8-slim;
|
||||||
xen-light = xen_4_5-light;
|
xen-light = xen_4_8-light;
|
||||||
|
|
||||||
}
|
}
|
||||||
|
@ -5,11 +5,11 @@
|
|||||||
|
|
||||||
stdenv.mkDerivation rec {
|
stdenv.mkDerivation rec {
|
||||||
name = "i3-${version}";
|
name = "i3-${version}";
|
||||||
version = "4.14.1";
|
version = "4.15";
|
||||||
|
|
||||||
src = fetchurl {
|
src = fetchurl {
|
||||||
url = "http://i3wm.org/downloads/${name}.tar.bz2";
|
url = "http://i3wm.org/downloads/${name}.tar.bz2";
|
||||||
sha256 = "1cazmfbbx6n8c81h6x6pdayq3mxs2ml3adz165z8vapkc72kl1nh";
|
sha256 = "09jk70hsdxab24lqvj2f30ijrkbv3f6q9xi5dcsax1dw3x6m4z91";
|
||||||
};
|
};
|
||||||
|
|
||||||
nativeBuildInputs = [ which pkgconfig makeWrapper ];
|
nativeBuildInputs = [ which pkgconfig makeWrapper ];
|
||||||
|
@ -1,4 +1,4 @@
|
|||||||
{ stdenv, fetchFromGitHub, rustPlatform, cargo, libXinerama, libX11, xlibs, pkgconfig }:
|
{ stdenv, fetchFromGitHub, rustPlatform, cargo, libXinerama, libX11, pkgconfig }:
|
||||||
|
|
||||||
rustPlatform.buildRustPackage rec {
|
rustPlatform.buildRustPackage rec {
|
||||||
name = "wtftw-0.0pre20170921";
|
name = "wtftw-0.0pre20170921";
|
||||||
|
@ -1,7 +1,7 @@
|
|||||||
{ stdenv, fetchFromGitHub, pkgconfig, autoreconfHook, glib, dbus-glib
|
{ stdenv, fetchFromGitHub, pkgconfig, autoreconfHook, glib, dbus-glib
|
||||||
, desktopSupport
|
, desktopSupport
|
||||||
, gtk2, gnome2_panel, GConf2
|
, gtk2, gnome2_panel, GConf2
|
||||||
, libxfce4util, xfce4panel
|
, libxfce4util, xfce4-panel
|
||||||
}:
|
}:
|
||||||
|
|
||||||
assert desktopSupport == "gnome2" || desktopSupport == "gnome3" || desktopSupport == "xfce4";
|
assert desktopSupport == "gnome2" || desktopSupport == "gnome3" || desktopSupport == "xfce4";
|
||||||
@ -23,7 +23,7 @@ stdenv.mkDerivation rec {
|
|||||||
++ optionals (desktopSupport == "gnome2") [ gtk2 gnome2_panel GConf2 ]
|
++ optionals (desktopSupport == "gnome2") [ gtk2 gnome2_panel GConf2 ]
|
||||||
# TODO: no idea where to find libpanelapplet-4.0
|
# TODO: no idea where to find libpanelapplet-4.0
|
||||||
++ optionals (desktopSupport == "gnome3") [ ]
|
++ optionals (desktopSupport == "gnome3") [ ]
|
||||||
++ optionals (desktopSupport == "xfce4") [ gtk2 libxfce4util xfce4panel ]
|
++ optionals (desktopSupport == "xfce4") [ gtk2 libxfce4util xfce4-panel ]
|
||||||
;
|
;
|
||||||
|
|
||||||
nativeBuildInputs = [ autoreconfHook pkgconfig ];
|
nativeBuildInputs = [ autoreconfHook pkgconfig ];
|
||||||
|
@ -52,11 +52,14 @@ let
|
|||||||
export LOCALE_ARCHIVE='/usr/lib/locale/locale-archive'
|
export LOCALE_ARCHIVE='/usr/lib/locale/locale-archive'
|
||||||
export LD_LIBRARY_PATH='/run/opengl-driver/lib:/run/opengl-driver-32/lib:/usr/lib:/usr/lib32'
|
export LD_LIBRARY_PATH='/run/opengl-driver/lib:/run/opengl-driver-32/lib:/usr/lib:/usr/lib32'
|
||||||
export PATH='/run/wrappers/bin:/usr/bin:/usr/sbin'
|
export PATH='/run/wrappers/bin:/usr/bin:/usr/sbin'
|
||||||
|
export TZDIR='/etc/zoneinfo'
|
||||||
|
|
||||||
# Force compilers and other tools to look in default search paths
|
# Force compilers and other tools to look in default search paths
|
||||||
|
unset NIX_ENFORCE_PURITY
|
||||||
export NIX_CC_WRAPPER_${stdenv.cc.infixSalt}_TARGET_HOST=1
|
export NIX_CC_WRAPPER_${stdenv.cc.infixSalt}_TARGET_HOST=1
|
||||||
export NIX_CFLAGS_COMPILE='-idirafter /usr/include'
|
export NIX_CFLAGS_COMPILE='-idirafter /usr/include'
|
||||||
export NIX_LDFLAGS_BEFORE='-L/usr/lib -L/usr/lib32'
|
export NIX_CFLAGS_LINK='-L/usr/lib -L/usr/lib32'
|
||||||
|
export NIX_LDFLAGS='-L/usr/lib -L/usr/lib32'
|
||||||
export PKG_CONFIG_PATH=/usr/lib/pkgconfig
|
export PKG_CONFIG_PATH=/usr/lib/pkgconfig
|
||||||
export ACLOCAL_PATH=/usr/share/aclocal
|
export ACLOCAL_PATH=/usr/share/aclocal
|
||||||
|
|
||||||
|
@ -116,4 +116,12 @@ rec {
|
|||||||
Env = [ "NIX_PAGER=cat" ];
|
Env = [ "NIX_PAGER=cat" ];
|
||||||
};
|
};
|
||||||
};
|
};
|
||||||
|
|
||||||
|
# 7. example of adding something on top of an image pull by our
|
||||||
|
# dockerTools chain.
|
||||||
|
onTopOfPulledImage = buildImage {
|
||||||
|
name = "onTopOfPulledImage";
|
||||||
|
fromImage = nixFromDockerHub;
|
||||||
|
contents = [ pkgs.hello ];
|
||||||
|
};
|
||||||
}
|
}
|
||||||
|
@ -129,7 +129,7 @@ rec {
|
|||||||
|
|
||||||
samba = [
|
samba = [
|
||||||
https://www.samba.org/ftp/
|
https://www.samba.org/ftp/
|
||||||
http://ftp.riken.jp/net/samba
|
http://www.samba.org/ftp/
|
||||||
];
|
];
|
||||||
|
|
||||||
# BitlBee mirrors, see https://www.bitlbee.org/main.php/mirrors.html .
|
# BitlBee mirrors, see https://www.bitlbee.org/main.php/mirrors.html .
|
||||||
|
@ -35,7 +35,7 @@ stdenv.mkDerivation rec {
|
|||||||
# Note that individual packages in this collection
|
# Note that individual packages in this collection
|
||||||
# may be released under different licenses
|
# may be released under different licenses
|
||||||
license = licenses.gpl3;
|
license = licenses.gpl3;
|
||||||
platforms = platforms.all;
|
platforms = platforms.linux;
|
||||||
maintainers = [ maintainers.sifmelcara ];
|
maintainers = [ maintainers.sifmelcara ];
|
||||||
};
|
};
|
||||||
}
|
}
|
||||||
|
@ -1,6 +1,6 @@
|
|||||||
{ fetchurl }:
|
{ fetchurl }:
|
||||||
|
|
||||||
fetchurl {
|
fetchurl {
|
||||||
url = "https://github.com/commercialhaskell/all-cabal-hashes/archive/56955295749aea09bd42591cd506c2616d48ebfd.tar.gz";
|
url = "https://github.com/commercialhaskell/all-cabal-hashes/archive/c1b1aa583dc3e3cd2c97c17d865be34ff3e019ab.tar.gz";
|
||||||
sha256 = "17c8a1wj1jxr14sxvwq0i9kidwycz2hkl1ls51yfz14anylxr84l";
|
sha256 = "03q732jxymdxmm9gqfyghjcsscc5qwg7aicx5kk8fkrfz17xd44k";
|
||||||
}
|
}
|
||||||
|
22
pkgs/data/misc/libkkc-data/default.nix
Normal file
22
pkgs/data/misc/libkkc-data/default.nix
Normal file
@ -0,0 +1,22 @@
|
|||||||
|
{ stdenv, fetchurl, marisa, libkkc }:
|
||||||
|
|
||||||
|
stdenv.mkDerivation rec {
|
||||||
|
pname = "libkkc-data";
|
||||||
|
version = "0.2.7";
|
||||||
|
name = "${pname}-${version}";
|
||||||
|
|
||||||
|
src = fetchurl {
|
||||||
|
url = "${meta.homepage}/releases/download/v${libkkc.version}/${name}.tar.xz";
|
||||||
|
sha256 = "16avb50jasq2f1n9xyziky39dhlnlad0991pisk3s11hl1aqfrwy";
|
||||||
|
};
|
||||||
|
|
||||||
|
nativeBuildInputs = [ marisa ];
|
||||||
|
|
||||||
|
meta = with stdenv.lib; {
|
||||||
|
description = "Language model data package for libkkc";
|
||||||
|
homepage = https://github.com/ueno/libkkc;
|
||||||
|
license = licenses.gpl3Plus;
|
||||||
|
maintainers = with maintainers; [ vanzef ];
|
||||||
|
platforms = platforms.linux;
|
||||||
|
};
|
||||||
|
}
|
38
pkgs/desktops/gnome-3/core/gnome-color-manager/default.nix
Normal file
38
pkgs/desktops/gnome-3/core/gnome-color-manager/default.nix
Normal file
@ -0,0 +1,38 @@
|
|||||||
|
{ stdenv, fetchurl, meson, ninja, pkgconfig, gettext, itstool, desktop-file-utils, gnome3, glib, gtk3, libexif, libtiff, colord, colord-gtk, libcanberra-gtk3, lcms2, vte, exiv2 }:
|
||||||
|
|
||||||
|
let
|
||||||
|
pname = "gnome-color-manager";
|
||||||
|
version = "3.26.0";
|
||||||
|
in stdenv.mkDerivation rec {
|
||||||
|
name = "${pname}-${version}";
|
||||||
|
|
||||||
|
src = fetchurl {
|
||||||
|
url = "mirror://gnome/sources/${pname}/${gnome3.versionBranch version}/${name}.tar.xz";
|
||||||
|
sha256 = "1kbi46vk0qf0gxiwm4yhsx8931r7c9cg0c4244j8ncr0hph008b5";
|
||||||
|
};
|
||||||
|
|
||||||
|
nativeBuildInputs = [ meson ninja pkgconfig gettext itstool desktop-file-utils ];
|
||||||
|
buildInputs = [ glib gtk3 libexif libtiff colord colord-gtk libcanberra-gtk3 lcms2 vte exiv2 ];
|
||||||
|
|
||||||
|
patches = [
|
||||||
|
# https://bugzilla.gnome.org/show_bug.cgi?id=791158
|
||||||
|
(fetchurl {
|
||||||
|
url = https://bugzilla.gnome.org/attachment.cgi?id=364865;
|
||||||
|
sha256 = "1zh1aql6rwzfhy2xbdw0jqgzrl9l6wf0jcbdkjd67ykbmynh2cmv";
|
||||||
|
})
|
||||||
|
];
|
||||||
|
|
||||||
|
passthru = {
|
||||||
|
updateScript = gnome3.updateScript {
|
||||||
|
packageName = pname;
|
||||||
|
attrPath = "gnome3.${pname}";
|
||||||
|
};
|
||||||
|
};
|
||||||
|
|
||||||
|
meta = with stdenv.lib; {
|
||||||
|
description = "A set of graphical utilities for color management to be used in the GNOME desktop";
|
||||||
|
license = licenses.gpl2Plus;
|
||||||
|
maintainers = gnome3.maintainers;
|
||||||
|
platforms = platforms.linux;
|
||||||
|
};
|
||||||
|
}
|
@ -1,27 +1,22 @@
|
|||||||
{ fetchurl, stdenv, pkgconfig, gnome3, ibus, intltool, upower, wrapGAppsHook
|
{ fetchurl, stdenv, substituteAll, pkgconfig, gnome3, ibus, intltool, upower, wrapGAppsHook
|
||||||
, libcanberra-gtk3, accountsservice, libpwquality, libpulseaudio
|
, libcanberra-gtk3, accountsservice, libpwquality, libpulseaudio
|
||||||
, gdk_pixbuf, librsvg, libnotify, libgudev
|
, gdk_pixbuf, librsvg, libnotify, libgudev, gnome-color-manager
|
||||||
, libxml2, polkit, libxslt, libgtop, libsoup, colord, colord-gtk
|
, libxml2, polkit, libxslt, libgtop, libsoup, colord, colord-gtk
|
||||||
, cracklib, libkrb5, networkmanagerapplet, networkmanager
|
, cracklib, libkrb5, networkmanagerapplet, networkmanager, glibc
|
||||||
, libwacom, samba, shared-mime-info, tzdata, libtool
|
, libwacom, samba, shared-mime-info, tzdata, libtool, libgnomekbd
|
||||||
, docbook_xsl, docbook_xsl_ns, modemmanager, clutter, clutter-gtk
|
, docbook_xsl, docbook_xsl_ns, modemmanager, clutter, clutter-gtk
|
||||||
, fontconfig, sound-theme-freedesktop, grilo }:
|
, fontconfig, sound-theme-freedesktop, grilo }:
|
||||||
|
|
||||||
stdenv.mkDerivation rec {
|
let
|
||||||
name = "gnome-control-center-${version}";
|
|
||||||
version = "3.26.2";
|
version = "3.26.2";
|
||||||
|
in stdenv.mkDerivation rec {
|
||||||
|
name = "gnome-control-center-${version}";
|
||||||
|
|
||||||
src = fetchurl {
|
src = fetchurl {
|
||||||
url = "mirror://gnome/sources/gnome-control-center/${gnome3.versionBranch version}/${name}.tar.xz";
|
url = "mirror://gnome/sources/gnome-control-center/${gnome3.versionBranch version}/${name}.tar.xz";
|
||||||
sha256 = "07aed27d6317f2cad137daa6d94a37ad02c32b958dcd30c8f07d0319abfb04c5";
|
sha256 = "07aed27d6317f2cad137daa6d94a37ad02c32b958dcd30c8f07d0319abfb04c5";
|
||||||
};
|
};
|
||||||
|
|
||||||
passthru = {
|
|
||||||
updateScript = gnome3.updateScript { packageName = "gnome-control-center"; attrPath = "gnome3.gnome-control-center"; };
|
|
||||||
};
|
|
||||||
|
|
||||||
propagatedUserEnvPkgs = [ gnome3.gnome-themes-standard ];
|
|
||||||
|
|
||||||
nativeBuildInputs = [
|
nativeBuildInputs = [
|
||||||
pkgconfig intltool wrapGAppsHook libtool libxslt docbook_xsl docbook_xsl_ns
|
pkgconfig intltool wrapGAppsHook libtool libxslt docbook_xsl docbook_xsl_ns
|
||||||
shared-mime-info
|
shared-mime-info
|
||||||
@ -37,15 +32,13 @@ stdenv.mkDerivation rec {
|
|||||||
networkmanager modemmanager gnome-bluetooth tracker
|
networkmanager modemmanager gnome-bluetooth tracker
|
||||||
];
|
];
|
||||||
|
|
||||||
preBuild = ''
|
patches = [
|
||||||
substituteInPlace panels/datetime/tz.h --replace "/usr/share/zoneinfo/zone.tab" "${tzdata}/share/zoneinfo/zone.tab"
|
(substituteAll {
|
||||||
|
src = ./paths.patch;
|
||||||
substituteInPlace panels/region/cc-region-panel.c --replace "gkbd-keyboard-display" "${gnome3.libgnomekbd}/bin/gkbd-keyboard-display"
|
gcm = gnome-color-manager;
|
||||||
|
inherit glibc libgnomekbd tzdata;
|
||||||
# hack to make test-endianess happy
|
})
|
||||||
mkdir -p $out/share/locale
|
];
|
||||||
substituteInPlace panels/datetime/test-endianess.c --replace "/usr/share/locale/" "$out/share/locale/"
|
|
||||||
'';
|
|
||||||
|
|
||||||
preFixup = ''
|
preFixup = ''
|
||||||
gappsWrapperArgs+=(
|
gappsWrapperArgs+=(
|
||||||
@ -59,6 +52,13 @@ stdenv.mkDerivation rec {
|
|||||||
done
|
done
|
||||||
'';
|
'';
|
||||||
|
|
||||||
|
passthru = {
|
||||||
|
updateScript = gnome3.updateScript {
|
||||||
|
packageName = "gnome-control-center";
|
||||||
|
attrPath = "gnome3.gnome-control-center";
|
||||||
|
};
|
||||||
|
};
|
||||||
|
|
||||||
meta = with stdenv.lib; {
|
meta = with stdenv.lib; {
|
||||||
description = "Utilities to configure the GNOME desktop";
|
description = "Utilities to configure the GNOME desktop";
|
||||||
license = licenses.gpl2Plus;
|
license = licenses.gpl2Plus;
|
||||||
|
82
pkgs/desktops/gnome-3/core/gnome-control-center/paths.patch
Normal file
82
pkgs/desktops/gnome-3/core/gnome-control-center/paths.patch
Normal file
@ -0,0 +1,82 @@
|
|||||||
|
--- a/panels/color/cc-color-panel.c
|
||||||
|
+++ b/panels/color/cc-color-panel.c
|
||||||
|
@@ -634,7 +634,7 @@
|
||||||
|
|
||||||
|
/* run with modal set */
|
||||||
|
argv = g_ptr_array_new_with_free_func (g_free);
|
||||||
|
- g_ptr_array_add (argv, g_build_filename (BINDIR, "gcm-calibrate", NULL));
|
||||||
|
+ g_ptr_array_add (argv, g_build_filename ("@gcm@", "bin", "gcm-calibrate", NULL));
|
||||||
|
g_ptr_array_add (argv, g_strdup ("--device"));
|
||||||
|
g_ptr_array_add (argv, g_strdup (cd_device_get_id (priv->current_device)));
|
||||||
|
g_ptr_array_add (argv, g_strdup ("--parent-window"));
|
||||||
|
@@ -1136,7 +1136,7 @@
|
||||||
|
|
||||||
|
/* open up gcm-viewer as a info pane */
|
||||||
|
argv = g_ptr_array_new_with_free_func (g_free);
|
||||||
|
- g_ptr_array_add (argv, g_build_filename (BINDIR, "gcm-viewer", NULL));
|
||||||
|
+ g_ptr_array_add (argv, g_build_filename ("@gcm@", "bin", "gcm-viewer", NULL));
|
||||||
|
g_ptr_array_add (argv, g_strdup ("--profile"));
|
||||||
|
g_ptr_array_add (argv, g_strdup (cd_profile_get_id (profile)));
|
||||||
|
g_ptr_array_add (argv, g_strdup ("--parent-window"));
|
||||||
|
@@ -1406,7 +1406,6 @@
|
||||||
|
gcm_prefs_profile_clicked (CcColorPanel *prefs, CdProfile *profile, CdDevice *device)
|
||||||
|
{
|
||||||
|
GtkWidget *widget;
|
||||||
|
- gchar *s;
|
||||||
|
CcColorPanelPrivate *priv = prefs->priv;
|
||||||
|
|
||||||
|
/* get profile */
|
||||||
|
@@ -1416,11 +1415,9 @@
|
||||||
|
/* allow getting profile info */
|
||||||
|
widget = GTK_WIDGET (gtk_builder_get_object (priv->builder,
|
||||||
|
"toolbutton_profile_view"));
|
||||||
|
- if (cd_profile_get_filename (profile) != NULL &&
|
||||||
|
- (s = g_find_program_in_path ("gcm-viewer")) != NULL)
|
||||||
|
+ if (cd_profile_get_filename (profile) != NULL)
|
||||||
|
{
|
||||||
|
gtk_widget_set_sensitive (widget, TRUE);
|
||||||
|
- g_free (s);
|
||||||
|
}
|
||||||
|
else
|
||||||
|
gtk_widget_set_sensitive (widget, FALSE);
|
||||||
|
--- a/panels/datetime/test-endianess.c
|
||||||
|
+++ b/panels/datetime/test-endianess.c
|
||||||
|
@@ -26,7 +26,7 @@
|
||||||
|
GDir *dir;
|
||||||
|
const char *name;
|
||||||
|
|
||||||
|
- dir = g_dir_open ("/usr/share/i18n/locales/", 0, NULL);
|
||||||
|
+ dir = g_dir_open ("@glibc@/share/i18n/locales/", 0, NULL);
|
||||||
|
if (dir == NULL) {
|
||||||
|
/* Try with /usr/share/locale/
|
||||||
|
* https://bugzilla.gnome.org/show_bug.cgi?id=646780 */
|
||||||
|
--- a/panels/datetime/tz.h
|
||||||
|
+++ b/panels/datetime/tz.h
|
||||||
|
@@ -27,11 +27,7 @@
|
||||||
|
|
||||||
|
#include <glib.h>
|
||||||
|
|
||||||
|
-#ifndef __sun
|
||||||
|
-# define TZ_DATA_FILE "/usr/share/zoneinfo/zone.tab"
|
||||||
|
-#else
|
||||||
|
-# define TZ_DATA_FILE "/usr/share/lib/zoneinfo/tab/zone_sun.tab"
|
||||||
|
-#endif
|
||||||
|
+#define TZ_DATA_FILE "@tzdata@/share/zoneinfo/zone.tab"
|
||||||
|
|
||||||
|
typedef struct _TzDB TzDB;
|
||||||
|
typedef struct _TzLocation TzLocation;
|
||||||
|
--- a/panels/region/cc-region-panel.c
|
||||||
|
+++ b/panels/region/cc-region-panel.c
|
||||||
|
@@ -1388,10 +1388,10 @@
|
||||||
|
}
|
||||||
|
|
||||||
|
if (variant && variant[0])
|
||||||
|
- commandline = g_strdup_printf ("gkbd-keyboard-display -l \"%s\t%s\"",
|
||||||
|
+ commandline = g_strdup_printf ("@libgnomekbd@/bin/gkbd-keyboard-display -l \"%s\t%s\"",
|
||||||
|
layout, variant);
|
||||||
|
else
|
||||||
|
- commandline = g_strdup_printf ("gkbd-keyboard-display -l %s",
|
||||||
|
+ commandline = g_strdup_printf ("@libgnomekbd@/bin/gkbd-keyboard-display -l %s",
|
||||||
|
layout);
|
||||||
|
|
||||||
|
g_spawn_command_line_async (commandline, NULL);
|
@ -110,6 +110,8 @@ let
|
|||||||
|
|
||||||
gnome-bluetooth = callPackage ./core/gnome-bluetooth { };
|
gnome-bluetooth = callPackage ./core/gnome-bluetooth { };
|
||||||
|
|
||||||
|
gnome-color-manager = callPackage ./core/gnome-color-manager { };
|
||||||
|
|
||||||
gnome-contacts = callPackage ./core/gnome-contacts { };
|
gnome-contacts = callPackage ./core/gnome-contacts { };
|
||||||
|
|
||||||
gnome-control-center = callPackage ./core/gnome-control-center { };
|
gnome-control-center = callPackage ./core/gnome-control-center { };
|
||||||
|
@ -16,7 +16,7 @@ stdenv.mkDerivation rec {
|
|||||||
nativeBuildInputs = [ pkgconfig intltool bison flex ];
|
nativeBuildInputs = [ pkgconfig intltool bison flex ];
|
||||||
|
|
||||||
buildInputs = [ gtk libical dbus-glib libnotify popt xfce.libxfce4util
|
buildInputs = [ gtk libical dbus-glib libnotify popt xfce.libxfce4util
|
||||||
xfce.xfce4panel ];
|
xfce.xfce4-panel ];
|
||||||
|
|
||||||
preFixup = "rm $out/share/icons/hicolor/icon-theme.cache ";
|
preFixup = "rm $out/share/icons/hicolor/icon-theme.cache ";
|
||||||
|
|
||||||
|
@ -1,6 +1,6 @@
|
|||||||
{ stdenv, fetchurl, pkgconfig, intltool, makeWrapper
|
{ stdenv, fetchurl, pkgconfig, intltool, makeWrapper
|
||||||
, glib, gstreamer, gst-plugins-base, gtk
|
, glib, gstreamer, gst-plugins-base, gtk
|
||||||
, libxfce4util, libxfce4ui, xfce4panel, xfconf, libunique ? null
|
, libxfce4util, libxfce4ui, xfce4-panel, xfconf, libunique ? null
|
||||||
, pulseaudioSupport ? false, gst-plugins-good
|
, pulseaudioSupport ? false, gst-plugins-good
|
||||||
}:
|
}:
|
||||||
|
|
||||||
@ -30,7 +30,7 @@ stdenv.mkDerivation rec {
|
|||||||
|
|
||||||
buildInputs =
|
buildInputs =
|
||||||
[ pkgconfig intltool glib gstreamer gtk
|
[ pkgconfig intltool glib gstreamer gtk
|
||||||
libxfce4util libxfce4ui xfce4panel xfconf libunique makeWrapper
|
libxfce4util libxfce4ui xfce4-panel xfconf libunique makeWrapper
|
||||||
] ++ gst_plugins;
|
] ++ gst_plugins;
|
||||||
|
|
||||||
postInstall =
|
postInstall =
|
||||||
|
@ -1,4 +1,4 @@
|
|||||||
{ stdenv, fetchurl, pkgconfig, intltool, xfce4panel, libxfce4util, gtk, libsoup
|
{ stdenv, fetchurl, pkgconfig, intltool, xfce4-panel, libxfce4util, gtk, libsoup
|
||||||
, makeWrapper, glib-networking, exo, hicolor-icon-theme, wrapGAppsHook }:
|
, makeWrapper, glib-networking, exo, hicolor-icon-theme, wrapGAppsHook }:
|
||||||
|
|
||||||
stdenv.mkDerivation rec {
|
stdenv.mkDerivation rec {
|
||||||
@ -17,7 +17,7 @@ stdenv.mkDerivation rec {
|
|||||||
];
|
];
|
||||||
|
|
||||||
buildInputs = [
|
buildInputs = [
|
||||||
xfce4panel libxfce4util gtk libsoup exo hicolor-icon-theme glib-networking
|
xfce4-panel libxfce4util gtk libsoup exo hicolor-icon-theme glib-networking
|
||||||
];
|
];
|
||||||
|
|
||||||
meta = {
|
meta = {
|
||||||
|
@ -1,6 +1,6 @@
|
|||||||
{ stdenv, fetchurl, pkgconfig, intltool
|
{ stdenv, fetchurl, pkgconfig, intltool
|
||||||
, gtk, dbus-glib, libstartup_notification, libnotify, libexif, pcre, udev
|
, gtk, dbus-glib, libstartup_notification, libnotify, libexif, pcre, udev
|
||||||
, exo, libxfce4util, xfconf, xfce4panel, wrapGAppsHook
|
, exo, libxfce4util, xfconf, xfce4-panel, wrapGAppsHook
|
||||||
}:
|
}:
|
||||||
|
|
||||||
stdenv.mkDerivation rec {
|
stdenv.mkDerivation rec {
|
||||||
@ -25,7 +25,7 @@ stdenv.mkDerivation rec {
|
|||||||
buildInputs = [
|
buildInputs = [
|
||||||
intltool
|
intltool
|
||||||
gtk dbus-glib libstartup_notification libnotify libexif pcre udev
|
gtk dbus-glib libstartup_notification libnotify libexif pcre udev
|
||||||
exo libxfce4util xfconf xfce4panel
|
exo libxfce4util xfconf xfce4-panel
|
||||||
];
|
];
|
||||||
# TODO: optionality?
|
# TODO: optionality?
|
||||||
|
|
||||||
|
@ -1,4 +1,4 @@
|
|||||||
{ stdenv, buildEnv, runCommand, makeWrapper, lndir, thunar-build
|
{ stdenv, buildEnv, runCommand, makeWrapper, lndir, thunar-bare
|
||||||
, thunarPlugins ? []
|
, thunarPlugins ? []
|
||||||
}:
|
}:
|
||||||
|
|
||||||
@ -6,7 +6,7 @@ with stdenv.lib;
|
|||||||
|
|
||||||
let
|
let
|
||||||
|
|
||||||
build = thunar-build;
|
build = thunar-bare;
|
||||||
|
|
||||||
replaceLnExeListWithWrapped = exeDir: exeNameList: mkWrapArgs: ''
|
replaceLnExeListWithWrapped = exeDir: exeNameList: mkWrapArgs: ''
|
||||||
exeDir="${exeDir}"
|
exeDir="${exeDir}"
|
||||||
@ -50,7 +50,7 @@ runCommand name {
|
|||||||
}
|
}
|
||||||
(let
|
(let
|
||||||
buildWithPlugins = buildEnv {
|
buildWithPlugins = buildEnv {
|
||||||
name = "thunar-build-with-plugins";
|
name = "thunar-bare-with-plugins";
|
||||||
paths = [ build ] ++ thunarPlugins;
|
paths = [ build ] ++ thunarPlugins;
|
||||||
};
|
};
|
||||||
|
|
||||||
|
@ -1,6 +1,6 @@
|
|||||||
{ stdenv, fetchurl, pkgconfig, intltool, gtk, libxfce4util, libxfce4ui
|
{ stdenv, fetchurl, pkgconfig, intltool, gtk, libxfce4util, libxfce4ui
|
||||||
, libxfce4ui_gtk3, libwnck, exo, garcon, xfconf, libstartup_notification
|
, libxfce4ui_gtk3, libwnck, exo, garcon, xfconf, libstartup_notification
|
||||||
, makeWrapper, xfce4mixer, hicolor-icon-theme
|
, makeWrapper, xfce4-mixer, hicolor-icon-theme
|
||||||
, withGtk3 ? false, gtk3, gettext, glib-networking
|
, withGtk3 ? false, gtk3, gettext, glib-networking
|
||||||
}:
|
}:
|
||||||
let
|
let
|
||||||
@ -31,7 +31,7 @@ stdenv.mkDerivation rec {
|
|||||||
buildInputs =
|
buildInputs =
|
||||||
[ pkgconfig intltool gtk libxfce4util exo libwnck
|
[ pkgconfig intltool gtk libxfce4util exo libwnck
|
||||||
garcon xfconf libstartup_notification makeWrapper hicolor-icon-theme
|
garcon xfconf libstartup_notification makeWrapper hicolor-icon-theme
|
||||||
] ++ xfce4mixer.gst_plugins
|
] ++ xfce4-mixer.gst_plugins
|
||||||
++ optional withGtk3 gtk3;
|
++ optional withGtk3 gtk3;
|
||||||
|
|
||||||
propagatedBuildInputs = [ (if withGtk3 then libxfce4ui_gtk3 else libxfce4ui) ];
|
propagatedBuildInputs = [ (if withGtk3 then libxfce4ui_gtk3 else libxfce4ui) ];
|
||||||
|
@ -1,5 +1,5 @@
|
|||||||
{ stdenv, lib, fetchurl, pkgconfig, intltool, glib, gtk, dbus-glib, upower, xfconf
|
{ stdenv, lib, fetchurl, pkgconfig, intltool, glib, gtk, dbus-glib, upower, xfconf
|
||||||
, libxfce4ui, libxfce4util, libnotify, xfce4panel, hicolor-icon-theme
|
, libxfce4ui, libxfce4util, libnotify, xfce4-panel, hicolor-icon-theme
|
||||||
, withGtk3 ? false, gtk3, libxfce4ui_gtk3, xfce4panel_gtk3 }:
|
, withGtk3 ? false, gtk3, libxfce4ui_gtk3, xfce4panel_gtk3 }:
|
||||||
let
|
let
|
||||||
p_name = "xfce4-power-manager";
|
p_name = "xfce4-power-manager";
|
||||||
@ -23,7 +23,7 @@ stdenv.mkDerivation rec {
|
|||||||
] ++
|
] ++
|
||||||
(if withGtk3
|
(if withGtk3
|
||||||
then [ gtk3 libxfce4ui_gtk3 xfce4panel_gtk3 ]
|
then [ gtk3 libxfce4ui_gtk3 xfce4panel_gtk3 ]
|
||||||
else [ gtk libxfce4ui xfce4panel ]);
|
else [ gtk libxfce4ui xfce4-panel ]);
|
||||||
|
|
||||||
postPatch = lib.optionalString withGtk3 ''
|
postPatch = lib.optionalString withGtk3 ''
|
||||||
substituteInPlace configure --replace gio-2.0 gio-unix-2.0
|
substituteInPlace configure --replace gio-2.0 gio-unix-2.0
|
||||||
|
@ -1,5 +1,5 @@
|
|||||||
{ stdenv, fetchurl, fetchpatch, pkgconfig, intltool, gtk, polkit
|
{ stdenv, fetchurl, fetchpatch, pkgconfig, intltool, gtk, polkit
|
||||||
, libxfce4util, libxfce4ui, xfce4panel, libwnck, dbus-glib, xfconf, libglade, xorg
|
, libxfce4util, libxfce4ui, xfce4-panel, libwnck, dbus-glib, xfconf, libglade, xorg
|
||||||
, hicolor-icon-theme
|
, hicolor-icon-theme
|
||||||
}:
|
}:
|
||||||
|
|
||||||
@ -23,7 +23,7 @@ stdenv.mkDerivation rec {
|
|||||||
|
|
||||||
buildInputs =
|
buildInputs =
|
||||||
[ pkgconfig intltool gtk libxfce4util libxfce4ui libwnck dbus-glib
|
[ pkgconfig intltool gtk libxfce4util libxfce4ui libwnck dbus-glib
|
||||||
xfconf xfce4panel libglade xorg.iceauth xorg.libSM
|
xfconf xfce4-panel libglade xorg.iceauth xorg.libSM
|
||||||
polkit hicolor-icon-theme
|
polkit hicolor-icon-theme
|
||||||
]; #TODO: upower-glib, gconf (assistive?), gnome keyring
|
]; #TODO: upower-glib, gconf (assistive?), gnome keyring
|
||||||
|
|
||||||
|
Some files were not shown because too many files have changed in this diff Show More
Loading…
Reference in New Issue
Block a user