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: 3d7950bebd46
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: 198afad520d6
Choose a head ref
  • 16 commits
  • 11 files changed
  • 9 contributors

Commits on May 24, 2019

  1. mautrix-telegram: patch away alembic dependency

    `alembic`[1] is a database migration tool which is invoked from the CLI
    when installing the telegram bridge, but never needed during the
    runtime.
    
    The reason why `alembic` is required here is to ensure that it
    exists in the Python environment when deploying the bridge. However
    `alembic` requires `mautrix-telegram` in its environment to create a
    database schema from the Python models.
    
    Such a dependency relation may be possible with tools like virtualenv,
    however it'll result in an infinite recursion at evaluation time in Nix.
    
    With this patch, `mautrix-telegram` doesn't depend on `alembic` anymore
    and provides a patched alembic (`pkgs.mautrix-telegram.alembic`) which
    has `mautrix-telegram` in its path.
    
    [1] https://alembic.sqlalchemy.org/en/latest/
    Ma27 committed May 24, 2019

    Verified

    This commit was signed with the committer’s verified signature. The key has expired.
    Ma27 Maximilian Bosch
    Copy the full SHA
    0a94f89 View commit details

Commits on May 28, 2019

  1. hcxtools: init at 5.1.4

    dywedir committed May 28, 2019

    Verified

    This commit was signed with the committer’s verified signature.
    dywedir Vlad M.
    Copy the full SHA
    8c3dfab View commit details
  2. Copy the full SHA
    c9d1a0d View commit details

Commits on May 29, 2019

  1. dedup: 1.0 -> 2.0

    Update deps, enable tests.
    dtzWill committed May 29, 2019

    Verified

    This commit was signed with the committer’s verified signature. The key has expired.
    dtzWill Will Dietz
    Copy the full SHA
    7d4bfca View commit details
  2. rofi-pass: refactor add new optional dependency pass-otp

    Rofi-pass as of a year ago added support for OTP passwords. This
    dependency is "optional" but extremely nice to have as a default.
    
    https://github.com/carnager/rofi-pass#requirements
    costrouc committed May 29, 2019

    Verified

    This commit was signed with the committer’s verified signature.
    costrouc Christopher Ostrouchov
    Copy the full SHA
    2623df3 View commit details

Commits on May 30, 2019

  1. nixos/malloc: apply allocator settings to systemd units

    This uses systemd's system.conf/user.conf "DefaultEnvironment" feature
    to set the allocator's LD_PRELOAD near-globally.
    delroth committed May 30, 2019

    Verified

    This commit was signed with the committer’s verified signature.
    delroth Pierre Bourdon
    Copy the full SHA
    9e60eab View commit details
  2. Merge pull request #62149 from dywedir/hcxtools

    hcxtools: init at 5.1.4
    dywedir authored May 30, 2019

    Verified

    This commit was created on GitHub.com and signed with GitHub’s verified signature. The key has expired.
    Copy the full SHA
    f71eeb3 View commit details
  3. btrfs-progs: hack to make it build on i686-linux

    /cc #61086.  I just wanted to unblock channels quickly.
    vcunat committed May 30, 2019

    Verified

    This commit was signed with the committer’s verified signature.
    vcunat Vladimír Čunát
    Copy the full SHA
    aa440d8 View commit details
  4. Verified

    This commit was signed with the committer’s verified signature. The key has expired.
    Ma27 Maximilian Bosch
    Copy the full SHA
    63fd414 View commit details
  5. Merge pull request #61116 from mmlb/add-gitstatus

    gitAndTools.gitstatus: init at 20190506
    nlewo authored May 30, 2019

    Verified

    This commit was created on GitHub.com and signed with GitHub’s verified signature. The key has expired.
    Copy the full SHA
    3213c6c View commit details
  6. Merge pull request #62199 from dtzWill/update/dedup-2.0

    dedup: 1.0 -> 2.0
    Ma27 authored May 30, 2019

    Verified

    This commit was created on GitHub.com and signed with GitHub’s verified signature. The key has expired.
    Copy the full SHA
    65a73e0 View commit details
  7. Merge pull request #62218 from costrouc/rofi-pass-new-dependency

    rofi-pass: refactor add new optional dependency pass-otp
    Ma27 authored May 30, 2019

    Verified

    This commit was created on GitHub.com and signed with GitHub’s verified signature. The key has expired.
    Copy the full SHA
    479d161 View commit details
  8. Merge pull request #62238 from delroth/hardened-alloc-systemwide

    nixos/malloc: apply allocator settings to systemd units
    joachifm authored May 30, 2019

    Verified

    This commit was created on GitHub.com and signed with GitHub’s verified signature. The key has expired.
    Copy the full SHA
    b0500aa View commit details
  9. Merge pull request #59519 from Ma27/improve-mautrix-telegram

    mautrix-telegram: patch away alembic dependency
    Ma27 authored May 30, 2019

    Verified

    This commit was created on GitHub.com and signed with GitHub’s verified signature. The key has expired.
    Copy the full SHA
    5949838 View commit details
  10. Verified

    This commit was signed with the committer’s verified signature.
    vcunat Vladimír Čunát
    Copy the full SHA
    205e488 View commit details
  11. Verified

    This commit was signed with the committer’s verified signature.
    vcunat Vladimír Čunát
    Copy the full SHA
    198afad View commit details
