Skip to content
This repository was archived by the owner on Apr 12, 2021. It is now read-only.
Permalink

Comparing changes

Choose two branches to see what’s changed or to start a new pull request. If you need to, you can also or learn more about diff comparisons.

Open a pull request

Create a new pull request by comparing changes across two branches. If you need to, you can also . Learn more about diff comparisons here.
base repository: NixOS/nixpkgs-channels
Failed to load repositories. Confirm that selected base ref is valid, then try again.
Loading
base: ecf59492c752
Choose a base ref
...
head repository: NixOS/nixpkgs-channels
Failed to load repositories. Confirm that selected head ref is valid, then try again.
Loading
compare: 5aae21daea76
Choose a head ref
  • 15 commits
  • 14 files changed
  • 7 contributors

Commits on Apr 20, 2019

  1. ethminer: init at 0.18.0-rc.0

    - Tested on NixOS
    Fernando J Pando committed Apr 20, 2019
    Copy the full SHA
    3bfff36 View commit details
  2. ethash: init at 0.4.2

    - Tested on NixOS
    Fernando J Pando committed Apr 20, 2019

    Verified

    This commit was created on GitHub.com and signed with GitHub’s verified signature. The key has expired.
    Copy the full SHA
    81e02cf View commit details
  3. cli11: init at 1.7.1

    - Tested on NixOS
    Fernando J Pando committed Apr 20, 2019
    Copy the full SHA
    8fb48ff View commit details
  4. jsoncpp: 1.8.4 add cmake support

    - Tested on NixOS
    Fernando J Pando committed Apr 20, 2019
    Copy the full SHA
    b5458aa View commit details

Commits on Apr 30, 2019

  1. gcalcli: 4.0.4 -> 4.1.0

    peterhoeg committed Apr 30, 2019
    Copy the full SHA
    22f9700 View commit details

Commits on May 1, 2019

  1. Copy the full SHA
    1cb85dc View commit details
  2. Copy the full SHA
    d40cef1 View commit details
  3. Copy the full SHA
    9fc607d View commit details
  4. Copy the full SHA
    00b1b11 View commit details
  5. nixos/ethminer: init

    - Tested on NixOS
    Fernando J Pando committed May 1, 2019
    Copy the full SHA
    3325773 View commit details
  6. Merge pull request #60671 from romildo/upd.tetra-gtk-theme

    tetra-gtk-theme: 201903 -> 201905
    dtzWill authored May 1, 2019
    Copy the full SHA
    65a49da View commit details
  7. Merge pull request #60401 from romildo/upd.mate

    mate.mate-control-center: look up keyboard shortcuts in system data dirs
    romildo authored May 1, 2019
    Copy the full SHA
    f930293 View commit details
  8. Merge pull request #55422 from nand0p/ethminer

    ethminer: init at 0.18.0-rc.0
    infinisil authored May 1, 2019
    Copy the full SHA
    b6a6162 View commit details

Commits on May 2, 2019

  1. Merge pull request #59804 from lopsided98/uboot-rock64-fix

    ubootRock64, ubootRockPro64: make compatible with latest dtc
    samueldr authored May 2, 2019
    Copy the full SHA
    b726784 View commit details
  2. Merge pull request #60467 from peterhoeg/u/gcal

    gcalcli: 4.0.4 -> 4.1.0
    peterhoeg authored May 2, 2019
    Copy the full SHA
    5aae21d View commit details
1 change: 1 addition & 0 deletions nixos/modules/module-list.nix
Original file line number Diff line number Diff line change
@@ -395,6 +395,7 @@
./services/misc/emby.nix
./services/misc/errbot.nix
./services/misc/etcd.nix
./services/misc/ethminer.nix
./services/misc/exhibitor.nix
./services/misc/felix.nix
./services/misc/folding-at-home.nix
115 changes: 115 additions & 0 deletions nixos/modules/services/misc/ethminer.nix
Original file line number Diff line number Diff line change
@@ -0,0 +1,115 @@
{ config, lib, pkgs, ... }:

with lib;

let
cfg = config.services.ethminer;
poolUrl = escapeShellArg "stratum1+tcp://${cfg.wallet}@${cfg.pool}:${toString cfg.stratumPort}/${cfg.rig}/${cfg.registerMail}";
in

