Merge branch 'master' into staging-next

This commit is contained in:
Jan Tojnar
2021-04-06 16:01:14 +02:00
493 changed files with 4687 additions and 2055 deletions
+3 -10
View File
@@ -1,23 +1,16 @@
{ lib, stdenv, fetchFromGitHub, fetchpatch }:
{ lib, stdenv, fetchFromGitHub }:
stdenv.mkDerivation rec {
pname = "betterdiscordctl";
version = "1.7.0";
version = "1.7.1";
src = fetchFromGitHub {
owner = "bb010g";
repo = "betterdiscordctl";
rev = "v${version}";
sha256 = "0qpmm5l8jhm7k0kqblc0bnr9fl4b6z8iddhjar03bb4kqgr962fa";
sha256 = "12c3phcfwl4p2jfh22ihm57vxw4nq5kwqirb7y4gzc91swfh5yj1";
};
patches = [
(fetchpatch { # Required till https://github.com/bb010g/betterdiscordctl/pull/67 is merged upstream.
url = "https://github.com/bb010g/betterdiscordctl/pull/67/commits/f1c7170fc2626d9aec4d244977b5a73c401aa1d4.patch";
sha256 = "003zqd9ljb9h674sjwjvvdfs7q4cw0p1ydg3lax132vb4vz9k0zi";
})
];
preBuild = "sed -i 's/^nix=$/&yes/g;s/^DISABLE_UPGRADE=$/&yes/g' ./betterdiscordctl";
installPhase = ''
+13
View File
@@ -0,0 +1,13 @@
diff --git a/Makefile b/Makefile
index 1fe4c41..2c69558 100644
--- a/Makefile
+++ b/Makefile
@@ -16,7 +16,7 @@ LIBS = -lutil
PREFIX = /usr/local
all:
- ${CC} ${CFLAGS} -Wall ${LIBS} -o empty empty.c
+ ${CC} ${CFLAGS} -Wall -o empty empty.c ${LIBS}
FreeBSD: all
NetBSD: all
+46
View File
@@ -0,0 +1,46 @@
{ fetchzip, lib, stdenv, which }:
stdenv.mkDerivation rec {
pname = "empty";
version = "0.6.21b";
src = fetchzip {
url = "mirror://sourceforge/${pname}/${pname}/${pname}-${version}.tgz";
sha256 = "1rkixh2byr70pdxrwr4lj1ckh191rjny1m5xbjsa7nqw1fw6c2xs";
stripRoot = false;
};
patches = [
./0.6-Makefile.patch
];
nativeBuildInputs = [ which ];
makeFlags = [ "PREFIX=$(out)" ];
postPatch = ''
rm empty
'';
meta = with lib; {
homepage = "http://empty.sourceforge.net";
description = "A simple tool to automate interactive terminal applications";
license = licenses.bsd3;
platforms = platforms.all;
longDescription = ''
The empty utility provides an interface to execute and/or interact with
processes under pseudo-terminal sessions (PTYs). This tool is definitely
useful in programming of shell scripts designed to communicate with
interactive programs like telnet, ssh, ftp, etc. In some cases empty can
be the simplest replacement for TCL/expect or other similar programming
tools because empty:
- can be easily invoked directly from shell prompt or script
- does not use TCL, Perl, PHP, Python or anything else as an underlying language
- is written entirely in C
- has small and simple source code
- can easily be ported to almost all UNIX-like systems
'';
maintainers = [ maintainers.djwf ];
};
}
+2 -2
View File
@@ -8,7 +8,7 @@
, libarchive
, libconfuse
, libsodium
, lzma
, xz
, zlib
, coreutils
, dosfstools
@@ -42,7 +42,7 @@ stdenv.mkDerivation rec {
libarchive
libconfuse
libsodium
lzma
xz
zlib
]
++ lib.optionals stdenv.isDarwin [
+23
View File
@@ -0,0 +1,23 @@
{ lib, buildGoModule, fetchFromGitHub }:
buildGoModule rec {
pname = "grit";
version = "0.2.0";
src = fetchFromGitHub {
owner = "climech";
repo = "grit";
rev = "v${version}";
sha256 = "0v4i8xdf1pgkmwad5jb6n6s4rx48zk57wij0ppzg6zb725wy7r8a";
};
vendorSha256 = "0a1lqfn710fgvrvbimd92102fhjs1wa7r8i0l7s5m7jxks629hw8";
meta = with lib; {
description = "A multitree-based personal task manager";
homepage = "https://github.com/climech/grit";
license = licenses.mit;
platforms = platforms.unix;
maintainers = [ maintainers.ivar ];
};
}
+3 -3
View File
@@ -2,13 +2,13 @@
rustPlatform.buildRustPackage rec {
pname = "mcfly";
version = "0.5.5";
version = "0.5.6";
src = fetchFromGitHub {
owner = "cantino";
repo = "mcfly";
rev = "v${version}";
sha256 = "sha256-4slE/11N9L9Q45w/LF5rNkOZbADjY1n4NxdoNlXPdo8=";
sha256 = "sha256-x2cED+WEc50RB8BxiDEm/XnauT1RqqGjSIdL5MMaFBY=";
};
postInstall = ''
@@ -20,7 +20,7 @@ rustPlatform.buildRustPackage rec {
install -Dm644 -t $out/share/mcfly mcfly.fish
'';
cargoSha256 = "sha256-MlhltJh+Z2GFHm+qCD8UDEvY+W8EprxVoBv/kj4v1Qc=";
cargoSha256 = "sha256-JCV1cj+RncY/myVJTJ5fNkVqTITqGusA71tv7zGG9Uw=";
meta = with lib; {
homepage = "https://github.com/cantino/mcfly";
+2 -2
View File
@@ -1,5 +1,5 @@
{ lib, stdenv, fetchurl, pkg-config, meson, ninja, gettext, glib, libxml2, perl, python3
, libxslt, libarchive, bzip2, lzma, json-glib, libsoup
, libxslt, libarchive, bzip2, xz, json-glib, libsoup
}:
stdenv.mkDerivation rec {
@@ -12,7 +12,7 @@ stdenv.mkDerivation rec {
};
nativeBuildInputs = [ meson ninja pkg-config gettext perl python3 ];
buildInputs = [ glib json-glib libxml2 libxslt libarchive bzip2 lzma libsoup ];
buildInputs = [ glib json-glib libxml2 libxslt libarchive bzip2 xz libsoup ];
meta = with lib; {
description = "Tools for managing the osinfo database";
+2 -2
View File
@@ -25,7 +25,7 @@
, libarchive
, libcap
, bzip2
, yacc
, bison
, libxslt
, docbook-xsl-nons
, docbook_xml_dtd_42
@@ -74,7 +74,7 @@ in stdenv.mkDerivation rec {
gobject-introspection
which
makeWrapper
yacc
bison
libxslt
docbook-xsl-nons
docbook_xml_dtd_42
+2 -2
View File
@@ -2,13 +2,13 @@
stdenv.mkDerivation rec {
pname = "ovh-ttyrec";
version = "1.1.6.6";
version = "1.1.6.7";
src = fetchFromGitHub {
owner = "ovh";
repo = "ovh-ttyrec";
rev = "v${version}";
sha256 = "176g3k2pzw6zpvmcc2f8idn6vhlygf7lfzxvrhysav2izc5dd130";
sha256 = "sha256-OkSs0Cu79u53+fN57px48f6kJKuOJLjGUar+lLTdUJU=";
};
nativeBuildInputs = [ zstd ];
+7
View File
@@ -0,0 +1,7 @@
source 'https://rubygems.org'
gem 'google-protobuf'
gem 'libusb'
gem 'rubyserial'
gem 'nokogiri'
+27
View File
@@ -0,0 +1,27 @@
GEM
remote: https://rubygems.org/
specs:
ffi (1.15.0)
google-protobuf (3.15.6)
libusb (0.6.4)
ffi (~> 1.0)
mini_portile2 (~> 2.1)
mini_portile2 (2.5.0)
nokogiri (1.11.2)
mini_portile2 (~> 2.5.0)
racc (~> 1.4)
racc (1.5.2)
rubyserial (0.6.0)
ffi (~> 1.9, >= 1.9.3)
PLATFORMS
ruby
DEPENDENCIES
google-protobuf
libusb
nokogiri
rubyserial
BUNDLED WITH
2.1.4
+73
View File
@@ -0,0 +1,73 @@
{ lib, stdenv, fetchFromGitHub, ruby, bundlerEnv }:
let
# To create Gemfile.lock and gemset.nix
# > nix-shell -p bundix bundler zlib
# > bundle install
# > bundix
gems = bundlerEnv {
name = "polar-env";
inherit ruby;
gemdir = ./.;
};
in
stdenv.mkDerivation rec {
pname = "polar";
# The package has no releases so let's use the latest commit
version = "unstable-2021-01-12";
src = fetchFromGitHub {
owner = "cmaion";
repo = pname;
rev = "be15f5f897f8a919dd639009873147dca2a9cea0";
sha256 = "0gqkqfrqnrsy6avg372xwqj22yz8g6r2hnzbw6197b1rf7zr1il7";
};
prePatch = ''
for script in polar_*
do
substituteInPlace $script --replace "#{File.dirname(__FILE__)}/lib" "$out/lib/polar"
done
'';
buildInputs = [ gems ruby ];
# See: https://nixos.wiki/wiki/Packaging/Ruby
#
# Put library content under lib/polar and the raw scripts under share/polar.
# Then, wrap the scripts so that they use the correct ruby environment and put
# these wrapped executables under bin.
installPhase = ''
install -Dm644 -t $out/etc/udev/rules.d ./pkg/99-polar.rules
mkdir -p $out/{bin,lib/polar,share/polar}
cp -r lib/* $out/lib/polar/
for script in ./polar_*
do
raw="$out/share/polar/$script"
bin="$out/bin/$script"
cp "$script" "$raw"
cat > $bin <<EOF
#!/bin/sh -e
exec ${gems}/bin/bundle exec ${ruby}/bin/ruby "$raw" "\$@"
EOF
chmod +x $bin
done
'';
meta = with lib; {
description = "Command-line tools to interact with Polar watches";
longDescription = ''
A set of command line tools written in Ruby to interact with Polar watches
and decode raw data files.
Udev rules can be added as:
services.udev.packages = [ pkgs.polar ]
'';
homepage = "https://github.com/cmaion/polar";
license = licenses.gpl3Only;
maintainers = with maintainers; [ jluttine ];
platforms = platforms.linux;
};
}
+75
View File
@@ -0,0 +1,75 @@
{
ffi = {
groups = ["default"];
platforms = [];
source = {
remotes = ["https://rubygems.org"];
sha256 = "0nq1fb3vbfylccwba64zblxy96qznxbys5900wd7gm9bpplmf432";
type = "gem";
};
version = "1.15.0";
};
google-protobuf = {
groups = ["default"];
platforms = [];
source = {
remotes = ["https://rubygems.org"];
sha256 = "1ak5yqqhr04b4x0axzvpw1xzwmxmfcw0gf4r1ijixv15kidhsj3z";
type = "gem";
};
version = "3.15.6";
};
libusb = {
dependencies = ["ffi" "mini_portile2"];
groups = ["default"];
platforms = [];
source = {
remotes = ["https://rubygems.org"];
sha256 = "005q4f3bi68yapza1vxamgwz2gpix2akci52s4yvr03hsxi137a6";
type = "gem";
};
version = "0.6.4";
};
mini_portile2 = {
groups = ["default"];
platforms = [];
source = {
remotes = ["https://rubygems.org"];
sha256 = "1hdbpmamx8js53yk3h8cqy12kgv6ca06k0c9n3pxh6b6cjfs19x7";
type = "gem";
};
version = "2.5.0";
};
nokogiri = {
dependencies = ["mini_portile2" "racc"];
groups = ["default"];
platforms = [];
source = {
remotes = ["https://rubygems.org"];
sha256 = "0b51df8fwadak075cvi17w0nch6qz1r66564qp29qwfj67j9qp0p";
type = "gem";
};
version = "1.11.2";
};
racc = {
groups = ["default"];
platforms = [];
source = {
remotes = ["https://rubygems.org"];
sha256 = "178k7r0xn689spviqzhvazzvxfq6fyjldxb3ywjbgipbfi4s8j1g";
type = "gem";
};
version = "1.5.2";
};
rubyserial = {
dependencies = ["ffi"];
groups = ["default"];
platforms = [];
source = {
remotes = ["https://rubygems.org"];
sha256 = "1vj5yan6srbvkf5vfp9d9b9z8wyygd0zxcy54c35yhkjl6kwd22q";
type = "gem";
};
version = "0.6.0";
};
}
+41
View File
@@ -0,0 +1,41 @@
{ lib
, python3
, fetchpatch
}:
python3.pkgs.buildPythonApplication rec {
pname = "qmk";
version = "0.0.45";
src = python3.pkgs.fetchPypi {
inherit pname version;
sha256 = "43f297f36b21d68c34c5efa0ce1449dddb2e28753f80939cadf761ee7a2a0901";
};
patches = [
# https://github.com/qmk/qmk_cli/pull/48
(fetchpatch {
name = "remove-unused-install-requires.patch";
url = "https://github.com/qmk/qmk_cli/commit/75b6ada1feccfa5a9bc2bb07a4cc749ef40d02dd.patch";
sha256 = "0lwi1dz35p07vha5gwq2jxm5q49vm99ix4jyhd6g6ypqbq1qiwc8";
})
];
nativeBuildInputs = with python3.pkgs; [
setuptools-scm
];
propagatedBuildInputs = with python3.pkgs; [
milc
];
# no tests implemented
doCheck = false;
meta = with lib; {
description = "A program to help users work with QMK Firmware";
homepage = "https://github.com/qmk/qmk_cli";
license = licenses.mit;
maintainers = with maintainers; [ bhipple ];
};
}
+2 -2
View File
@@ -4,7 +4,7 @@
let
inherit (python3Packages)
python nose pycrypto pyyaml requests mock python-dateutil setuptools;
python nose cryptography pyyaml requests mock python-dateutil setuptools;
in stdenv.mkDerivation rec {
pname = "svtplay-dl";
@@ -17,7 +17,7 @@ in stdenv.mkDerivation rec {
sha256 = "00pz5vv39qjsw67fdlj6942371lyvv368lc82z17nnh723ck54yy";
};
pythonPaths = [ pycrypto pyyaml requests ];
pythonPaths = [ cryptography pyyaml requests ];
buildInputs = [ python perl nose mock python-dateutil setuptools ] ++ pythonPaths;
nativeBuildInputs = [ gitMinimal zip makeWrapper ];
+2 -2
View File
@@ -2,13 +2,13 @@
buildGoModule rec {
pname = "tz";
version = "0.4";
version = "0.5";
src = fetchFromGitHub {
owner = "oz";
repo = "tz";
rev = "v${version}";
sha256 = "sha256-36nTau7xjABdeUOioHar28cuawFWW3DBaDH0YAvdufI=";
sha256 = "sha256-OwjhV3n1B1yQTNYm4VOW500t0524g85YYiOAAu9yPeo=";
};
vendorSha256 = "sha256-Soa87I7oMa34LjYKxNAz9Limi0kQ6JUtb/zI4G7yZnw=";
+3 -3
View File
@@ -11,13 +11,13 @@
stdenv.mkDerivation rec {
pname = "uutils-coreutils";
version = "0.0.4";
version = "0.0.6";
src = fetchFromGitHub {
owner = "uutils";
repo = "coreutils";
rev = version;
sha256 = "sha256-z5lDKJpFxXDCQq+0Da/63GGoUXacy5TSn+1gJiMvicc=";
sha256 = "sha256-dnswE/DU2jCfxWW10Ctjw8woktwWZqyd3E9IuKkle1M=";
};
postPatch = ''
@@ -29,7 +29,7 @@ stdenv.mkDerivation rec {
cargoDeps = rustPlatform.fetchCargoTarball {
inherit src;
name = "${pname}-${version}";
hash = "sha256-x/nn2JNe8x+I0G2Vbr2PZAHCghwLBDhKAhkHPQFeL0M=";
hash = "sha256-92BHPSVIPZLn399AcaJJjRq2WkxzDm8knKN3FIdAxAA=";
};
nativeBuildInputs = [ rustPlatform.cargoSetupHook sphinx ];
+3 -3
View File
@@ -2,16 +2,16 @@
rustPlatform.buildRustPackage rec {
pname = "uwuify";
version = "0.2.1";
version = "0.2.2";
src = fetchFromGitHub {
owner = "Daniel-Liu-c0deb0t";
repo = "uwu";
rev = "v${version}";
sha256 = "sha256-tPmLqgrWi7wDoMjMrxodKp4S0ICwV9Kp7Pa151rHho0=";
sha256 = "sha256-MzXObbxccwEG7egmQMCdhUukGqZS+NgbYwZjTaqME7I=";
};
cargoSha256 = "sha256-HUP6OEvoGJ/BtAl+yuGzqEp1bsxfGAh0UJtXz9/ZiK8=";
cargoSha256 = "sha256-iyoGLFIfHToOwqEb5lQ1nXR0W1gLOVMfvw39LX6ib+U=";
buildInputs = lib.optionals stdenv.isDarwin [ libiconv ];
meta = with lib; {
+2 -2
View File
@@ -2,13 +2,13 @@
python3Packages.buildPythonApplication rec {
pname = "yle-dl";
version = "20201022";
version = "20210212";
src = fetchFromGitHub {
owner = "aajanki";
repo = "yle-dl";
rev = version;
sha256 = "0p56pb3wxdzqgs4fsh4hn06xs0mgzgznqqr0bn2vkkkibnkr1asp";
sha256 = "sha256-0JnigYmslQ/7KsQAFg3AaWPAU/tD1lS7lF6OCcv/ze4=";
};
propagatedBuildInputs = with python3Packages; [