2 changes: 2 additions & 0 deletions nixos/modules/config/malloc.nix
Original file line number Diff line number Diff line change
@@ -91,5 +91,7 @@ in

config = mkIf (cfg.provider != "libc") {
environment.variables.LD_PRELOAD = providerLibPath;
systemd.extraConfig = "DefaultEnvironment=\"LD_PRELOAD=${providerLibPath}\"";
systemd.user.extraConfig = "DefaultEnvironment=\"LD_PRELOAD=${providerLibPath}\"";
};
}
Original file line number Diff line number Diff line change
@@ -127,6 +127,8 @@ let

gitflow = callPackage ./gitflow { };

gitstatus = callPackage ./gitstatus { };

grv = callPackage ./grv { };

hub = callPackage ./hub {
Original file line number Diff line number Diff line change
@@ -0,0 +1,30 @@
{callPackage, stdenv, fetchFromGitHub, ...}:

stdenv.mkDerivation rec {
pname = "gitstatus";
version = "unstable-2019-05-06";

src = fetchFromGitHub {
owner = "romkatv";
repo = "gitstatus";
rev = "9c791f93c23c04dadfab8b4309a863b62a6ee424";
sha256 = "0jbdrgl62x6j920h72n2q6304fb6gdgnmllpv4aa76m13b9qhgq6";
};

buildInputs = [ (callPackage ./romkatv_libgit2.nix {}) ];
patchPhase = ''
sed -i "s|local daemon.*|local daemon=$out/bin/gitstatusd|" gitstatus.plugin.zsh
'';
installPhase = ''
install -Dm755 gitstatusd $out/bin/gitstatusd
install -Dm444 gitstatus.plugin.zsh $out
'';

meta = with stdenv.lib; {
description = "10x faster implementation of `git status` command";
homepage = https://github.com/romkatv/gitstatus;
license = [ licenses.gpl3 ];

maintainers = [ maintainers.mmlb ];
};
}
Original file line number Diff line number Diff line change
@@ -0,0 +1,19 @@
{fetchFromGitHub, libgit2_0_27, ...}:

libgit2_0_27.overrideAttrs (oldAttrs: rec {
cmakeFlags = oldAttrs.cmakeFlags ++ [
"-DUSE_BUNDLED_ZLIB=ON"
"-DUSE_ICONV=OFF"
"-DBUILD_CLAR=OFF"
"-DUSE_SSH=OFF"
"-DUSE_HTTPS=OFF"
"-DBUILD_SHARED_LIBS=OFF"
"-DUSE_EXT_HTTP_PARSER=OFF"
];
src = fetchFromGitHub {
owner = "romkatv";
repo = "libgit2";
rev = "aab6c56e6766fa752bef00c745067d875925fc89";
sha256 = "1yqqhpi5xi6s86411sixw4yq5c6n2v8pdh447c8b7q5lfc089lvl";
};
})
11 changes: 7 additions & 4 deletions pkgs/desktops/gnome-3/apps/gnome-todo/default.nix
Original file line number Diff line number Diff line change
@@ -38,6 +38,10 @@ stdenv.mkDerivation rec {
sha256 = "08ldgyxv9216dgr8y9asqd7j2y82y9yqnqhkqaxc9i8a67yz1gzy";
})
];
postPatch = ''
chmod +x meson_post_install.py
patchShebangs meson_post_install.py
'';

