Merge master into staging-next
This commit is contained in:
@@ -1,19 +1,19 @@
|
||||
{ lib, stdenv, fetchurl, pkg-config, python3, bluez
|
||||
, alsaSupport ? stdenv.isLinux, alsaLib ? null
|
||||
, systemdSupport ? stdenv.isLinux, systemd ? null }:
|
||||
|
||||
assert alsaSupport -> alsaLib != null;
|
||||
assert systemdSupport -> systemd != null;
|
||||
, tcl, acl, kmod, coreutils, shadow, util-linux, udev
|
||||
, alsaSupport ? stdenv.isLinux, alsaLib
|
||||
, systemdSupport ? stdenv.isLinux, systemd
|
||||
}:
|
||||
|
||||
stdenv.mkDerivation rec {
|
||||
name = "brltty-6.1";
|
||||
pname = "brltty";
|
||||
version = "6.3";
|
||||
|
||||
src = fetchurl {
|
||||
url = "http://brltty.com/archive/${name}.tar.gz";
|
||||
sha256 = "0nk54chr7z2w579vyiak9xk2avhnvrx7x2l5sk8nyw2zplchkx9q";
|
||||
url = "https://brltty.app/archive/${pname}-${version}.tar.gz";
|
||||
sha256 = "14psxwlvgyi2fj1zh8rfykyjcjaya8xa7yg574bxd8y8n49n8hvb";
|
||||
};
|
||||
|
||||
nativeBuildInputs = [ pkg-config python3.pkgs.cython ];
|
||||
nativeBuildInputs = [ pkg-config python3.pkgs.cython tcl ];
|
||||
buildInputs = [ bluez ]
|
||||
++ lib.optional alsaSupport alsaLib
|
||||
++ lib.optional systemdSupport systemd;
|
||||
@@ -26,17 +26,70 @@ stdenv.mkDerivation rec {
|
||||
It drives the braille display, and provides complete screen review functionality.
|
||||
Some speech capability has also been incorporated.
|
||||
'';
|
||||
homepage = "http://www.brltty.com/";
|
||||
license = lib.licenses.gpl2;
|
||||
homepage = "https://brltty.app";
|
||||
license = lib.licenses.gpl2Plus;
|
||||
maintainers = [ lib.maintainers.bramd ];
|
||||
platforms = lib.platforms.all;
|
||||
};
|
||||
|
||||
makeFlags = [ "PYTHON_PREFIX=$(out)" ];
|
||||
|
||||
preConfigurePhases = [ "preConfigure" ];
|
||||
makeFlags = [
|
||||
"PYTHON_PREFIX=$(out)"
|
||||
"SYSTEMD_UNITS_DIRECTORY=$(out)/lib/systemd/system"
|
||||
"SYSTEMD_USERS_DIRECTORY=$(out)/lib/sysusers.d"
|
||||
"SYSTEMD_FILES_DIRECTORY=$(out)/lib/tmpfiles.d"
|
||||
"UDEV_LIBRARY_DIRECTORY=$(out)/lib/udev"
|
||||
"UDEV_RULES_TYPE=all"
|
||||
"POLKIT_POLICY_DIR=$(out)/share/polkit-1/actions"
|
||||
"POLKIT_RULE_DIR=$(out)/share/polkit-1/rules.d"
|
||||
];
|
||||
configureFlags = [
|
||||
"--with-writable-directory=/run/brltty"
|
||||
"--with-updatable-directory=/var/lib/brltty"
|
||||
"--with-api-socket-path=/var/lib/BrlAPI"
|
||||
];
|
||||
installFlags = [ "install-systemd" "install-udev" "install-polkit" ];
|
||||
|
||||
preConfigure = ''
|
||||
substituteInPlace configure --replace /sbin/ldconfig ldconfig
|
||||
|
||||
# Some script needs a working tclsh shebang
|
||||
patchShebangs .
|
||||
|
||||
# Skip impure operations
|
||||
substituteInPlace Programs/Makefile.in \
|
||||
--replace install-writable-directory "" \
|
||||
--replace install-apisoc-directory "" \
|
||||
--replace install-api-key ""
|
||||
'';
|
||||
|
||||
postInstall = ''
|
||||
# Rewrite absolute paths
|
||||
substituteInPlace $out/bin/brltty-mkuser \
|
||||
--replace '/sbin/nologin' '${shadow}/bin/nologin'
|
||||
(
|
||||
cd $out/lib
|
||||
substituteInPlace systemd/system/brltty@.service \
|
||||
--replace '/usr/lib' "$out/lib" \
|
||||
--replace '/sbin/modprobe' '${kmod}/bin/modprobe'
|
||||
# Ensure the systemd-wrapper script uses the correct path to the brltty binary
|
||||
sed "/^Environment=\"BRLTTY_EXECUTABLE_ARGUMENTS.*/a Environment=\"BRLTTY_EXECUTABLE_PATH=$out/bin/brltty\"" -i systemd/system/brltty@.service
|
||||
substituteInPlace systemd/system/brltty-device@.service \
|
||||
--replace '/usr/bin/true' '${coreutils}/bin/true'
|
||||
substituteInPlace udev/rules.d/90-brltty-uinput.rules \
|
||||
--replace '/usr/bin/setfacl' '${acl}/bin/setfacl'
|
||||
substituteInPlace tmpfiles.d/brltty.conf \
|
||||
--replace "$out/etc" '/etc'
|
||||
|
||||
# Remove unused commands from udev rules
|
||||
sed '/initctl/d' -i udev/rules.d/90-brltty-device.rules
|
||||
# Remove pulse-access group from systemd unit and sysusers
|
||||
substituteInPlace systemd/system/brltty@.service \
|
||||
--replace 'SupplementaryGroups=pulse-access' '# SupplementaryGroups=pulse-access'
|
||||
substituteInPlace sysusers.d/brltty.conf \
|
||||
--replace 'm brltty pulse-access' '# m brltty pulse-access'
|
||||
)
|
||||
substituteInPlace $out/libexec/brltty/systemd-wrapper \
|
||||
--replace 'logger' "${util-linux}/bin/logger" \
|
||||
--replace 'udevadm' "${udev}/bin/udevadm"
|
||||
'';
|
||||
}
|
||||
|
||||
@@ -2,13 +2,13 @@
|
||||
|
||||
stdenv.mkDerivation rec {
|
||||
pname = "cloc";
|
||||
version = "1.88";
|
||||
version = "1.90";
|
||||
|
||||
src = fetchFromGitHub {
|
||||
owner = "AlDanial";
|
||||
repo = "cloc";
|
||||
rev = version;
|
||||
sha256 = "1ixgswzbzv63bl50gb2kgaqr0jcicjz6w610hi9fal1i7744zraw";
|
||||
rev = "v${version}";
|
||||
sha256 = "0ic9q6qqw5f1wafp9lpmhr0miasbdb9zr59c0jlymnzffdmnliyc";
|
||||
};
|
||||
|
||||
setSourceRoot = ''
|
||||
|
||||
@@ -1,21 +1,14 @@
|
||||
{ lib, stdenv, fetchurl, autoreconfHook, tzdata, fetchpatch }:
|
||||
|
||||
stdenv.mkDerivation rec {
|
||||
version = "0.4.7";
|
||||
version = "0.4.8";
|
||||
pname = "dateutils";
|
||||
|
||||
src = fetchurl {
|
||||
url = "https://bitbucket.org/hroptatyr/dateutils/downloads/${pname}-${version}.tar.xz";
|
||||
sha256 = "16jr9yjk8wgzfh22hr3z6mp4jm3fkacyibds4jj5xx5yymbm8wj9";
|
||||
sha256 = "0061f36axskm7yq9cp64x5a5phil8d3zgcd668nfmqzk9ji58w1z";
|
||||
};
|
||||
|
||||
patches = [
|
||||
(fetchpatch {
|
||||
url = "https://bitbucket.org/hroptatyr/dateutils/commits/6813ed94534f2311fbe9164748919e39d60b0190/raw";
|
||||
sha256 = "1zs3iizb172ha56g03rr8kzd8zx6qypiqsc11jw758mliwxk5rgc";
|
||||
})
|
||||
];
|
||||
|
||||
nativeBuildInputs = [ autoreconfHook ];
|
||||
buildInputs = [ tzdata ]; # needed for datezone
|
||||
enableParallelBuilding = true;
|
||||
|
||||
@@ -1,49 +1,30 @@
|
||||
{ lib, stdenv, fetchurl }:
|
||||
{ lib, stdenv, fetchFromGitHub, pkg-config, gengetopt, m4, gnupg
|
||||
, git, perl, autoconf, automake, help2man, boehmgc }:
|
||||
|
||||
stdenv.mkDerivation rec {
|
||||
pname = "mmv";
|
||||
version = "1.01b";
|
||||
version = "2.0";
|
||||
|
||||
src = fetchurl {
|
||||
url = "mirror://debian/pool/main/m/mmv/mmv_${version}.orig.tar.gz";
|
||||
sha256 = "0399c027ea1e51fd607266c1e33573866d4db89f64a74be8b4a1d2d1ff1fdeef";
|
||||
src = fetchFromGitHub {
|
||||
owner = "rrthomas";
|
||||
repo = "mmv";
|
||||
rev = "v${version}";
|
||||
sha256 = "sha256-MmxDk3PBtvK/thrh6x67M+nMdCDlOQQHkREqLmzF2Mk=";
|
||||
fetchSubmodules = true;
|
||||
};
|
||||
|
||||
hardeningDisable = [ "format" ];
|
||||
|
||||
patches = [
|
||||
# Use Debian patched version, as upstream is no longer maintained and it
|
||||
# contains a _lot_ of fixes.
|
||||
(fetchurl {
|
||||
url = "mirror://debian/pool/main/m/mmv/mmv_${version}-15.diff.gz";
|
||||
sha256 = "9ad3e3d47510f816b4a18bae04ea75913588eec92248182f85dd09bc5ad2df13";
|
||||
})
|
||||
];
|
||||
|
||||
postPatch = ''
|
||||
sed -i \
|
||||
-e 's/^\s*LDFLAGS\s*=\s*-s\s*-N/LDFLAGS = -s/' \
|
||||
-e "s|/usr/bin|$out/bin|" \
|
||||
-e "s|/usr/man|$out/share/man|" \
|
||||
Makefile
|
||||
preConfigure = ''
|
||||
./bootstrap
|
||||
'';
|
||||
|
||||
preInstall = ''
|
||||
mkdir -p "$out/bin" "$out/share/man/man1"
|
||||
'';
|
||||
|
||||
postInstall = ''
|
||||
for variant in mcp mad mln
|
||||
do
|
||||
ln -s mmv "$out/bin/$variant"
|
||||
ln -s mmv.1 "$out/share/man/man1/$variant.1"
|
||||
done
|
||||
'';
|
||||
nativeBuildInputs = [ gengetopt m4 git gnupg perl autoconf automake help2man pkg-config ];
|
||||
buildInputs = [ boehmgc ];
|
||||
|
||||
meta = {
|
||||
homepage = "http://linux.maruhn.com/sec/mmv.html";
|
||||
homepage = "https://github.com/rrthomas/mmv";
|
||||
description = "Utility for wildcard renaming, copying, etc";
|
||||
license = lib.licenses.gpl2;
|
||||
platforms = lib.platforms.linux;
|
||||
license = lib.licenses.gpl3Plus;
|
||||
platforms = lib.platforms.all;
|
||||
maintainers = with lib.maintainers; [ siraben ];
|
||||
};
|
||||
}
|
||||
|
||||
@@ -8,13 +8,13 @@ let
|
||||
|
||||
in stdenv.mkDerivation rec {
|
||||
pname = "svtplay-dl";
|
||||
version = "3.6";
|
||||
version = "3.7";
|
||||
|
||||
src = fetchFromGitHub {
|
||||
owner = "spaam";
|
||||
repo = "svtplay-dl";
|
||||
rev = version;
|
||||
sha256 = "1hnbpj4k08356k2rmsairbfnxwfxs5lv59nxcj6hy5wf162h2hzb";
|
||||
sha256 = "0krskxbmlglkipqzjwgm2nmq118m8l0djgh0f8l6n2w3bjblhyfx";
|
||||
};
|
||||
|
||||
pythonPaths = [ cryptography pyyaml requests ];
|
||||
|
||||
@@ -2,16 +2,16 @@
|
||||
|
||||
rustPlatform.buildRustPackage rec {
|
||||
pname = "zellij";
|
||||
version = "0.6.0";
|
||||
version = "0.8.0";
|
||||
|
||||
src = fetchFromGitHub {
|
||||
owner = "zellij-org";
|
||||
repo = pname;
|
||||
rev = "v${version}";
|
||||
sha256 = "sha256-spESDjX7scihVQrr/f6KMCI9VfdTxxPWP7FcJ965FYk=";
|
||||
sha256 = "sha256-armEkYiRQ2RvKFUtNlnMejkNSLJOEQpFzUPduNJatMo=";
|
||||
};
|
||||
|
||||
cargoSha256 = "0rm31sfcj2d85w1l4hhfmva3j828dfhiv5br1mnpaqaa01zzs1q1";
|
||||
cargoSha256 = "sha256-68UfDlQ1KuGZwcuSNeOCwULxS+Ei16lEydrO4CssD3Y=";
|
||||
|
||||
nativeBuildInputs = [ installShellFiles ];
|
||||
|
||||
|
||||
Reference in New Issue
Block a user