{

###### interface

options = {

services.ethminer = {

enable = mkOption {
type = types.bool;
default = false;
description = "Enable ethminer ether mining.";
};

recheckInterval = mkOption {
type = types.int;
default = 2000;
description = "Interval in milliseconds between farm rechecks.";
};

toolkit = mkOption {
type = types.enum [ "cuda" "opencl" ];
default = "cuda";
description = "Cuda or opencl toolkit.";
};

apiPort = mkOption {
type = types.int;
default = -3333;
description = "Ethminer api port. minus sign puts api in read-only mode.";
};

wallet = mkOption {
type = types.str;
example = "0x0123456789abcdef0123456789abcdef01234567";
description = "Ethereum wallet address.";
};

pool = mkOption {
type = types.str;
example = "eth-us-east1.nanopool.org";
description = "Mining pool address.";
};

stratumPort = mkOption {
type = types.port;
default = 9999;
description = "Stratum protocol tcp port.";
};

rig = mkOption {
type = types.str;
default = "mining-rig-name";
description = "Mining rig name.";
};

registerMail = mkOption {
type = types.str;
example = "email%40example.org";
description = "Url encoded email address to register with pool.";
};

maxPower = mkOption {
type = types.int;
default = 115;
description = "Miner max watt usage.";
};

};

};


###### implementation

config = mkIf cfg.enable {

systemd.services.ethminer = {
path = [ pkgs.cudatoolkit ];
description = "ethminer ethereum mining service";
wantedBy = [ "multi-user.target" ];
after = [ "network.target" ];

serviceConfig = {
DynamicUser = true;
ExecStartPost = optional (cfg.toolkit == "cuda") "+${getBin config.boot.kernelPackages.nvidia_x11}/bin/nvidia-smi -pl ${toString cfg.maxPower}";
};

environment = {
LD_LIBRARY_PATH = "${config.boot.kernelPackages.nvidia_x11}/lib";
};

script = ''
${pkgs.ethminer}/bin/.ethminer-wrapped \
--farm-recheck ${toString cfg.recheckInterval} \
--report-hashrate \
--${cfg.toolkit} \
--api-port ${toString cfg.apiPort} \
--pool ${poolUrl}
'';

};

};

}
16 changes: 5 additions & 11 deletions pkgs/applications/misc/gcalcli/default.nix
Original file line number Diff line number Diff line change
@@ -5,32 +5,26 @@ with python3.pkgs;