nativeBuildInputs = [
meson
@@ -64,10 +68,9 @@ stdenv.mkDerivation rec {
json-glib
];

postPatch = ''
chmod +x meson_post_install.py
patchShebangs meson_post_install.py
'';
# Fix parallel building: missing dependency from src/gtd-application.c
# Probably remove for 3.30+ https://gitlab.gnome.org/GNOME/gnome-todo/issues/170
preBuild = "ninja src/gtd-vcs-identifier.h";

passthru = {
updateScript = gnome3.updateScript {
22 changes: 19 additions & 3 deletions pkgs/servers/mautrix-telegram/default.nix
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
{ lib, python3 }:
{ lib, python3, mautrix-telegram }:

with python3.pkgs;

@@ -11,11 +11,15 @@ buildPythonPackage rec {
sha256 = "51951845e52c4ca5410e0f4a51d99014dd6df2fcedfca8b7241e045359cbf112";
};

postPatch = ''
sed -i -e '/alembic>/d' setup.py
'';

propagatedBuildInputs = [
Mako
aiohttp
mautrix-appservice
sqlalchemy
alembic
CommonMark
ruamel_yaml
future-fstrings
@@ -26,6 +30,18 @@ buildPythonPackage rec {
lxml
];

# `alembic` (a database migration tool) is only needed for the initial setup,
# and not needed during the actual runtime. However `alembic` requires `mautrix-telegram`
# in its environment to create a database schema from all models.
#
# Hence we need to patch away `alembic` from `mautrix-telegram` and create an `alembic`
# which has `mautrix-telegram` in its environment.
passthru.alembic = alembic.overrideAttrs (old: {
propagatedBuildInputs = old.propagatedBuildInputs ++ [
mautrix-telegram
];
});

checkInputs = [
pytest
pytestrunner
@@ -37,6 +53,6 @@ buildPythonPackage rec {
homepage = https://github.com/tulir/mautrix-telegram;
description = "A Matrix-Telegram hybrid puppeting/relaybot bridge";
license = licenses.agpl3Plus;
maintainers = with maintainers; [ nyanloutre ];
maintainers = with maintainers; [ nyanloutre ma27 ];
};
}
21 changes: 13 additions & 8 deletions pkgs/tools/backup/dedup/default.nix
Original file line number Diff line number Diff line change
@@ -1,27 +1,32 @@
{ stdenv, fetchurl, lz4, snappy, openmp }:
{ stdenv, fetchurl, fetchgit, lz4, snappy, libsodium
# For testing
, coreutils, gawk
}:

stdenv.mkDerivation rec {
pname = "dedup";
version = "1.0";
version = "2.0";

src = fetchurl {
url = "https://dl.2f30.org/releases/${pname}-${version}.tar.gz";
sha256 = "0wd4cnzhqk8l7byp1y16slma6r3i1qglwicwmxirhwdy1m7j5ijy";
sha256 = "0n5kkni4d6blz3s94y0ddyhijb74lxv7msr2mvdmj8l19k0lrfh1";
};

makeFlags = [
"CC:=$(CC)"
"PREFIX=${placeholder "out"}"
"MANPREFIX=${placeholder "out"}/share/man"
# These are likely wrong on some platforms, please report!
"OPENMPCFLAGS=-fopenmp"
"OPENMPLDLIBS=-lgomp"
];

buildInputs = [ lz4 snappy openmp ];
buildInputs = [ lz4 snappy libsodium ];

doCheck = true;

checkInputs = [ coreutils gawk ];
checkTarget = "test";

meta = with stdenv.lib; {
description = "data deduplication program";
description = "Data deduplication program";
homepage = https://git.2f30.org/dedup/file/README.html;
license = with licenses; [ bsd0 isc ];
maintainers = with maintainers; [ dtzWill ];
3 changes: 2 additions & 1 deletion pkgs/tools/filesystems/btrfs-progs/default.nix
Original file line number Diff line number Diff line change
@@ -20,7 +20,8 @@ stdenv.mkDerivation rec {

# for python cross-compiling
_PYTHON_HOST_PLATFORM = stdenv.hostPlatform.config;
postConfigure = ''
# The i686 case is a quick hack; I don't know what's wrong.
postConfigure = stdenv.lib.optionalString (!stdenv.isi686) ''
export LDSHARED="$LD -shared"
'';

27 changes: 27 additions & 0 deletions pkgs/tools/security/hcxtools/default.nix
Original file line number Diff line number Diff line change
@@ -0,0 +1,27 @@
{ stdenv, fetchFromGitHub, curl, openssl, zlib }:

stdenv.mkDerivation rec {
pname = "hcxtools";
version = "5.1.4";

src = fetchFromGitHub {
owner = "ZerBea";
repo = pname;
rev = version;
sha256 = "1bkl0j6m5q091fas99s83aclcc5kfwacmkgmyg8565z2npvnj7nf";
};

buildInputs = [ curl openssl zlib ];

makeFlags = [
"PREFIX=${placeholder "out"}"
];

meta = with stdenv.lib; {
description = "Tools for capturing wlan traffic and conversion to hashcat and John the Ripper formats";
homepage = https://github.com/ZerBea/hcxtools;
license = licenses.mit;
platforms = platforms.linux;
maintainers = with maintainers; [ dywedir ];
};
}
2 changes: 1 addition & 1 deletion pkgs/tools/security/pass/rofi-pass.nix
Original file line number Diff line number Diff line change
@@ -32,7 +32,7 @@ stdenv.mkDerivation rec {
gnugrep
gnused
libnotify
pass
(pass.withExtensions (ext: [ ext.pass-otp ]))
pwgen
rofi
utillinux
8 changes: 4 additions & 4 deletions pkgs/top-level/all-packages.nix
Original file line number Diff line number Diff line change
@@ -1362,9 +1362,7 @@ in

ddate = callPackage ../tools/misc/ddate { };

dedup = callPackage ../tools/backup/dedup {
inherit (llvmPackages) openmp;
};
dedup = callPackage ../tools/backup/dedup { };

dehydrated = callPackage ../tools/admin/dehydrated { };

@@ -3533,6 +3531,8 @@ in

hardinfo = callPackage ../tools/system/hardinfo { };

hcxtools = callPackage ../tools/security/hcxtools { };

hdapsd = callPackage ../os-specific/linux/hdapsd { };

hdaps-gl = callPackage ../tools/misc/hdaps-gl { };
@@ -4082,7 +4082,7 @@ in

matrix-synapse = callPackage ../servers/matrix-synapse { };

mautrix-telegram = callPackage ../servers/mautrix-telegram { };
mautrix-telegram = recurseIntoAttrs (callPackage ../servers/mautrix-telegram { });

mautrix-whatsapp = callPackage ../servers/mautrix-whatsapp { };