buildPythonApplication rec {
pname = "gcalcli";
version = "4.0.4";
version = "4.1.0";

src = fetchFromGitHub {
owner = "insanum";
repo = pname;
rev = "v${version}";
sha256 = "0bl4cmc24iw12zn5mlj5qn141s2k2mzdixbcb92pfng4w2s4dq66";
sha256 = "06iijpwlvvn8bj81s4znhykilvwvydxjmzd3d4nsa5j2kj3iwshi";
};

postPatch = lib.optionalString stdenv.isLinux ''
substituteInPlace gcalcli/argparsers.py --replace \
"command = 'notify-send -u critical" \
"command = '${libnotify}/bin/notify-send -u critical"
substituteInPlace gcalcli/argparsers.py \
--replace "'notify-send" "'${libnotify}/bin/notify-send"
'';

propagatedBuildInputs = [
dateutil gflags httplib2 parsedatetime six vobject
google_api_python_client oauth2client uritemplate
libnotify
] ++ lib.optional (!isPy3k) futures;

postInstall = lib.optionalString stdenv.isLinux ''
substituteInPlace $out/bin/gcalcli --replace \
"command = 'notify-send -u critical -a gcalcli %s'" \
"command = '${libnotify}/bin/notify-send -i view-calendar-upcoming-events -u critical -a Calendar %s'"
'';

# There are no tests as of 4.0.0a4
doCheck = false;

Original file line number Diff line number Diff line change
@@ -1,14 +1,14 @@
{ stdenv, fetchFromGitHub, gtk3, sassc }:

stdenv.mkDerivation rec {
name = "tetra-gtk-theme-${version}";
version = "201903";
pname = "tetra-gtk-theme";
version = "201905";

src = fetchFromGitHub {
owner = "hrdwrrsk";
repo = "tetra-gtk-theme";
repo = pname;
rev = version;
sha256 = "0ycxvz16gg8rjlg71dzbfnqlh0y62v35j8dvgs8rckfb48xm0xvs";
sha256 = "1j2w8na564f5yjm5am7843hq5qk28h1rq8rcbak4xsygdc3lbsfi";
};

preBuild = ''
14 changes: 14 additions & 0 deletions pkgs/desktops/mate/mate-control-center/default.nix
Original file line number Diff line number Diff line change
@@ -37,8 +37,22 @@ stdenv.mkDerivation rec {
mate.mate-settings-daemon
];

patches = [
# look up keyboard shortcuts in system data dirs
./mate-control-center.keybindings-dir.patch
];

configureFlags = [ "--disable-update-mimedb" ];

preFixup = ''
gappsWrapperArgs+=(
# WM keyboard shortcuts
--prefix XDG_DATA_DIRS : "${mate.marco}/share"
)
'';

enableParallelBuilding = true;

meta = with stdenv.lib; {
description = "Utilities to configure the MATE desktop";
homepage = https://github.com/mate-desktop/mate-control-center;
Original file line number Diff line number Diff line change
@@ -0,0 +1,106 @@
From faeb322b01d3856f3cf163470cc38f4e88a8527c Mon Sep 17 00:00:00 2001
From: =?UTF-8?q?Jos=C3=A9=20Romildo=20Malaquias?= <malaquias@gmail.com>
Date: Sun, 28 Apr 2019 21:45:39 -0300
Subject: [PATCH] Use system data dirs to locate key bindings

---
capplets/keybindings/Makefile.am | 3 +-
.../keybindings/mate-keybinding-properties.c | 58 ++++++++++++-------
2 files changed, 39 insertions(+), 22 deletions(-)

diff --git a/capplets/keybindings/Makefile.am b/capplets/keybindings/Makefile.am
index e5efb109..9501dd8f 100644
--- a/capplets/keybindings/Makefile.am
+++ b/capplets/keybindings/Makefile.am
@@ -33,8 +33,7 @@ AM_CPPFLAGS = \
$(MATECC_CAPPLETS_CFLAGS) \
-DMATELOCALEDIR="\"$(datadir)/locale\"" \
-DMATECC_DATA_DIR="\"$(pkgdatadir)\"" \
- -DMATECC_UI_DIR="\"$(uidir)\"" \
- -DMATECC_KEYBINDINGS_DIR="\"$(pkgdatadir)/keybindings\""
+ -DMATECC_UI_DIR="\"$(uidir)\""
CLEANFILES = \
$(MATECC_CAPPLETS_CLEANFILES) \
$(desktop_DATA) \
diff --git a/capplets/keybindings/mate-keybinding-properties.c b/capplets/keybindings/mate-keybinding-properties.c
index 4f257333..cf1891d2 100644
--- a/capplets/keybindings/mate-keybinding-properties.c
+++ b/capplets/keybindings/mate-keybinding-properties.c
@@ -1033,39 +1033,57 @@ static void
reload_key_entries (GtkBuilder *builder)
{
gchar **wm_keybindings;
- GDir *dir;
- const char *name;
GList *list, *l;
+ const gchar * const * data_dirs;
+ GHashTable *loaded_files;
+ guint i;

wm_keybindings = wm_common_get_current_keybindings();

clear_old_model (builder);

- dir = g_dir_open (MATECC_KEYBINDINGS_DIR, 0, NULL);
- if (!dir)
- return;
-
- list = NULL;
- for (name = g_dir_read_name (dir) ; name ; name = g_dir_read_name (dir))
+ loaded_files = g_hash_table_new_full (g_str_hash, g_str_equal, g_free, g_free);
+ data_dirs = g_get_system_data_dirs ();
+ for (i = 0; data_dirs[i] != NULL; i++)
{
- if (g_str_has_suffix (name, ".xml"))
+ g_autofree gchar *dir_path = NULL;
+ GDir *dir;
+ const gchar *name;
+
+ dir_path = g_build_filename (data_dirs[i], "mate-control-center", "keybindings", NULL);
+ g_debug ("Keybinding dir: %s", dir_path);
+
+ dir = g_dir_open (dir_path, 0, NULL);
+ if (!dir)
+ continue;
+
+ for (name = g_dir_read_name (dir) ; name ; name = g_dir_read_name (dir))
{
- list = g_list_insert_sorted (list, g_strdup (name),
- (GCompareFunc) g_ascii_strcasecmp);
- }
- }
- g_dir_close (dir);
+ if (g_str_has_suffix (name, ".xml") == FALSE)
+ continue;
+
+ if (g_hash_table_lookup (loaded_files, name) != NULL)
+ {
+ g_debug ("Not loading %s, it was already loaded from another directory", name);
+ continue;
+ }

+ g_hash_table_insert (loaded_files, g_strdup (name), g_strdup (dir_path));
+ }
+
+ g_dir_close (dir);
+ }
+ list = g_hash_table_get_keys (loaded_files);
+ list = g_list_sort(list, (GCompareFunc) g_str_equal);
for (l = list; l != NULL; l = l->next)
{
- gchar *path;
-
- path = g_build_filename (MATECC_KEYBINDINGS_DIR, l->data, NULL);
- append_keys_to_tree_from_file (builder, path, wm_keybindings);
- g_free (l->data);
- g_free (path);
+ g_autofree gchar *path = NULL;
+ path = g_build_filename (g_hash_table_lookup (loaded_files, l->data), l->data, NULL);
+ g_debug ("Keybinding file: %s", path);
+ append_keys_to_tree_from_file (builder, path, wm_keybindings);
}
g_list_free (list);
+ g_hash_table_destroy (loaded_files);

/* Load custom shortcuts _after_ system-provided ones,
* since some of the custom shortcuts may also be listed
58 changes: 58 additions & 0 deletions pkgs/development/libraries/ethash/default.nix
Original file line number Diff line number Diff line change
@@ -0,0 +1,58 @@
{ stdenv, fetchFromGitHub, cmake, boost, cryptopp, opencl-headers, opencl-info,
openmpi, ocl-icd, mesa, gbenchmark, gtest }:

stdenv.mkDerivation rec {
pname = "ethash";
version = "0.4.2";

src =
fetchFromGitHub {
owner = "chfast";
repo = "ethash";
rev = "v${version}";
sha256 = "0qiixvxbpl2gz7jh1qs8lmyk7wzv6ffnl7kckqgrpgm547nnn8zy";
};

nativeBuildInputs = [
cmake
];

buildInputs = [
boost
cryptopp
opencl-headers
opencl-info
openmpi
ocl-icd
mesa
];

checkInputs = [
gbenchmark
gtest
];

#preConfigure = ''
# sed -i 's/GTest::main//' test/unittests/CMakeLists.txt
# cat test/unittests/CMakeLists.txt
# ln -sfv ${gtest.src}/googletest gtest
#'';

# NOTE: disabling tests due to gtest issue
cmakeFlags = [
"-DHUNTER_ENABLED=OFF"
"-DETHASH_BUILD_TESTS=OFF"
#"-Dbenchmark_DIR=${gbenchmark}/lib/cmake/benchmark"
#"-DGTest_DIR=${gtest.dev}/lib/cmake/GTest"
#"-DGTest_DIR=${gtest.src}/googletest"
#"-DCMAKE_PREFIX_PATH=${gtest.dev}/lib/cmake"
];

meta = with stdenv.lib; {
description = "PoW algorithm for Ethereum 1.0 based on Dagger-Hashimoto";
homepage = https://github.com/ethereum/ethash;
platforms = [ "x86_64-linux" ];
maintainers = with maintainers; [ nand0p ];
license = licenses.asl20;
};
}
12 changes: 5 additions & 7 deletions pkgs/development/libraries/jsoncpp/default.nix
Original file line number Diff line number Diff line change
@@ -1,10 +1,7 @@
{ stdenv
, fetchFromGitHub
, cmake
, python
}:
{ stdenv , fetchFromGitHub , cmake , python }:

stdenv.mkDerivation rec {
name = "jsoncpp-${version}";
pname = "jsoncpp";
version = "1.8.4";

src = fetchFromGitHub {
@@ -36,13 +33,14 @@ stdenv.mkDerivation rec {
cmakeFlags = [
"-DBUILD_SHARED_LIBS=ON"
"-DBUILD_STATIC_LIBS=OFF"
"-DJSONCPP_WITH_CMAKE_PACKAGE=ON"
];

meta = with stdenv.lib; {
inherit version;
homepage = https://github.com/open-source-parsers/jsoncpp;
description = "A C++ library for interacting with JSON.";
maintainers = with maintainers; [ ttuegel cpages ];
maintainers = with maintainers; [ ttuegel cpages nand0p ];
license = licenses.mit;
platforms = platforms.all;
};
Loading