Merge staging-next into staging

This commit is contained in:
github-actions[bot] 2021-11-19 18:01:56 +00:00 committed by GitHub
commit e9cc89e77e
No known key found for this signature in database
GPG key ID: 4AEE18F83AFDEB23
86 changed files with 1519 additions and 397 deletions

View file

@ -5261,6 +5261,16 @@
githubId = 938744; githubId = 938744;
name = "John Chadwick"; name = "John Chadwick";
}; };
jcouyang = {
email = "oyanglulu@gmail.com";
github = "jcouyang";
githubId = 1235045;
name = "Jichao Ouyang";
keys = [{
longkeyid = "rsa2048/0xDA8B833B52604E63";
fingerprint = "A506 C38D 5CC8 47D0 DF01 134A DA8B 833B 5260 4E63";
}];
};
jcumming = { jcumming = {
email = "jack@mudshark.org"; email = "jack@mudshark.org";
github = "jcumming"; github = "jcumming";

View file

@ -91,6 +91,11 @@ sub hasCPUFeature {
} }
sub cpuManufacturer {
my $id = shift;
return $cpuinfo =~ /^vendor_id\s*:.* $id$/m;
}
# Determine CPU governor to use # Determine CPU governor to use
if (-e "/sys/devices/system/cpu/cpu0/cpufreq/scaling_available_governors") { if (-e "/sys/devices/system/cpu/cpu0/cpufreq/scaling_available_governors") {
@ -111,6 +116,9 @@ if (-e "/sys/devices/system/cpu/cpu0/cpufreq/scaling_available_governors") {
push @kernelModules, "kvm-intel" if hasCPUFeature "vmx"; push @kernelModules, "kvm-intel" if hasCPUFeature "vmx";
push @kernelModules, "kvm-amd" if hasCPUFeature "svm"; push @kernelModules, "kvm-amd" if hasCPUFeature "svm";
push @attrs, "hardware.cpu.amd.updateMicrocode = lib.mkDefault config.hardware.enableRedistributableFirmware;" if cpuManufacturer "AuthenticAMD";
push @attrs, "hardware.cpu.intel.updateMicrocode = lib.mkDefault config.hardware.enableRedistributableFirmware;" if cpuManufacturer "GenuineIntel";
# Look at the PCI devices and add necessary modules. Note that most # Look at the PCI devices and add necessary modules. Note that most
# modules are auto-detected so we don't need to list them here. # modules are auto-detected so we don't need to list them here.

View file

@ -684,6 +684,7 @@
./services/network-filesystems/tahoe.nix ./services/network-filesystems/tahoe.nix
./services/network-filesystems/diod.nix ./services/network-filesystems/diod.nix
./services/network-filesystems/u9fs.nix ./services/network-filesystems/u9fs.nix
./services/network-filesystems/webdav.nix
./services/network-filesystems/yandex-disk.nix ./services/network-filesystems/yandex-disk.nix
./services/network-filesystems/xtreemfs.nix ./services/network-filesystems/xtreemfs.nix
./services/network-filesystems/ceph.nix ./services/network-filesystems/ceph.nix

View file

@ -47,7 +47,7 @@ in
ExecStart = '' ExecStart = ''
${pkgs.prometheus-nginx-exporter}/bin/nginx-prometheus-exporter \ ${pkgs.prometheus-nginx-exporter}/bin/nginx-prometheus-exporter \
--nginx.scrape-uri '${cfg.scrapeUri}' \ --nginx.scrape-uri '${cfg.scrapeUri}' \
--nginx.ssl-verify ${toString cfg.sslVerify} \ --nginx.ssl-verify ${boolToString cfg.sslVerify} \
--web.listen-address ${cfg.listenAddress}:${toString cfg.port} \ --web.listen-address ${cfg.listenAddress}:${toString cfg.port} \
--web.telemetry-path ${cfg.telemetryPath} \ --web.telemetry-path ${cfg.telemetryPath} \
--prometheus.const-labels ${concatStringsSep "," cfg.constLabels} \ --prometheus.const-labels ${concatStringsSep "," cfg.constLabels} \

View file

@ -0,0 +1,107 @@
{ config, lib, pkgs, ... }:
with lib;
let
cfg = config.services.webdav;
format = pkgs.formats.yaml { };
in
{
options = {
services.webdav = {
enable = mkEnableOption "WebDAV server";
user = mkOption {
type = types.str;
default = "webdav";
description = "User account under which WebDAV runs.";
};
group = mkOption {
type = types.str;
default = "webdav";
description = "Group under which WebDAV runs.";
};
settings = mkOption {
type = format.type;
default = { };
description = ''
Attrset that is converted and passed as config file. Available options
can be found at
<link xlink:href="https://github.com/hacdias/webdav">here</link>.
This program supports reading username and password configuration
from environment variables, so it's strongly recommended to store
username and password in a separate
<link xlink:href="https://www.freedesktop.org/software/systemd/man/systemd.exec.html#EnvironmentFile=">EnvironmentFile</link>.
This prevents adding secrets to the world-readable Nix store.
'';
example = literalExpression ''
{
address = "0.0.0.0";
port = 8080;
scope = "/srv/public";
modify = true;
auth = true;
users = [
{
username = "{env}ENV_USERNAME";
password = "{env}ENV_PASSWORD";
}
];
}
'';
};
configFile = mkOption {
type = types.path;
default = format.generate "webdav.yaml" cfg.settings;
defaultText = "Config file generated from services.webdav.settings";
description = ''
Path to config file. If this option is set, it will override any
configuration done in options.services.webdav.settings.
'';
example = "/etc/webdav/config.yaml";
};
environmentFile = mkOption {
type = types.nullOr types.path;
default = null;
description = ''
Environment file as defined in <citerefentry>
<refentrytitle>systemd.exec</refentrytitle><manvolnum>5</manvolnum>
</citerefentry>.
'';
};
};
};
config = mkIf cfg.enable {
users.users = mkIf (cfg.user == "webdav") {
webdav = {
description = "WebDAV daemon user";
isSystemUser = true;
group = cfg.group;
};
};
users.groups = mkIf (cfg.group == "webdav") {
webdav = { };
};
systemd.services.webdav = {
description = "WebDAV server";
after = [ "network.target" ];
wantedBy = [ "multi-user.target" ];
serviceConfig = {
ExecStart = "${pkgs.webdav}/bin/webdav -c ${cfg.configFile}";
Restart = "on-failure";
User = cfg.user;
Group = cfg.group;
EnvironmentFile = mkIf (cfg.environmentFile != null) [ cfg.environmentFile ];
};
};
};
meta.maintainers = with maintainers; [ pengmeiyu ];
}

View file

@ -35,10 +35,7 @@ in
config = mkIf cfg.enable { config = mkIf cfg.enable {
services.xserver = { services.xserver = {
exportConfiguration = true; exportConfiguration = true;
displayManager.job.execCmd = "";
displayManager.lightdm.enable = lib.mkForce false;
}; };
systemd.services.display-manager.enable = false;
# Other displayManagers log to /dev/null because they're services and put # Other displayManagers log to /dev/null because they're services and put
# Xorg's stdout in the journal # Xorg's stdout in the journal

View file

@ -26,13 +26,8 @@ in {
environment.systemPackages = [ pkgs.sx ]; environment.systemPackages = [ pkgs.sx ];
services.xserver = { services.xserver = {
exportConfiguration = true; exportConfiguration = true;
displayManager = {
job.execCmd = "";
lightdm.enable = mkForce false;
};
logFile = mkDefault null; logFile = mkDefault null;
}; };
systemd.services.display-manager.enable = false;
}; };
meta.maintainers = with maintainers; [ figsoda ]; meta.maintainers = with maintainers; [ figsoda ];

View file

@ -588,11 +588,22 @@ in
config = mkIf cfg.enable { config = mkIf cfg.enable {
services.xserver.displayManager.lightdm.enable = services.xserver.displayManager.lightdm.enable =
let dmconf = cfg.displayManager; let dmConf = cfg.displayManager;
default = !(dmconf.gdm.enable default = !(dmConf.gdm.enable
|| dmconf.sddm.enable || dmConf.sddm.enable
|| dmconf.xpra.enable ); || dmConf.xpra.enable
in mkIf (default) true; || dmConf.sx.enable
|| dmConf.startx.enable);
in mkIf (default) (mkDefault true);
# so that the service won't be enabled when only startx is used
systemd.services.display-manager.enable =
let dmConf = cfg.displayManager;
noDmUsed = !(dmConf.gdm.enable
|| dmConf.sddm.enable
|| dmConf.xpra.enable
|| dmConf.lightdm.enable);
in mkIf (noDmUsed) (mkDefault false);
hardware.opengl.enable = mkDefault true; hardware.opengl.enable = mkDefault true;
@ -702,7 +713,8 @@ in
rm -f /tmp/.X0-lock rm -f /tmp/.X0-lock
''; '';
script = "${cfg.displayManager.job.execCmd}"; # TODO: move declaring the systemd service to its own mkIf
script = mkIf (config.systemd.services.display-manager.enable == true) "${cfg.displayManager.job.execCmd}";
# Stop restarting if the display manager stops (crashes) 2 times # Stop restarting if the display manager stops (crashes) 2 times
# in one minute. Starting X typically takes 3-4s. # in one minute. Starting X typically takes 3-4s.

View file

@ -230,6 +230,7 @@ in
leaps = handleTest ./leaps.nix {}; leaps = handleTest ./leaps.nix {};
libinput = handleTest ./libinput.nix {}; libinput = handleTest ./libinput.nix {};
libreddit = handleTest ./libreddit.nix {}; libreddit = handleTest ./libreddit.nix {};
libresprite = handleTest ./libresprite.nix {};
libreswan = handleTest ./libreswan.nix {}; libreswan = handleTest ./libreswan.nix {};
lidarr = handleTest ./lidarr.nix {}; lidarr = handleTest ./lidarr.nix {};
lightdm = handleTest ./lightdm.nix {}; lightdm = handleTest ./lightdm.nix {};

View file

@ -0,0 +1,30 @@
import ./make-test-python.nix ({ pkgs, ... }: {
name = "libresprite";
meta = with pkgs.lib.maintainers; {
maintainers = [ fgaz ];
};
machine = { config, pkgs, ... }: {
imports = [
./common/x11.nix
];
services.xserver.enable = true;
environment.systemPackages = [
pkgs.imagemagick
pkgs.libresprite
];
};
enableOCR = true;
testScript =
''
machine.wait_for_x()
machine.succeed("convert -font DejaVu-Sans +antialias label:'IT WORKS' image.png")
machine.execute("libresprite image.png >&2 &")
machine.wait_for_window("LibreSprite v${pkgs.libresprite.version}")
machine.wait_for_text("IT WORKS")
machine.screenshot("screen")
'';
})

View file

@ -3,7 +3,7 @@
, coreutils , coreutils
, libjack2 , libjack2
, fetchpatch , fetchpatch
, fetchzip , fetchFromGitHub
, jack_capture , jack_capture
, pkg-config , pkg-config
, pulseaudioFull , pulseaudioFull
@ -20,9 +20,11 @@ mkDerivation rec {
version = "0.9.1"; version = "0.9.1";
pname = "cadence"; pname = "cadence";
src = fetchzip { src = fetchFromGitHub {
url = "https://github.com/falkTX/Cadence/archive/v${version}.tar.gz"; owner = "falkTX";
sha256 = "07z8grnnpkd0nf3y3r6qjlk1jlzrbhdrp9mnhrhhmws54p1bhl20"; repo = "Cadence";
rev = "v${version}";
sha256 = "sha256-QFC4wiVF8wphhrammxtc+VMZJpXY5OGHs6DNa21+6B8=";
}; };
patches = [ patches = [
@ -39,11 +41,11 @@ mkDerivation rec {
]; ];
postPatch = '' postPatch = ''
libjackso=$(realpath ${lib.makeLibraryPath [libjack2]}/libjack.so.0); libjackso=$(realpath ${lib.makeLibraryPath [libjack2]}/libjack.so.0);
substituteInPlace ./src/jacklib.py --replace libjack.so.0 $libjackso substituteInPlace ./src/jacklib.py --replace libjack.so.0 $libjackso
substituteInPlace ./src/cadence.py --replace "/usr/bin/pulseaudio" \ substituteInPlace ./src/cadence.py --replace "/usr/bin/pulseaudio" \
"${lib.makeBinPath[pulseaudioFull]}/pulseaudio" "${lib.makeBinPath[pulseaudioFull]}/pulseaudio"
substituteInPlace ./c++/jackbridge/JackBridge.cpp --replace libjack.so.0 $libjackso substituteInPlace ./c++/jackbridge/JackBridge.cpp --replace libjack.so.0 $libjackso
''; '';
nativeBuildInputs = [ nativeBuildInputs = [
@ -54,10 +56,12 @@ mkDerivation rec {
qtbase qtbase
jack_capture jack_capture
pulseaudioFull pulseaudioFull
((python3.withPackages (ps: with ps; [ (
pyqt5 (python3.withPackages (ps: with ps; [
dbus-python pyqt5
]))) dbus-python
]))
)
]; ];
makeFlags = [ makeFlags = [
@ -68,31 +72,37 @@ mkDerivation rec {
dontWrapQtApps = true; dontWrapQtApps = true;
# Replace with our own wrappers. They need to be changed manually since it wouldn't work otherwise. # Replace with our own wrappers. They need to be changed manually since it wouldn't work otherwise.
preFixup = let preFixup =
outRef = placeholder "out"; let
prefix = "${outRef}/share/cadence/src"; outRef = placeholder "out";
scriptAndSource = lib.mapAttrs' (script: source: prefix = "${outRef}/share/cadence/src";
lib.nameValuePair ("${outRef}/bin/" + script) ("${prefix}/" + source) scriptAndSource = lib.mapAttrs'
) { (script: source:
"cadence" = "cadence.py"; lib.nameValuePair ("${outRef}/bin/" + script) ("${prefix}/" + source)
"claudia" = "claudia.py"; )
"catarina" = "catarina.py"; {
"catia" = "catia.py"; "cadence" = "cadence.py";
"cadence-jacksettings" = "jacksettings.py"; "claudia" = "claudia.py";
"cadence-aloop-daemon" = "cadence_aloop_daemon.py"; "catarina" = "catarina.py";
"cadence-logs" = "logs.py"; "catia" = "catia.py";
"cadence-render" = "render.py"; "cadence-jacksettings" = "jacksettings.py";
"claudia-launcher" = "claudia_launcher.py"; "cadence-aloop-daemon" = "cadence_aloop_daemon.py";
"cadence-session-start" = "cadence_session_start.py"; "cadence-logs" = "logs.py";
}; "cadence-render" = "render.py";
in lib.mapAttrsToList (script: source: '' "claudia-launcher" = "claudia_launcher.py";
rm -f ${script} "cadence-session-start" = "cadence_session_start.py";
makeQtWrapper ${source} ${script} \ };
--prefix PATH : "${lib.makeBinPath [ in
jack_capture # cadence-render lib.mapAttrsToList
pulseaudioFull # cadence, cadence-session-start (script: source: ''
]}" rm -f ${script}
'') scriptAndSource; makeQtWrapper ${source} ${script} \
--prefix PATH : "${lib.makeBinPath [
jack_capture # cadence-render
pulseaudioFull # cadence, cadence-session-start
]}"
'')
scriptAndSource;
meta = { meta = {
homepage = "https://github.com/falkTX/Cadence/"; homepage = "https://github.com/falkTX/Cadence/";

View file

@ -1,6 +1,24 @@
{ lib, stdenv, fetchFromGitHub, fetchzip, cmake, pkg-config, lv2, alsa-lib, libjack2, { lib
freetype, libX11, gtk3, pcre, libpthreadstubs, libXdmcp, libxkbcommon, , stdenv
libepoxy, at-spi2-core, dbus, curl, fftwFloat }: , fetchFromGitHub
, cmake
, pkg-config
, lv2
, alsa-lib
, libjack2
, freetype
, libX11
, gtk3
, pcre
, libpthreadstubs
, libXdmcp
, libxkbcommon
, epoxy
, at-spi2-core
, dbus
, curl
, fftwFloat
}:
let let
pname = "HybridReverb2"; pname = "HybridReverb2";
@ -10,11 +28,13 @@ let
in in
stdenv.mkDerivation rec { stdenv.mkDerivation rec {
name = "${pname}-${version}"; inherit pname version;
impulseDB = fetchzip { impulseDB = fetchFromGitHub {
url = "https://github.com/${owner}/${pname}-impulse-response-database/archive/v${DBversion}.zip"; inherit owner;
sha256 = "1hlfxbbkahm1k2sk3c3n2mjaz7k80ky3r55xil8nfbvbv0qan89z"; repo = "HybridReverb2-impulse-response-database";
rev = "v${DBversion}";
sha256 = "sha256-PyGrMNhrL2cRjb2UPPwEaJ6vZBV2sDG1mKFCNdfqjsI=";
}; };
src = fetchFromGitHub { src = fetchFromGitHub {
@ -26,8 +46,23 @@ stdenv.mkDerivation rec {
}; };
nativeBuildInputs = [ pkg-config cmake ]; nativeBuildInputs = [ pkg-config cmake ];
buildInputs = [ lv2 alsa-lib libjack2 freetype libX11 gtk3 pcre buildInputs = [
libpthreadstubs libXdmcp libxkbcommon libepoxy at-spi2-core dbus curl fftwFloat ]; lv2
alsa-lib
libjack2
freetype
libX11
gtk3
pcre
libpthreadstubs
libXdmcp
libxkbcommon
epoxy
at-spi2-core
dbus
curl
fftwFloat
];
cmakeFlags = [ cmakeFlags = [
"-DHybridReverb2_AdvancedJackStandalone=ON" "-DHybridReverb2_AdvancedJackStandalone=ON"

View file

@ -1,19 +1,41 @@
{ lib, stdenv, fetchurl, pkg-config, cmake { lib
, alsa-lib, boost, glib, lash, libjack2, libarchive, libsndfile, lrdf, qt4 , stdenv
, fetchFromGitHub
, pkg-config
, cmake
, alsa-lib
, boost
, glib
, lash
, libjack2
, libarchive
, libsndfile
, lrdf
, qt4
}: }:
stdenv.mkDerivation rec { stdenv.mkDerivation rec {
version = "0.9.7"; version = "0.9.7";
pname = "hydrogen"; pname = "hydrogen";
src = fetchurl { src = fetchFromGitHub {
url = "https://github.com/hydrogen-music/hydrogen/archive/${version}.tar.gz"; owner = "hydrogen-music";
sha256 = "1dy2jfkdw0nchars4xi4isrz66fqn53a9qk13bqza7lhmsg3s3qy"; repo = "hydrogen";
rev = version;
sha256 = "sha256-6ycNUcumtAEl/6XbIpW6JglGv4nNOdMrOJ1nvJg3z/c=";
}; };
nativeBuildInputs = [ pkg-config cmake ]; nativeBuildInputs = [ pkg-config cmake ];
buildInputs = [ buildInputs = [
alsa-lib boost glib lash libjack2 libarchive libsndfile lrdf qt4 alsa-lib
boost
glib
lash
libjack2
libarchive
libsndfile
lrdf
qt4
]; ];
meta = with lib; { meta = with lib; {

View file

@ -1,18 +1,28 @@
{ lib, stdenv, fetchurl, autoreconfHook, automake, fftw, ladspaH, libxml2, pkg-config { lib
, perlPackages }: , stdenv
, fetchFromGitHub
, autoreconfHook
, automake
, fftw
, ladspaH
, libxml2
, pkg-config
, perlPackages
}:
stdenv.mkDerivation rec { stdenv.mkDerivation rec {
pname = "swh-plugins"; pname = "swh-plugins";
version = "0.4.17"; version = "0.4.17";
src = fetchFromGitHub {
src = fetchurl { owner = "swh";
url = "https://github.com/swh/ladspa/archive/v${version}.tar.gz"; repo = "ladspa";
sha256 = "1rqwh8xrw6hnp69dg4gy336bfbfpmbx4fjrk0nb8ypjcxkz91c6i"; rev = "v${version}";
sha256 = "sha256-eOtIhNcuItREUShI8JRlBVKfMfovpdfIYu+m37v4KLE=";
}; };
nativeBuildInputs = [ autoreconfHook pkg-config ]; nativeBuildInputs = [ autoreconfHook pkg-config ];
buildInputs = [ fftw ladspaH libxml2 perlPackages.perl perlPackages.XMLParser ]; buildInputs = [ fftw ladspaH libxml2 perlPackages.perl perlPackages.XMLParser ];
patchPhase = '' patchPhase = ''
patchShebangs . patchShebangs .

View file

@ -1,12 +1,14 @@
{ lib, stdenv, fetchurl, fftwSinglePrec, libxslt, lv2, pkg-config }: { lib, stdenv, fetchFromGitHub, fftwSinglePrec, libxslt, lv2, pkg-config }:
stdenv.mkDerivation rec { stdenv.mkDerivation rec {
pname = "swh-lv2"; pname = "swh-lv2";
version = "1.0.16"; version = "1.0.16";
src = fetchurl { src = fetchFromGitHub {
url = "https://github.com/swh/lv2/archive/v${version}.tar.gz"; owner = "swh";
sha256 = "0j1mih0lp4fds07knp5i32in515sh0df1qi6694pmyz2wqnm295w"; repo = "lv2";
rev = "v${version}";
sha256 = "sha256-v6aJUWDbBZEmz0v6+cSCi/KhOYNUeK/MJLUSgzi39ng=";
}; };
patchPhase = '' patchPhase = ''

View file

@ -1,18 +1,29 @@
{ stdenv, lib, fetchFromGitHub, rustPlatform, pkg-config, withGui ? true { stdenv
, webkitgtk, Cocoa, WebKit, zenity, makeWrapper }: , lib
, rustPlatform
, fetchFromGitHub
, pkg-config
, makeWrapper
, webkitgtk
, zenity
, Cocoa
, Security
, WebKit
, withGui ? true
}:
rustPlatform.buildRustPackage rec { rustPlatform.buildRustPackage rec {
pname = "alfis"; pname = "alfis";
version = "0.6.5"; version = "0.6.9";
src = fetchFromGitHub { src = fetchFromGitHub {
owner = "Revertron"; owner = "Revertron";
repo = "Alfis"; repo = "Alfis";
rev = "v${version}"; rev = "v${version}";
sha256 = "1g95yvkvlj78bqrk3p2xbhrmg1hrlgbyr1a4s7vg45y60zys2c2j"; sha256 = "1nnzy46hp1q9kcxzjx24d60frjhn3x46nksbqvdfcfrfn5pqrabh";
}; };
cargoSha256 = "1n7kb1lyghpkgdgd58pw8ldvfps30rnv5niwx35pkdg74h59hqgj"; cargoSha256 = "02liz8sqnqla77bqxfa8hj93qfj2x482q2bijz66rmazfig3b045";
checkFlags = [ checkFlags = [
# these want internet access, disable them # these want internet access, disable them
@ -21,11 +32,14 @@ rustPlatform.buildRustPackage rec {
]; ];
nativeBuildInputs = [ pkg-config makeWrapper ]; nativeBuildInputs = [ pkg-config makeWrapper ];
buildInputs = lib.optional (withGui && stdenv.isLinux) webkitgtk buildInputs = lib.optional stdenv.isDarwin Security
++ lib.optional (withGui && stdenv.isLinux) webkitgtk
++ lib.optionals (withGui && stdenv.isDarwin) [ Cocoa WebKit ]; ++ lib.optionals (withGui && stdenv.isDarwin) [ Cocoa WebKit ];
buildNoDefaultFeatures = true; buildNoDefaultFeatures = true;
buildFeatures = lib.optional withGui "webgui"; buildFeatures = [
"doh"
] ++ lib.optional withGui "webgui";
postInstall = lib.optionalString (withGui && stdenv.isLinux) '' postInstall = lib.optionalString (withGui && stdenv.isLinux) ''
wrapProgram $out/bin/alfis \ wrapProgram $out/bin/alfis \

View file

@ -1,8 +1,9 @@
{ lib, stdenv { lib
, stdenv
, autoreconfHook , autoreconfHook
, boost , boost
, db48 , db48
, fetchurl , fetchFromGitHub
, libevent , libevent
, miniupnpc , miniupnpc
, openssl , openssl
@ -19,9 +20,11 @@ stdenv.mkDerivation rec {
pname = "particl-core"; pname = "particl-core";
version = "0.19.2.14"; version = "0.19.2.14";
src = fetchurl { src = fetchFromGitHub {
url = "https://github.com/particl/particl-core/archive/v${version}.tar.gz"; owner = "particl";
sha256 = "sha256-UMU3384r4RGVl0/7OPwdDva09vhQr+9Lqb1oD/PTva8="; repo = "particl-core";
rev = "v${version}";
sha256 = "sha256-gJLEMfEvQ35xjKt8iN/FXi2T/GBMSS7eUqOC8XHKPBg=";
}; };
nativeBuildInputs = [ pkg-config autoreconfHook ]; nativeBuildInputs = [ pkg-config autoreconfHook ];
@ -41,7 +44,7 @@ stdenv.mkDerivation rec {
meta = { meta = {
description = "Privacy-Focused Marketplace & Decentralized Application Platform"; description = "Privacy-Focused Marketplace & Decentralized Application Platform";
longDescription= '' longDescription = ''
An open source, decentralized privacy platform built for global person to person eCommerce. An open source, decentralized privacy platform built for global person to person eCommerce.
RPC daemon and CLI client only. RPC daemon and CLI client only.
''; '';

View file

@ -0,0 +1,111 @@
{ lib
, stdenv
, fetchFromGitHub
, cmake
, pkg-config
, ninja
, gtest
, curl
, freetype
, giflib
, libjpeg
, libpng
, libwebp
, pixman
, tinyxml
, zlib
, SDL2
, SDL2_image
, lua
, AppKit
, Cocoa
, Foundation
, nixosTests
}:
stdenv.mkDerivation rec {
pname = "libresprite";
version = "1.0";
src = fetchFromGitHub {
owner = "LibreSprite";
repo = "LibreSprite";
rev = "v${version}";
fetchSubmodules = true;
sha256 = "sha256-d8GmVHYomDb74iSeEhJEVTHvbiVXggXg7xSqIKCUSzY=";
};
nativeBuildInputs = [
cmake
pkg-config
ninja
gtest
];
buildInputs = [
curl
freetype
giflib
libjpeg
libpng
libwebp
pixman
tinyxml
zlib
SDL2
SDL2_image
lua
# no v8 due to missing libplatform and libbase
] ++ lib.optionals stdenv.isDarwin [
AppKit
Cocoa
Foundation
];
cmakeFlags = [
"-DWITH_DESKTOP_INTEGRATION=ON"
"-DWITH_WEBP_SUPPORT=ON"
];
hardeningDisable = lib.optional stdenv.isDarwin "format";
# Install mime icons. Note that the mimetype is still "x-aseprite"
postInstall = ''
src="$out/share/libresprite/data/icons"
for size in 16 32 48 64; do
dst="$out"/share/icons/hicolor/"$size"x"$size"
install -Dm644 "$src"/doc"$size".png "$dst"/mimetypes/aseprite.png
done
'';
passthru.tests = {
libresprite-can-open-png = nixosTests.libresprite;
};
meta = with lib; {
homepage = "https://libresprite.github.io/";
description = "Animated sprite editor & pixel art tool, fork of Aseprite";
license = licenses.gpl2Only;
longDescription =
''LibreSprite is a program to create animated sprites. Its main features are:
- Sprites are composed by layers & frames (as separated concepts).
- Supported color modes: RGBA, Indexed (palettes up to 256 colors), and Grayscale.
- Load/save sequence of PNG files and GIF animations (and FLC, FLI, JPG, BMP, PCX, TGA).
- Export/import animations to/from Sprite Sheets.
- Tiled drawing mode, useful to draw patterns and textures.
- Undo/Redo for every operation.
- Real-time animation preview.
- Multiple editors support.
- Pixel-art specific tools like filled Contour, Polygon, Shading mode, etc.
- Onion skinning.
'';
maintainers = with maintainers; [ fgaz ];
platforms = platforms.all;
# https://github.com/LibreSprite/LibreSprite/issues/308
broken = stdenv.isDarwin && stdenv.isAarch64;
};
}

View file

@ -57,7 +57,7 @@ in
homepage = "https://code.visualstudio.com/"; homepage = "https://code.visualstudio.com/";
downloadPage = "https://code.visualstudio.com/Updates"; downloadPage = "https://code.visualstudio.com/Updates";
license = licenses.unfree; license = licenses.unfree;
maintainers = with maintainers; [ eadwu synthetica maxeaubrey ]; maintainers = with maintainers; [ eadwu synthetica maxeaubrey bobby285271 ];
platforms = [ "x86_64-linux" "x86_64-darwin" "aarch64-darwin" "aarch64-linux" "armv7l-linux" ]; platforms = [ "x86_64-linux" "x86_64-darwin" "aarch64-darwin" "aarch64-linux" "armv7l-linux" ];
}; };
} }

View file

@ -13,10 +13,10 @@ let
archive_fmt = if system == "x86_64-darwin" then "zip" else "tar.gz"; archive_fmt = if system == "x86_64-darwin" then "zip" else "tar.gz";
sha256 = { sha256 = {
x86_64-linux = "19r4883qa73b23xw0fz21bnp9vcvsbn1q77n6pcm1achwpxscrg6"; x86_64-linux = "0g1c88i0nkg4hys00vhqp0i2n3kjl395fd2rimi2p49y042b5c9g";
x86_64-darwin = "0gv4208vcr75wyp6vji1cg6644f5yfwgkgkiav37218v1wjzb4r0"; x86_64-darwin = "1521aqrv9zx2r5cy8h2011iz3v5lvayizlgv8j7j8qi272mmvx5k";
aarch64-linux = "00jzjapyj96bqqq6pz4mdlihwa5g1izkqcp4lqml7hqvmcqrjyrs"; aarch64-linux = "1kk0jrhqx6q325zmfg553pqmk6v9cx3a99bsh9rzvdlca94nmpj0";
armv7l-linux = "0daji52lfbgz0by11idai55ip0m859s35vbyvgv655s21aakrs50"; armv7l-linux = "08hy61a9pp18b1x7lnsc7b9y3bvnjmavazz7qkhp5qxl2gs802wm";
}.${system}; }.${system};
sourceRoot = { sourceRoot = {
@ -31,7 +31,7 @@ in
# Please backport all compatible updates to the stable release. # Please backport all compatible updates to the stable release.
# This is important for the extension ecosystem. # This is important for the extension ecosystem.
version = "1.62.2"; version = "1.62.3";
pname = "vscodium"; pname = "vscodium";
executableName = "codium"; executableName = "codium";
@ -62,7 +62,7 @@ in
homepage = "https://github.com/VSCodium/vscodium"; homepage = "https://github.com/VSCodium/vscodium";
downloadPage = "https://github.com/VSCodium/vscodium/releases"; downloadPage = "https://github.com/VSCodium/vscodium/releases";
license = licenses.mit; license = licenses.mit;
maintainers = with maintainers; [ synthetica turion ]; maintainers = with maintainers; [ synthetica turion bobby285271 ];
platforms = [ "x86_64-linux" "x86_64-darwin" "aarch64-linux" "armv7l-linux" ]; platforms = [ "x86_64-linux" "x86_64-darwin" "aarch64-linux" "armv7l-linux" ];
}; };
} }

View file

@ -1,11 +1,13 @@
{ lib { lib
, stdenv , stdenv
, fetchurl , fetchurl
, glib
, jre , jre
, unzip , unzip
, makeWrapper , makeWrapper
, makeDesktopItem , makeDesktopItem
, copyDesktopItems , copyDesktopItems
, wrapGAppsHook
}: }:
let let
@ -21,7 +23,10 @@ in stdenv.mkDerivation rec {
url = "https://wsr.imagej.net/distros/cross-platform/ij${version}.zip"; url = "https://wsr.imagej.net/distros/cross-platform/ij${version}.zip";
sha256 = "sha256-MGuUdUDuW3s/yGC68rHr6xxzmYScUjdXRawDpc1UQqw="; sha256 = "sha256-MGuUdUDuW3s/yGC68rHr6xxzmYScUjdXRawDpc1UQqw=";
}; };
nativeBuildInputs = [ copyDesktopItems makeWrapper unzip ]; nativeBuildInputs = [ copyDesktopItems makeWrapper unzip wrapGAppsHook ];
buildInputs = [ glib ];
dontWrapGApps = true;
desktopItems = lib.optionals stdenv.isLinux [ desktopItems = lib.optionals stdenv.isLinux [
(makeDesktopItem { (makeDesktopItem {
name = "ImageJ"; name = "ImageJ";
@ -47,13 +52,15 @@ in stdenv.mkDerivation rec {
# Simple cp shall clear suid bits, if any. # Simple cp shall clear suid bits, if any.
cp ij.jar $out/share/java cp ij.jar $out/share/java
cp -dR luts macros plugins $out/share cp -dR luts macros plugins $out/share
makeWrapper ${jre}/bin/java $out/bin/imagej \
--add-flags "-jar $out/share/java/ij.jar -ijpath $out/share"
runHook postInstall runHook postInstall
''; '';
postFixup = lib.optionalString stdenv.isLinux '' postFixup = lib.optionalString stdenv.isLinux ''
makeWrapper ${jre}/bin/java $out/bin/imagej \
''${gappsWrapperArgs[@]} \
--add-flags "-jar $out/share/java/ij.jar -ijpath $out/share"
install -Dm644 ${icon} $out/share/icons/hicolor/128x128/apps/imagej.png install -Dm644 ${icon} $out/share/icons/hicolor/128x128/apps/imagej.png
substituteInPlace $out/share/applications/ImageJ.desktop \ substituteInPlace $out/share/applications/ImageJ.desktop \
--replace Exec=imagej Exec=$out/bin/imagej --replace Exec=imagej Exec=$out/bin/imagej

View file

@ -5,16 +5,16 @@
buildGoModule rec { buildGoModule rec {
pname = "dasel"; pname = "dasel";
version = "1.21.2"; version = "1.22.1";
src = fetchFromGitHub { src = fetchFromGitHub {
owner = "TomWright"; owner = "TomWright";
repo = pname; repo = "dasel";
rev = "v${version}"; rev = "v${version}";
sha256 = "sha256-HHeO8mbvD+PLMKjeacjIBNEVeOYjeHjXJHhTkbMMOG4="; sha256 = "091s3hyz9p892garanm9zmkbsn6hn3bnnrz7h3dqsyi58806d5yr";
}; };
vendorSha256 = "sha256-yP4iF3403WWgWAmBHiuOpDsIAUx4+KR8uKPfjy3qXt8="; vendorSha256 = "1psyx8nqzpx3p1ya9y3q9h0hhfx4iqmix089b2h6bp9lgqbj5zn8";
ldflags = [ ldflags = [
"-s" "-w" "-X github.com/tomwright/dasel/internal.Version=${version}" "-s" "-w" "-X github.com/tomwright/dasel/internal.Version=${version}"
@ -38,6 +38,7 @@ buildGoModule rec {
Comparable to jq / yq, but supports JSON, YAML, TOML and XML with zero runtime dependencies. Comparable to jq / yq, but supports JSON, YAML, TOML and XML with zero runtime dependencies.
''; '';
homepage = "https://github.com/TomWright/dasel"; homepage = "https://github.com/TomWright/dasel";
changelog = "https://github.com/TomWright/dasel/blob/v${version}/CHANGELOG.md";
license = licenses.mit; license = licenses.mit;
platforms = platforms.unix; platforms = platforms.unix;
maintainers = with maintainers; [ _0x4A6F ]; maintainers = with maintainers; [ _0x4A6F ];

View file

@ -1,6 +1,6 @@
{ lib { lib
, stdenv , stdenv
, fetchurl , fetchFromGitHub
, autoconf , autoconf
, automake , automake
, bc , bc
@ -17,9 +17,11 @@ stdenv.mkDerivation rec {
pname = "fme"; pname = "fme";
version = "1.1.3"; version = "1.1.3";
src = fetchurl { src = fetchFromGitHub {
url = "https://github.com/rdehouss/fme/archive/v${version}.tar.gz"; owner = "rdehouss";
hash = "sha256-0cgaajjA+q0ClDrWXW0DFL0gXG3oQWaaLv5D5MUD5j0="; repo = "fme";
rev = "v${version}";
sha256 = "sha256-P67OmExBdWM6NZhDyYceVJOZiy8RC+njk/QvgQcWZeQ=";
}; };
nativeBuildInputs = [ nativeBuildInputs = [

View file

@ -1,4 +1,4 @@
{ lib, stdenv, fetchurl, perlPackages, gettext, makeWrapper, ImageMagick, which, highlight { lib, stdenv, fetchurl, fetchpatch, perlPackages, gettext, makeWrapper, ImageMagick, which, highlight
, gitSupport ? false, git , gitSupport ? false, git
, docutilsSupport ? false, python, docutils , docutilsSupport ? false, python, docutils
, monotoneSupport ? false, monotone , monotoneSupport ? false, monotone
@ -23,7 +23,10 @@ stdenv.mkDerivation rec {
TimeDate gettext makeWrapper DBFile CGISession CGIFormBuilder LocaleGettext TimeDate gettext makeWrapper DBFile CGISession CGIFormBuilder LocaleGettext
RpcXML XMLSimple ImageMagick YAML YAMLLibYAML HTMLTree AuthenPassphrase RpcXML XMLSimple ImageMagick YAML YAMLLibYAML HTMLTree AuthenPassphrase
NetOpenIDConsumer LWPxParanoidAgent CryptSSLeay ]) NetOpenIDConsumer LWPxParanoidAgent CryptSSLeay ])
++ lib.optionals docutilsSupport [python docutils] ++ lib.optionals docutilsSupport [
(python.withPackages (pp: with pp; [ pygments ]))
docutils
]
++ lib.optionals gitSupport [git] ++ lib.optionals gitSupport [git]
++ lib.optionals monotoneSupport [monotone] ++ lib.optionals monotoneSupport [monotone]
++ lib.optionals bazaarSupport [breezy] ++ lib.optionals bazaarSupport [breezy]
@ -31,9 +34,17 @@ stdenv.mkDerivation rec {
++ lib.optionals subversionSupport [subversion] ++ lib.optionals subversionSupport [subversion]
++ lib.optionals mercurialSupport [mercurial]; ++ lib.optionals mercurialSupport [mercurial];
# A few markdown tests fail, but this is expected when using Text::Markdown patches = [
# instead of Text::Markdown::Discount. # A few markdown tests fail, but this is expected when using Text::Markdown
patches = [ ./remove-markdown-tests.patch ]; # instead of Text::Markdown::Discount.
./remove-markdown-tests.patch
(fetchpatch {
name = "Catch-up-to-highlight-4.0-API-change";
url = "http://source.ikiwiki.branchable.com/?p=source.git;a=patch;h=9ea3f9dfe7c0341f4e002b48728b8139293e19d0";
sha256 = "16s4wvsfclx0a5cm2awr69dvw2vsi8lpm0d7kyl5w0kjlmzfc7h9";
})
];
postPatch = '' postPatch = ''
sed -i s@/usr/bin/perl@${perlPackages.perl}/bin/perl@ pm_filter mdwn2man sed -i s@/usr/bin/perl@${perlPackages.perl}/bin/perl@ pm_filter mdwn2man
@ -42,6 +53,9 @@ stdenv.mkDerivation rec {
# State the gcc dependency, and make the cgi use our wrapper # State the gcc dependency, and make the cgi use our wrapper
sed -i -e 's@$0@"'$out/bin/ikiwiki'"@' \ sed -i -e 's@$0@"'$out/bin/ikiwiki'"@' \
-e "s@'cc'@'${stdenv.cc}/bin/gcc'@" IkiWiki/Wrapper.pm -e "s@'cc'@'${stdenv.cc}/bin/gcc'@" IkiWiki/Wrapper.pm
# Without patched plugin shebangs, some tests like t/rst.t fail
# (with docutilsSupport enabled)
patchShebangs plugins/*
''; '';
configurePhase = "perl Makefile.PL PREFIX=$out"; configurePhase = "perl Makefile.PL PREFIX=$out";
@ -74,5 +88,6 @@ stdenv.mkDerivation rec {
homepage = "http://ikiwiki.info/"; homepage = "http://ikiwiki.info/";
license = licenses.gpl2Plus; license = licenses.gpl2Plus;
platforms = platforms.linux; platforms = platforms.linux;
maintainers = [ maintainers.wentasah ];
}; };
} }

View file

@ -2,16 +2,21 @@
let let
pname = "marktext"; pname = "marktext";
version = "v0.16.2"; version = "v0.16.3";
in
appimageTools.wrapType2 rec {
name = "${pname}-${version}-binary"; name = "${pname}-${version}-binary";
src = fetchurl { src = fetchurl {
url = "https://github.com/marktext/marktext/releases/download/${version}/marktext-x86_64.AppImage"; url = "https://github.com/marktext/marktext/releases/download/${version}/marktext-x86_64.AppImage";
sha256 = "0ivf9lvv2jk7dvxmqprzcsxgya3617xmx5bppjvik44z14b5x8r7"; sha256 = "0s93c79vy2vsi7b6xq4hvsvjjad8bdkhl1q135vp98zmbf7bvm9b";
}; };
appimageContents = appimageTools.extractType2 {
inherit name src;
};
in
appimageTools.wrapType2 rec {
inherit name src;
profile = '' profile = ''
export LC_ALL=C.UTF-8 export LC_ALL=C.UTF-8
'' ''
@ -28,8 +33,16 @@ appimageTools.wrapType2 rec {
p.xorg.libxkbfile p.xorg.libxkbfile
]; ];
# Strip version from binary name. extraInstallCommands = ''
extraInstallCommands = "mv $out/bin/${name} $out/bin/${pname}"; # Strip version from binary name.
mv $out/bin/${name} $out/bin/${pname}
install -m 444 -D ${appimageContents}/marktext.desktop $out/share/applications/marktext.desktop
substituteInPlace $out/share/applications/marktext.desktop \
--replace "Exec=AppRun" "Exec=${pname} --"
cp -r ${appimageContents}/usr/share/icons $out/share
'';
meta = with lib; { meta = with lib; {
description = "A simple and elegant markdown editor, available for Linux, macOS and Windows"; description = "A simple and elegant markdown editor, available for Linux, macOS and Windows";

View file

@ -2,14 +2,14 @@
python3Packages.buildPythonApplication rec { python3Packages.buildPythonApplication rec {
pname = "flexget"; pname = "flexget";
version = "3.1.152"; version = "3.1.153";
# Fetch from GitHub in order to use `requirements.in` # Fetch from GitHub in order to use `requirements.in`
src = fetchFromGitHub { src = fetchFromGitHub {
owner = "flexget"; owner = "flexget";
repo = "flexget"; repo = "flexget";
rev = "v${version}"; rev = "v${version}";
sha256 = "0xm6aib22frq8bq0ihjgihiw8dj6ymjxszklbz59yrz5rgzlaw81"; sha256 = "sha256-xGGSm6IXTh89wSt0/DNgbe1mFBNuG9x3YLerJcBYMmI=";
}; };
postPatch = '' postPatch = ''

View file

@ -21,6 +21,9 @@
, olm , olm
, pkg-config , pkg-config
, nlohmann_json , nlohmann_json
, coeurl
, libevent
, curl
, voipSupport ? true , voipSupport ? true
, gst_all_1 , gst_all_1
, libnice , libnice
@ -28,13 +31,13 @@
mkDerivation rec { mkDerivation rec {
pname = "nheko"; pname = "nheko";
version = "0.8.2"; version = "0.9.0";
src = fetchFromGitHub { src = fetchFromGitHub {
owner = "Nheko-Reborn"; owner = "Nheko-Reborn";
repo = "nheko"; repo = "nheko";
rev = "v${version}"; rev = "v${version}";
sha256 = "sha256-w4l91/W6F1FL+Q37qWSjYRHv4vad/10fxdKwfNeEwgw="; sha256 = "1akhnngxkxbjwjkg5ispl6j5s2ylbcj92r3zxqqry4gbfxbjpx8k";
}; };
nativeBuildInputs = [ nativeBuildInputs = [
@ -58,6 +61,9 @@ mkDerivation rec {
qtquickcontrols2 qtquickcontrols2
qtgraphicaleffects qtgraphicaleffects
qtkeychain qtkeychain
coeurl
libevent
curl
] ++ lib.optional stdenv.isDarwin qtmacextras ] ++ lib.optional stdenv.isDarwin qtmacextras
++ lib.optionals voipSupport (with gst_all_1; [ ++ lib.optionals voipSupport (with gst_all_1; [
gstreamer gstreamer

View file

@ -1,6 +1,7 @@
{ lib { lib
, stdenv , stdenv
, fetchFromGitHub , fetchFromGitHub
, fetchpatch
, autoconf-archive , autoconf-archive
, autoreconfHook , autoreconfHook
, cmocka , cmocka
@ -46,6 +47,23 @@ stdenv.mkDerivation rec {
patches = [ patches = [
./patches/packages-osx.patch ./patches/packages-osx.patch
# pullupstream fixes for ncurses-6.3
(fetchpatch {
name = "ncurses-6.3-p1.patch";
url = "https://github.com/profanity-im/profanity/commit/e5b6258c997d4faf36e2ffb8a47b386c5629b4eb.patch";
sha256 = "sha256-4rwpvsgfIQ60GcLS0O7Hyn7ZidREjYT+dVND54z0zrw=";
})
(fetchpatch {
name = "ncurses-6.3-p2.patch";
url = "https://github.com/profanity-im/profanity/commit/fd9ccec8dc604902bbb1d444dba4223ccee0a092.patch";
sha256 = "sha256-4gZaXoDNulBIR+e6y/9bJKXVactCHWS8H8lPJaJwVwE=";
})
(fetchpatch {
name = "ncurses-6.3-p3.patch";
url = "https://github.com/profanity-im/profanity/commit/242696f09a49c8446ba6aef8bdad65fb58a77715.patch";
sha256 = "sha256-BOYHkae9aIA7HaVM23Yu25TTK9e3SuV+u0FEi7Sn62I=";
})
]; ];
enableParallelBuilding = true; enableParallelBuilding = true;

View file

@ -1,15 +1,27 @@
{ mkDerivation, lib, fetchurl, pkg-config, makeDesktopItem { mkDerivation
, qtbase, qttools, qtmultimedia, qtquick1, qtquickcontrols , lib
, openssl, protobuf, qmake , fetchFromGitHub
, pkg-config
, makeDesktopItem
, qtbase
, qttools
, qtmultimedia
, qtquick1
, qtquickcontrols
, openssl
, protobuf
, qmake
}: }:
mkDerivation rec { mkDerivation rec {
pname = "ricochet"; pname = "ricochet";
version = "1.1.4"; version = "1.1.4";
src = fetchurl { src = fetchFromGitHub {
url = "https://github.com/ricochet-im/ricochet/archive/v${version}.tar.gz"; owner = "ricochet-im";
sha256 = "1kfj42ksvj7axc809lb8siqzj5hck2pib427b63a3ipnqc5h1faf"; repo = "ricochet";
rev = "v${version}";
sha256 = "sha256-CGVTHa0Hqj90WvB6ZbA156DVgzv/R7blsU550y2Ai9c=";
}; };
desktopItem = makeDesktopItem { desktopItem = makeDesktopItem {
@ -23,8 +35,13 @@ mkDerivation rec {
}; };
buildInputs = [ buildInputs = [
qtbase qttools qtmultimedia qtquick1 qtquickcontrols qtbase
openssl protobuf qttools
qtmultimedia
qtquick1
qtquickcontrols
openssl
protobuf
]; ];
nativeBuildInputs = [ pkg-config qmake ]; nativeBuildInputs = [ pkg-config qmake ];

View file

@ -1,12 +1,14 @@
{ lib, fetchurl, python3Packages }: { lib, fetchFromGitHub, python3Packages }:
let version = "1.63"; python3Packages.buildPythonPackage rec {
in python3Packages.buildPythonPackage { pname = "scudcloud";
name = "scudcloud-${version}"; version = "1.63";
src = fetchurl { src = fetchFromGitHub {
url = "https://github.com/raelgc/scudcloud/archive/v${version}.tar.gz"; owner = "raelgc";
sha256 = "e0d1cb72115d0fda17db92d28be51558ad8fe250972683fac3086dbe8d350d22"; repo = "scudcloud";
rev = "v${version}";
sha256 = "sha256-b8+MVjYKbSpnfM2ow2MNVY6MiT+urpNYDkFR/yUC7ik=";
}; };
propagatedBuildInputs = with python3Packages; [ pyqt5_with_qtwebkit dbus-python jsmin ]; propagatedBuildInputs = with python3Packages; [ pyqt5_with_qtwebkit dbus-python jsmin ];

View file

@ -3,6 +3,7 @@
, autoconf , autoconf
, automake , automake
, fetchFromGitHub , fetchFromGitHub
, fetchpatch
, libpcap , libpcap
, ncurses , ncurses
, openssl , openssl
@ -20,6 +21,16 @@ stdenv.mkDerivation rec {
sha256 = "sha256-92wPRDFSoIOYFv3XKdsuYH8j3D8kXyg++q6VpIIMGDg="; sha256 = "sha256-92wPRDFSoIOYFv3XKdsuYH8j3D8kXyg++q6VpIIMGDg=";
}; };
patches = [
# Pull fix pending upstream inclusion for ncurses-6.3 support:
# https://github.com/irontec/sngrep/pull/382
(fetchpatch {
name = "ncurses-6.3.patch";
url = "https://github.com/irontec/sngrep/commit/d09e1c323dbd7fc899e8985899baec568f045601.patch";
sha256 = "sha256-nY5i3WQh/oKboEAh4wvxF5Imf2BHYEKdFj+WF1M3SSA=";
})
];
nativeBuildInputs = [ nativeBuildInputs = [
autoconf autoconf
automake automake

View file

@ -0,0 +1,68 @@
{ stdenv, lib, qt5, fetchurl, autoPatchelfHook, dpkg, glibc, cpio, xar, undmg, gtk3, pango }:
let
pname = "synology-drive-client";
buildNumber = "12682";
version = "3.0.2";
baseUrl = "https://global.download.synology.com/download/Utility/SynologyDriveClient";
meta = with lib; {
description = "Desktop application to synchronize files and folders between the computer and the Synology Drive server.";
homepage = "https://www.synology.com/en-global/dsm/feature/drive";
license = licenses.unfree;
maintainers = with maintainers; [ jcouyang ];
platforms = [ "x86_64-linux" "x86_64-darwin" ];
};
linux = qt5.mkDerivation {
inherit pname version;
src = fetchurl {
url = "${baseUrl}/${version}-${buildNumber}/Ubuntu/Installer/x86_64/synology-drive-client-${buildNumber}.x86_64.deb";
sha256 = "19fd2r39lb7bb6vkxfxyq0gp3l7pk5wy9fl0r7qwhym2jpi8yv6l";
};
nativeBuildInputs = [ autoPatchelfHook dpkg ];
buildInputs = [ glibc gtk3 pango ];
unpackPhase = ''
mkdir -p $out
dpkg -x $src $out
rm -rf $out/usr/lib/nautilus
rm -rf $out/opt/Synology/SynologyDrive/package/cloudstation/icon-overlay
'';
installPhase = ''
cp -av $out/usr/* $out
rm -rf $out/usr
runHook postInstall
'';
postInstall = ''
substituteInPlace $out/bin/synology-drive --replace /opt $out/opt
'';
};
darwin = stdenv.mkDerivation {
inherit pname version;
src = fetchurl {
url = "${baseUrl}/${version}-${buildNumber}/Mac/Installer/synology-drive-client-${buildNumber}.dmg";
sha256 = "1mlv8gxzivgxm59mw1pd63yq9d7as79ihm7166qyy0h0b0m04q2m";
};
nativeBuildInputs = [ cpio xar undmg ];
postUnpack = ''
xar -xf 'Install Synology Drive Client.pkg'
cd synology-drive.installer.pkg
gunzip -dc Payload | cpio -i
'';
sourceRoot = ".";
installPhase = ''
mkdir -p $out/Applications/
cp -R 'Synology Drive Client.app' $out/Applications/
'';
};
in if stdenv.isDarwin then darwin else linux

View file

@ -1,12 +1,14 @@
{ lib, stdenv, fetchurl, unzip, jdk, ib-tws, xpra }: { lib, stdenv, fetchFromGitHub, unzip, jdk, ib-tws, xpra }:
stdenv.mkDerivation rec { stdenv.mkDerivation rec {
version = "2.14.0"; version = "2.14.0";
pname = "ib-controller"; pname = "ib-controller";
src = fetchurl { src = fetchFromGitHub {
url = "https://github.com/ib-controller/ib-controller/archive/${version}.tar.gz"; owner = "ib-controller";
sha256 = "17a8bcgg9z3b4y38k035hm2lgvhmf8srlz59c7n2q3fdw2i95i68"; repo = "ib-controller";
rev = version;
sha256 = "sha256-R175CKb3uErjBNe73HEFMI+bNmmuH2nWGraCSh5bXwc=";
}; };
nativeBuildInputs = [ unzip ]; nativeBuildInputs = [ unzip ];
@ -148,7 +150,7 @@ stdenv.mkDerivation rec {
fi fi
EOF EOF
chmod u+x $out/bin/ib-gw-c chmod u+x $out/bin/ib-gw-c
''; '';
meta = with lib; { meta = with lib; {

View file

@ -1,44 +1,39 @@
{ lib, mkDerivation, fetchFromGitHub, qmake, qtsvg, qtcreator, poppler, libzip, pkg-config }: { lib, stdenv, fetchFromGitHub, qmake, qtbase, qtsvg, poppler, libzip, pkg-config, wrapQtAppsHook }:
mkDerivation rec { stdenv.mkDerivation rec {
pname = "kitsas"; pname = "kitsas";
version = "3.0"; version = "3.1.1";
src = fetchFromGitHub { src = fetchFromGitHub {
owner = "artoh"; owner = "artoh";
repo = "kitupiikki"; repo = "kitupiikki";
rev = "v${version}"; rev = "v${version}";
sha256 = "sha256-UH2bFJZd83APRjlv6JR+Uy+ng4DWnnLmavAgjgSOiRo="; sha256 = "sha256-nmlGLrVsTQawYHNgaax9EiutL4xgFdOD34Q4/rnB/D0=";
}; };
nativeBuildInputs = [ pkg-config ]; # QList::swapItemsAt was introduced in Qt 5.13
patches = lib.optional (lib.versionOlder qtbase.version "5.13") ./qt-512.patch;
buildInputs = [ qmake qtsvg poppler libzip ]; nativeBuildInputs = [ pkg-config qmake wrapQtAppsHook ];
buildInputs = [ qtsvg poppler libzip ];
# We use a separate build-dir as otherwise ld seems to get confused between # We use a separate build-dir as otherwise ld seems to get confused between
# directory and executable name on buildPhase. # directory and executable name on buildPhase.
preConfigure = '' preConfigure = ''
mkdir build-linux mkdir build && cd build
cd build-linux
''; '';
qmakeFlags = [ qmakeFlags = [ "../kitsas/kitsas.pro" ];
"../kitsas/kitsas.pro"
"-spec"
"linux-g++"
"CONFIG+=release"
];
preFixup = '' installPhase = if stdenv.isDarwin then ''
make clean mkdir -p $out/Applications
rm Makefile mv kitsas.app $out/Applications
''; '' else ''
install -Dm755 kitsas -t $out/bin
installPhase = '' install -Dm644 ../kitsas.svg -t $out/share/icons/hicolor/scalable/apps
mkdir -p $out/bin $out/share/applications install -Dm644 ../kitsas.png -t $out/share/icons/hicolor/256x256/apps
cp kitsas $out/bin install -Dm644 ../kitsas.desktop -t $out/share/applications
cp $src/kitsas.png $out/share/applications
cp $src/kitsas.desktop $out/share/applications
''; '';
meta = with lib; { meta = with lib; {
@ -46,6 +41,6 @@ mkDerivation rec {
description = "An accounting tool suitable for Finnish associations and small business"; description = "An accounting tool suitable for Finnish associations and small business";
maintainers = with maintainers; [ gspia ]; maintainers = with maintainers; [ gspia ];
license = licenses.gpl3Plus; license = licenses.gpl3Plus;
platforms = platforms.linux; platforms = platforms.unix;
}; };
} }

View file

@ -0,0 +1,24 @@
diff --git i/kitsas/apuri/siirtoapuri.cpp w/kitsas/apuri/siirtoapuri.cpp
index 9a2c51f3..9565200f 100644
--- i/kitsas/apuri/siirtoapuri.cpp
+++ w/kitsas/apuri/siirtoapuri.cpp
@@ -25,6 +25,7 @@
#include "db/tositetyyppimodel.h"
#include "tiliote/tiliotekirjaaja.h"
+#include <QtAlgorithms>
#include <QDebug>
SiirtoApuri::SiirtoApuri(QWidget *parent, Tosite *tosite) :
@@ -361,8 +362,9 @@ void SiirtoApuri::laskunmaksu()
TositeVienti eka = lista.at(0).toMap();
tosite()->asetaPvm(eka.pvm());
tosite()->asetaOtsikko( eka.selite() );
- if( eka.kreditEuro() )
- lista.swapItemsAt(0,1);
+ if( eka.kreditEuro() ) {
+ qSwap(lista.begin()[0], lista.begin()[1]);
+ }
tosite()->viennit()->asetaViennit(lista);
reset();

View file

@ -1,13 +1,14 @@
{ lib, mkDerivation, fetchurl, qmake, qtsvg, makeWrapper, xdg-utils }: { lib, mkDerivation, fetchFromGitHub, qmake, qtsvg, makeWrapper, xdg-utils }:
let mkDerivation rec {
version = "1.44.55";
in mkDerivation {
pname = "mytetra"; pname = "mytetra";
inherit version; version = "1.44.55";
src = fetchurl {
url = "https://github.com/xintrea/mytetra_dev/archive/v.${version}.tar.gz"; src = fetchFromGitHub {
sha256 = "13lmfvschm1xwr0ys2ykhs0bb83m2f39rk1jdd7zf8yxlqki4i6l"; owner = "xintrea";
repo = "mytetra_dev";
rev = "v.${version}";
sha256 = "sha256-jQXnDoLkqbDZxfsYKPDsTOE7p/BFeA8wEznpbkRVGdw=";
}; };
nativeBuildInputs = [ qmake makeWrapper ]; nativeBuildInputs = [ qmake makeWrapper ];

View file

@ -8,18 +8,24 @@
mkDerivation rec { mkDerivation rec {
pname = "vnote"; pname = "vnote";
version = "3.8.1"; version = "3.10.1";
src = fetchFromGitHub { src = fetchFromGitHub {
owner = "vnotex"; owner = "vnotex";
repo = pname; repo = pname;
fetchSubmodules = true; fetchSubmodules = true;
rev = "v${version}"; rev = "v${version}";
sha256 = "sha256-GgSVBVcT0rfgglyjCmkEMbKCEltesC3eSsN38psrkS4="; sha256 = "sha256-juLyKAq21qNCWTpyMJSMw86U/DMbw/QJCr8QwyqVclA=";
}; };
nativeBuildInputs = [ qmake ]; nativeBuildInputs = [
buildInputs = [ qtbase qtwebengine ]; qmake
];
buildInputs = [
qtbase
qtwebengine
];
meta = with lib; { meta = with lib; {
homepage = "https://vnotex.github.io/vnote"; homepage = "https://vnotex.github.io/vnote";

View file

@ -1,6 +1,6 @@
{ lib { lib
, stdenv , stdenv
, fetchurl , fetchFromGitHub
, cmake , cmake
, glib , glib
, gtk3 , gtk3
@ -13,11 +13,13 @@
stdenv.mkDerivation rec { stdenv.mkDerivation rec {
pname = "sakura"; pname = "sakura";
version = "3.8.3"; version = "3.8.4";
src = fetchurl { src = fetchFromGitHub {
url = "https://launchpad.net/${pname}/trunk/${version}/+download/${pname}-${version}.tar.bz2"; owner = "dabisu";
sha256 = "sha256-UEDc3TjoqjLNZtWGlIZB3VTVQC+31AP0ASQH0fu+U+Q="; repo = pname;
rev = "SAKURA_${lib.replaceStrings [ "." ] [ "_" ] version}";
hash = "sha256-Sqo1gyCvCMlEv1rYqw6P3Dmu10osi/KqB7/WlgTTNAc=";
}; };
nativeBuildInputs = [ nativeBuildInputs = [
@ -36,7 +38,7 @@ stdenv.mkDerivation rec {
# Set path to gsettings-schemata so sakura knows where to find colorchooser, # Set path to gsettings-schemata so sakura knows where to find colorchooser,
# fontchooser etc. # fontchooser etc.
postInstall = '' postFixup = ''
wrapProgram $out/bin/sakura \ wrapProgram $out/bin/sakura \
--suffix XDG_DATA_DIRS : ${gtk3}/share/gsettings-schemas/${gtk3.name}/ --suffix XDG_DATA_DIRS : ${gtk3}/share/gsettings-schemas/${gtk3.name}/
''; '';

View file

@ -1,15 +1,14 @@
{ lib, stdenv, fetchurl, ruby, makeWrapper, git }: { lib, stdenv, fetchFromGitHub, ruby, makeWrapper, git }:
let stdenv.mkDerivation rec {
version = "2.4.0";
in
stdenv.mkDerivation {
pname = "svn2git"; pname = "svn2git";
inherit version; version = "2.4.0";
src = fetchurl { src = fetchFromGitHub {
url = "https://github.com/nirvdrum/svn2git/archive/v${version}.tar.gz"; owner = "nirvdrum";
sha256 = "0ly2vrv6q31n0xhciwb7a1ilr5c6ndyi3bg81yfp4axiypps7l41"; repo = "svn2git";
rev = "v${version}";
sha256 = "sha256-w649l/WO68vYYxZOBKzI8XhGFkaSwWx/O3oVOtnGg6w=";
}; };
nativeBuildInputs = [ ruby makeWrapper ]; nativeBuildInputs = [ ruby makeWrapper ];

View file

@ -1,14 +1,15 @@
{ lib, fetchzip, python2Packages}: { lib, fetchFromGitHub, python2Packages }:
python2Packages.buildPythonApplication rec { python2Packages.buildPythonApplication rec {
pname = "gitinspector"; pname = "gitinspector";
version = "0.4.4"; version = "0.4.4";
namePrefix = ""; namePrefix = "";
src = fetchzip { src = fetchFromGitHub {
url = "https://github.com/ejwa/gitinspector/archive/v${version}.tar.gz"; owner = "ejwa";
sha256 = "1pfsw6xldm6jigs3nhysvqaxk8a0zf8zczgfkrp920as9sya3c7m"; repo = "gitinspector";
name = "${pname}-${version}" + "-src"; rev = "v${version}";
sha256 = "sha256-9bChvE5aAZFunu599pH7QKHZFd7aQzv0i9LURrvh2t0=";
}; };
checkInputs = with python2Packages; [ checkInputs = with python2Packages; [

View file

@ -1,14 +1,15 @@
{ lib, stdenv, fetchzip, perl, python2, gnuplot, coreutils, gnugrep }: { lib, stdenv, fetchFromGitHub, perl, python2, gnuplot, coreutils, gnugrep }:
stdenv.mkDerivation rec { stdenv.mkDerivation rec {
pname = "gitstats"; pname = "gitstats";
version = "2016-01-08"; version = "2016-01-08";
# upstream does not make releases # upstream does not make releases
src = fetchzip { src = fetchFromGitHub {
url = "https://github.com/hoxu/gitstats/archive/55c5c285558c410bb35ebf421245d320ab9ee9fa.zip"; owner = "hoxu";
sha256 = "1bfcwhksylrpm88vyp33qjby4js31zcxy7w368dzjv4il3fh2i59"; repo = "gitstats";
name = "${pname}-${version}" + "-src"; rev = "55c5c285558c410bb35ebf421245d320ab9ee9fa";
sha256 = "sha256-qUQB3aCRbPkbMoMf39kPQ0vil8RjXL8RqjdTryfkzK0=";
}; };
nativeBuildInputs = [ perl ]; nativeBuildInputs = [ perl ];

View file

@ -1,12 +1,12 @@
{ lib, stdenv, fetchFromGitHub, makeWrapper, nx-libs, xorg, getopt, gnugrep, gawk, ps, mount, iproute2 }: { lib, stdenv, fetchFromGitHub, makeWrapper, nx-libs, xorg, getopt, gnugrep, gawk, ps, mount, iproute2 }:
stdenv.mkDerivation rec { stdenv.mkDerivation rec {
pname = "x11docker"; pname = "x11docker";
version = "6.9.0"; version = "6.10.0";
src = fetchFromGitHub { src = fetchFromGitHub {
owner = "mviereck"; owner = "mviereck";
repo = "x11docker"; repo = "x11docker";
rev = "v${version}"; rev = "v${version}";
sha256 = "sha256-O+lab3K7J2Zz9t+yB/kYWtBOvQGOQMDFNDUVXzTj/h4="; sha256 = "sha256-cPCtxfLzg1RDh3vKFfxAkcCMytu0mDsGp9CLJQmXATA=";
}; };
nativeBuildInputs = [ makeWrapper ]; nativeBuildInputs = [ makeWrapper ];

View file

@ -20,11 +20,11 @@
stdenv.mkDerivation rec { stdenv.mkDerivation rec {
pname = "e16"; pname = "e16";
version = "1.0.23"; version = "1.0.24";
src = fetchurl { src = fetchurl {
url = "mirror://sourceforge/enlightenment/e16-${version}.tar.xz"; url = "mirror://sourceforge/enlightenment/e16-${version}.tar.xz";
sha256 = "028rn1plggacsvdd035qnnph4xw8nya34mmjvvl7d4gqj9pj293f"; sha256 = "1anmwfjyynwl0ylkyksa7bnsqzf58l1yccjzp3kbwq6nw1gs7dbv";
}; };
nativeBuildInputs = [ nativeBuildInputs = [

View file

@ -8,11 +8,11 @@ in
stdenv.mkDerivation rec { stdenv.mkDerivation rec {
pname = "xfce4-sensors-plugin"; pname = "xfce4-sensors-plugin";
version = "1.4.1"; version = "1.4.2";
src = fetchurl { src = fetchurl {
url = "mirror://xfce/src/${category}/${pname}/${lib.versions.majorMinor version}/${pname}-${version}.tar.bz2"; url = "mirror://xfce/src/${category}/${pname}/${lib.versions.majorMinor version}/${pname}-${version}.tar.bz2";
sha256 = "sha256-N9DcVp5zXkgqGFRcJOsc4CKdaRDjpNTB3uBoCZkjS+I="; sha256 = "sha256-2pDxLmrplbzRyBvjVHmnqdMjCMZezWTlaLqMlZLTn8s=";
}; };
nativeBuildInputs = [ nativeBuildInputs = [

View file

@ -3,10 +3,10 @@
mkXfceDerivation { mkXfceDerivation {
category = "panel-plugins"; category = "panel-plugins";
pname = "xfce4-whiskermenu-plugin"; pname = "xfce4-whiskermenu-plugin";
version = "2.6.1"; version = "2.6.2";
rev-prefix = "v"; rev-prefix = "v";
odd-unstable = false; odd-unstable = false;
sha256 = "sha256-LdvrGpgy96IbL4t4jSJk2d5DBpSPBATHZO1SkpdtjC4="; sha256 = "sha256-Tg6jK2yvODvNykTRePmHWu3safgyKAd3tCMWGXuMhPM=";
nativeBuildInputs = [ cmake ]; nativeBuildInputs = [ cmake ];

View file

@ -13,6 +13,7 @@ mkXfceDerivation {
category = "thunar-plugins"; category = "thunar-plugins";
pname = "thunar-media-tags-plugin"; pname = "thunar-media-tags-plugin";
version = "0.3.0"; version = "0.3.0";
odd-unstable = false;
sha256 = "sha256-jtgcHH5U5GOvzDVUwPEreMtTdk5DT6sXvFPDbzbF684="; sha256 = "sha256-jtgcHH5U5GOvzDVUwPEreMtTdk5DT6sXvFPDbzbF684=";

View file

@ -2,11 +2,11 @@
stdenv.mkDerivation rec { stdenv.mkDerivation rec {
pname = "babashka"; pname = "babashka";
version = "0.6.4"; version = "0.6.5";
src = fetchurl { src = fetchurl {
url = "https://github.com/babashka/${pname}/releases/download/v${version}/${pname}-${version}-standalone.jar"; url = "https://github.com/babashka/${pname}/releases/download/v${version}/${pname}-${version}-standalone.jar";
sha256 = "sha256-/ULBnC10lAYHYD0P0HGWEcCAqkX8IRcQ7W5ulho+JUM="; sha256 = "sha256-72D/HzDIxkGD4zTPE9gHf/uFtboLbNnT7CTslSlAqjc=";
}; };
dontUnpack = true; dontUnpack = true;

View file

@ -0,0 +1,34 @@
{ lib
, stdenv
, fetchFromGitLab
, ninja
, pkg-config
, meson
, libevent
, curl
, spdlog
}:
stdenv.mkDerivation rec {
pname = "coeurl";
version = "0.1.0";
src = fetchFromGitLab {
domain = "nheko.im";
owner = "nheko-reborn";
repo = pname;
rev = "v${version}";
sha256 = "10a5klr44m2xy6law8s3s5rynk1q268fa4pkhilbn52yyv0fwajq";
};
nativeBuildInputs = [ ninja pkg-config meson ];
buildInputs = [ libevent curl spdlog ];
meta = with lib; {
description = "A simple async wrapper around CURL for C++";
homepage = "https://nheko.im/nheko-reborn/coeurl";
license = licenses.mit;
platforms = platforms.all;
maintainers = with maintainers; [ rnhmjoj ];
};
}

View file

@ -17,13 +17,13 @@
stdenv.mkDerivation rec { stdenv.mkDerivation rec {
pname = "grpc"; pname = "grpc";
version = "1.41.0"; # N.B: if you change this, change pythonPackages.grpcio-tools to a matching version too version = "1.42.0"; # N.B: if you change this, change pythonPackages.grpcio-tools to a matching version too
src = fetchFromGitHub { src = fetchFromGitHub {
owner = "grpc"; owner = "grpc";
repo = "grpc"; repo = "grpc";
rev = "v${version}"; rev = "v${version}";
sha256 = "1mcgnzwc2mcdpcfhc1b37vff0biwyd3v0a2ack58wgf4336pzlsb"; sha256 = "sha256-9/ywbnvd8hqeblFe+X9SM6PkRPB/yqE8Iw9TNmLMSOE=";
fetchSubmodules = true; fetchSubmodules = true;
}; };

View file

@ -60,6 +60,8 @@
, ceph , ceph
, enableGlusterfs ? false , enableGlusterfs ? false
, glusterfs , glusterfs
, Carbon
, AppKit
}: }:
with lib; with lib;
@ -152,6 +154,8 @@ stdenv.mkDerivation rec {
] ++ optionals stdenv.isDarwin [ ] ++ optionals stdenv.isDarwin [
libiconv libiconv
gmp gmp
Carbon
AppKit
]; ];
preConfigure = preConfigure =

View file

@ -3,36 +3,36 @@
, fetchpatch , fetchpatch
, cmake , cmake
, pkg-config , pkg-config
, boost17x
, openssl , openssl
, olm , olm
, spdlog , spdlog
, nlohmann_json , nlohmann_json
, coeurl
, libevent
, curl
}: }:
stdenv.mkDerivation rec { stdenv.mkDerivation rec {
pname = "mtxclient"; pname = "mtxclient";
version = "0.5.1"; version = "0.6.0";
src = fetchFromGitHub { src = fetchFromGitHub {
owner = "Nheko-Reborn"; owner = "Nheko-Reborn";
repo = "mtxclient"; repo = "mtxclient";
rev = "v${version}"; rev = "v${version}";
sha256 = "sha256-UKroV1p7jYuNzCAFMsuUsYC/C9AZ1D4rhwpwuER39vc="; sha256 = "0sxx7vj6a1n2d95c118pjq52707qwf16154fdvz5f4z1pq7c8dsi";
}; };
# This patch should be obsolete and should stop applying the in next release. postPatch = ''
patches = [ ./fix-compilation-with-olm-3.2.5.patch ]; # See https://github.com/gabime/spdlog/issues/1897
sed -i '1a add_compile_definitions(SPDLOG_FMT_EXTERNAL)' CMakeLists.txt
'';
cmakeFlags = [ cmakeFlags = [
# Network requiring tests can't be disabled individually: # Network requiring tests can't be disabled individually:
# https://github.com/Nheko-Reborn/mtxclient/issues/22 # https://github.com/Nheko-Reborn/mtxclient/issues/22
"-DBUILD_LIB_TESTS=OFF" "-DBUILD_LIB_TESTS=OFF"
"-DBUILD_LIB_EXAMPLES=OFF" "-DBUILD_LIB_EXAMPLES=OFF"
"-Dnlohmann_json_DIR=${nlohmann_json}/lib/cmake/nlohmann_json"
# Can be removed once either https://github.com/NixOS/nixpkgs/pull/85254 or
# https://github.com/NixOS/nixpkgs/pull/73940 are merged
"-DBoost_NO_BOOST_CMAKE=TRUE"
]; ];
nativeBuildInputs = [ nativeBuildInputs = [
@ -41,13 +41,16 @@ stdenv.mkDerivation rec {
]; ];
buildInputs = [ buildInputs = [
spdlog spdlog
boost17x nlohmann_json
openssl openssl
olm olm
coeurl
libevent
curl
]; ];
meta = with lib; { meta = with lib; {
description = "Client API library for Matrix, built on top of Boost.Asio"; description = "Client API library for the Matrix protocol.";
homepage = "https://github.com/Nheko-Reborn/mtxclient"; homepage = "https://github.com/Nheko-Reborn/mtxclient";
license = licenses.mit; license = licenses.mit;
maintainers = with maintainers; [ fpletz pstn ]; maintainers = with maintainers; [ fpletz pstn ];

View file

@ -11,16 +11,17 @@
stdenv.mkDerivation rec { stdenv.mkDerivation rec {
pname = "wxSVG"; pname = "wxSVG";
version = "1.5.22"; version = "1.5.23";
src = fetchurl { src = fetchurl {
url = "mirror://sourceforge/project/wxsvg/wxsvg/${version}/wxsvg-${version}.tar.bz2"; url = "mirror://sourceforge/project/wxsvg/wxsvg/${version}/wxsvg-${version}.tar.bz2";
hash = "sha256-DeFozZ8MzTCbhkDBtuifKpBpg7wS7+dbDFzTDx6v9Sk="; hash = "sha256-Pwc2H6zH0YzBmpQN1zx4FC7V7sOMFNmTqFvwwGHcq7k=";
}; };
nativeBuildInputs = [ nativeBuildInputs = [
pkg-config pkg-config
]; ];
buildInputs = [ buildInputs = [
cairo cairo
ffmpeg ffmpeg
@ -39,5 +40,6 @@ stdenv.mkDerivation rec {
license = with licenses; gpl2Plus; license = with licenses; gpl2Plus;
maintainers = with maintainers; [ AndersonTorres ]; maintainers = with maintainers; [ AndersonTorres ];
platforms = wxGTK.meta.platforms; platforms = wxGTK.meta.platforms;
broken = stdenv.isDarwin;
}; };
} }

View file

@ -2,11 +2,11 @@
buildPythonPackage rec { buildPythonPackage rec {
pname = "grpcio-tools"; pname = "grpcio-tools";
version = "1.41.0"; version = "1.42.0";
src = fetchPypi { src = fetchPypi {
inherit pname version; inherit pname version;
sha256 = "3891b1df82369acbc8451d4952cd20755f49a82398dce62437511ad17b47290e"; sha256 = "d0a0daa82eb2c2fb8e12b82a458d1b7c5516fe1135551da92b1a02e2cba93422";
}; };
outputs = [ "out" "dev" ]; outputs = [ "out" "dev" ];

View file

@ -13,11 +13,11 @@
buildPythonPackage rec { buildPythonPackage rec {
pname = "python-openstackclient"; pname = "python-openstackclient";
version = "5.6.0"; version = "5.7.0";
src = fetchPypi { src = fetchPypi {
inherit pname version; inherit pname version;
sha256 = "0abc6666378c5a7db83ec83515a8524fb6246a919236110169cc5c216ac997ea"; sha256 = "c65e3d51018f193cce2daf3d0fd69daa36003bdb2b85df6b07b973e4c39e2f92";
}; };
propagatedBuildInputs = [ propagatedBuildInputs = [

View file

@ -18,14 +18,14 @@
buildPythonPackage rec { buildPythonPackage rec {
pname = "qcs-api-client"; pname = "qcs-api-client";
version = "0.18.0"; version = "0.19.0";
format = "setuptools"; format = "setuptools";
disabled = pythonOlder "3.7"; disabled = pythonOlder "3.7";
src = fetchPypi { src = fetchPypi {
inherit pname version; inherit pname version;
sha256 = "sha256-7qrE+XqXOCmfauD772epIbZ1Lzv+5pXrA7tgD8qCVSE="; sha256 = "sha256-OfhOYvGcBzbirsD05D206b+mAOVvDVAwBvDgCKfXxSw=";
}; };
propagatedBuildInputs = [ propagatedBuildInputs = [

View file

@ -17,15 +17,15 @@
rustPlatform.buildRustPackage rec { rustPlatform.buildRustPackage rec {
pname = "deno"; pname = "deno";
version = "1.15.3"; version = "1.16.2";
src = fetchFromGitHub { src = fetchFromGitHub {
owner = "denoland"; owner = "denoland";
repo = pname; repo = pname;
rev = "v${version}"; rev = "v${version}";
sha256 = "sha256-IFEo2F3gayR2LmAAJXezZPXpRfZf4re3YPZRcXpqx6o="; sha256 = "sha256-Qf1eDQ6ZbBGOQIDh2q8hKjsKB0Ri9Hjqq1AMOTanML0=";
}; };
cargoSha256 = "sha256-9ZpPiqlqP01B9ETpVqVreivNuSMB1td4LinxXdH7PsM="; cargoSha256 = "sha256-ZA9pR8yQV5v/Xa/B7M01PIqrkBe1DVIXC5VURoE1EtI=";
# Install completions post-install # Install completions post-install
nativeBuildInputs = [ installShellFiles ]; nativeBuildInputs = [ installShellFiles ];
@ -35,20 +35,9 @@ rustPlatform.buildRustPackage rec {
buildInputs = lib.optionals stdenv.isDarwin buildInputs = lib.optionals stdenv.isDarwin
[ libiconv libobjc Security CoreServices Metal Foundation QuartzCore ]; [ libiconv libobjc Security CoreServices Metal Foundation QuartzCore ];
# The rusty_v8 package will try to download a `librusty_v8.a` release at build time to our read-only filesystem # The v8 package will try to download a `librusty_v8.a` release at build time to our read-only filesystem
# To avoid this we pre-download the file and place it in the locations it will require it in advance # To avoid this we pre-download the file and export it via RUSTY_V8_ARCHIVE
preBuild = RUSTY_V8_ARCHIVE = librusty_v8;
let arch = rust.toRustTarget stdenv.hostPlatform; in
''
_librusty_v8_setup() {
for v in "$@"; do
install -D ${librusty_v8} "target/$v/gn_out/obj/librusty_v8.a"
done
}
# Copy over the `librusty_v8.a` file inside target/XYZ/gn_out/obj, symlink not allowed
_librusty_v8_setup "debug" "release" "${arch}/release"
'';
# Tests have some inconsistencies between runs with output integration tests # Tests have some inconsistencies between runs with output integration tests
# Skipping until resolved # Skipping until resolved

View file

@ -11,11 +11,11 @@ let
}; };
in in
fetch_librusty_v8 { fetch_librusty_v8 {
version = "0.32.0"; version = "0.34.0";
shas = { shas = {
x86_64-linux = "sha256-35Rm4j4BJNCfl3MQJIpKw1altzm9fgvZ6WeC2cF4Qzc="; x86_64-linux = "sha256-Ly5bEfC993JH3/1VNpFu72Dv8kJYOFu+HIlEUJJcHps=";
aarch64-linux = "sha256-w1ljFwao/YMO27QSaEyVl7HEVnfzZyVOXZK4xN0205Y="; aarch64-linux = "sha256-zazlvm4uyHD6Z+2JmeHS7gQ84C83KTWOGqNjSNPgoT0=";
x86_64-darwin = "sha256-oNrF9lFkgMgphDElKQRXMq9uYua75e2HrfflNO+CyPk="; x86_64-darwin = "sha256-RTgbtkCAuIj/ceJNbdA0yfKtFG8hSZgurEHEuUfJ7fk=";
aarch64-darwin = "sha256-Bz9C1AChvGJYamnIg1XtYyTzmIisL0Oe/yDjB7ZebMw="; aarch64-darwin = "sha256-xrOUPEZ4tj2BK6pDeoTpTKDx4E1KUEQ+lGMyduKDvBE=";
}; };
} }

View file

@ -25,9 +25,7 @@ const getLibrustyV8Version = async (
) => ) =>
fetch(`https://github.com/${owner}/${repo}/raw/${version}/core/Cargo.toml`) fetch(`https://github.com/${owner}/${repo}/raw/${version}/core/Cargo.toml`)
.then((res) => res.text()) .then((res) => res.text())
.then((txt) => .then((txt) => txt.match(genValueRegExp("v8", versionRegExp))?.shift());
txt.match(genValueRegExp("rusty_v8", versionRegExp))?.shift()
);
const fetchArchShaTasks = (version: string, arches: Architecture[]) => const fetchArchShaTasks = (version: string, arches: Architecture[]) =>
arches.map( arches.map(

View file

@ -0,0 +1,26 @@
diff --git a/core/config_reader.c b/core/config_reader.c
index 451fc48..ed45f4d 100644
--- a/core/config_reader.c
+++ b/core/config_reader.c
@@ -1355,7 +1355,7 @@ int read_config_file(const char* file)
char file_path[PATH_MAX];
snprintf(file_path, sizeof(file_path), "%s%s%s%s", gimx_params.homedir, GIMX_DIR, CONFIG_DIR, file);
-
+ if(getenv("GIMXCONF")) { snprintf(file_path, sizeof(file_path), "%s", file); }
if(read_file(file_path) == -1)
{
gerror("read_file failed\n");
diff --git a/core/gimx.c b/core/gimx.c
index 700cae9..9143d8b 100755
--- a/core/gimx.c
+++ b/core/gimx.c
@@ -192,7 +192,7 @@ void show_config()
char file_path[PATH_MAX];
snprintf(file_path, sizeof(file_path), "%s%s%s%s", gimx_params.homedir, GIMX_DIR, CONFIG_DIR, gimx_params.config_file);
-
+ if(getenv("GIMXCONF")) { snprintf(file_path, sizeof(file_path), "%s", gimx_params.config_file); }
FILE * fp = gfile_fopen(file_path, "r");
if (fp == NULL)
{

View file

@ -0,0 +1,104 @@
<?xml version="1.0" encoding="UTF-8"?>
<root>
<controller id="1" dpi="0" type="DS4">
<configuration id="1">
<trigger type="" id="" name="" button_id="" switch_back="no" delay="0"/>
<mouse_options_list/>
<intensity_list/>
<button_map>
<button id="abs_axis_10" label="">
<device type="joystick" id="0" name="Sony Computer Entertainment Wireless Controller"/>
<event type="button" id="3"/>
</button>
<button id="abs_axis_9" label="">
<device type="joystick" id="0" name="Sony Computer Entertainment Wireless Controller"/>
<event type="button" id="0"/>
</button>
<button id="abs_axis_8" label="">
<device type="joystick" id="0" name="Sony Computer Entertainment Wireless Controller"/>
<event type="button" id="1"/>
</button>
<button id="abs_axis_7" label="">
<device type="joystick" id="0" name="Sony Computer Entertainment Wireless Controller"/>
<event type="button" id="2"/>
</button>
<button id="abs_axis_11" label="">
<device type="joystick" id="0" name="Sony Computer Entertainment Wireless Controller"/>
<event type="button" id="4"/>
</button>
<button id="abs_axis_12" label="">
<device type="joystick" id="0" name="Sony Computer Entertainment Wireless Controller"/>
<event type="button" id="5"/>
</button>
<button id="abs_axis_0" label="">
<device type="joystick" id="0" name="Sony Computer Entertainment Wireless Controller"/>
<event type="button" id="8"/>
</button>
<button id="abs_axis_1" label="">
<device type="joystick" id="0" name="Sony Computer Entertainment Wireless Controller"/>
<event type="button" id="9"/>
</button>
<button id="abs_axis_15" label="">
<device type="joystick" id="0" name="Sony Computer Entertainment Wireless Controller"/>
<event type="button" id="11"/>
</button>
<button id="abs_axis_16" label="">
<device type="joystick" id="0" name="Sony Computer Entertainment Wireless Controller"/>
<event type="button" id="12"/>
</button>
<button id="abs_axis_2" label="">
<device type="joystick" id="0" name="Sony Computer Entertainment Wireless Controller"/>
<event type="button" id="10"/>
</button>
<button id="abs_axis_3" label="">
<device type="joystick" id="0" name="Sony Computer Entertainment Wireless Controller"/>
<event type="button" id="13"/>
</button>
<button id="abs_axis_4" label="">
<device type="joystick" id="0" name="Sony Computer Entertainment Wireless Controller"/>
<event type="button" id="14"/>
</button>
<button id="abs_axis_5" label="">
<device type="joystick" id="0" name="Sony Computer Entertainment Wireless Controller"/>
<event type="button" id="15"/>
</button>
<button id="abs_axis_6" label="">
<device type="joystick" id="0" name="Sony Computer Entertainment Wireless Controller"/>
<event type="button" id="16"/>
</button>
</button_map>
<axis_map>
<axis id="rel_axis_0" label="">
<device type="joystick" id="0" name="Sony Computer Entertainment Wireless Controller"/>
<event type="axis" id="0" dead_zone="0" multiplier="0.004" exponent="1.00" shape=""/>
</axis>
<axis id="rel_axis_1" label="">
<device type="joystick" id="0" name="Sony Computer Entertainment Wireless Controller"/>
<event type="axis" id="1" dead_zone="0" multiplier="0.004" exponent="1.00" shape=""/>
</axis>
<axis id="rel_axis_2" label="">
<device type="joystick" id="0" name="Sony Computer Entertainment Wireless Controller"/>
<event type="axis" id="3" dead_zone="0" multiplier="0.004" exponent="1.00" shape=""/>
</axis>
<axis id="rel_axis_3" label="">
<device type="joystick" id="0" name="Sony Computer Entertainment Wireless Controller"/>
<event type="axis" id="4" dead_zone="0" multiplier="0.004" exponent="1.00" shape=""/>
</axis>
<axis id="abs_axis_13" label="">
<device type="joystick" id="0" name="Sony Computer Entertainment Wireless Controller"/>
<event type="axis" id="2" dead_zone="0" multiplier="0.008" exponent="1.00" shape=""/>
</axis>
<axis id="abs_axis_14" label="">
<device type="joystick" id="0" name="Sony Computer Entertainment Wireless Controller"/>
<event type="axis" id="5" dead_zone="0" multiplier="0.008" exponent="1.00" shape=""/>
</axis>
</axis_map>
<joystick_corrections_list/>
<force_feedback>
<device type="joystick" id="0" name="Sony Computer Entertainment Wireless Controller"/>
<inversion enable="no"/>
<gain rumble="0" constant="0" spring="0" damper="0"/>
</force_feedback>
</configuration>
</controller>
</root>

View file

@ -1,5 +1,5 @@
{ stdenv, lib, fetchFromGitHub, makeWrapper, curl, libusb1, xorg, libxml2 { stdenv, lib, fetchFromGitHub, makeWrapper, curl, libusb1, xorg, libxml2
, ncurses5, bluez, libmhash, gimxAuth ? "" }: , ncurses5, bluez, libmhash, gimxPDP ? false }:
let let
gimx-config = fetchFromGitHub { gimx-config = fetchFromGitHub {
@ -21,15 +21,21 @@ in stdenv.mkDerivation rec {
sha256 = "0265gg6q7ymg76fb4pjrfdwjd280b3zzry96qy92w0h411slph85"; sha256 = "0265gg6q7ymg76fb4pjrfdwjd280b3zzry96qy92w0h411slph85";
}; };
patches = [ ./conf.patch ];
nativeBuildInputs = [ makeWrapper ]; nativeBuildInputs = [ makeWrapper ];
buildInputs = [ buildInputs = [
curl libusb1 bluez libxml2 ncurses5 libmhash curl libusb1 bluez libxml2 ncurses5 libmhash
xorg.libX11 xorg.libXi xorg.libXext xorg.libX11 xorg.libXi xorg.libXext
]; ];
patches = [ ./env.patch ]; postPatch = lib.optionals gimxPDP ''
prePatch = (if gimxAuth == "afterglow" then (import ./variant.nix).afterglow substituteInPlace ./shared/gimxcontroller/include/x360.h \
else ""); --replace "0x045e" "0x0e6f" --replace "0x028e" "0x0213"
substituteInPlace ./loader/firmware/EMU360.hex \
--replace "1B210001" "1B211001" \
--replace "09210001" "09211001" \
--replace "5E048E021001" "6F0E13020001"
'';
makeFlags = "build-core"; makeFlags = "build-core";
installPhase = '' installPhase = ''
@ -51,19 +57,19 @@ in stdenv.mkDerivation rec {
mkdir -p $out/share mkdir -p $out/share
cp -r ./loader/firmware $out/share/firmware cp -r ./loader/firmware $out/share/firmware
cp -r ${gimx-config}/Linux $out/share/config cp -r ${gimx-config}/Linux $out/share/config
cp -r ${./custom} $out/share/custom
makeWrapper $out/bin/gimx $out/bin/gimx-with-confs \ makeWrapper $out/bin/gimx $out/bin/gimx-dualshock4 \
--set GIMXCONF $out/share/config --set GIMXCONF 1 --add-flags "--nograb" --add-flags "-p /dev/ttyUSB0" \
--add-flags "-c $out/share/config/Dualshock4.xml"
makeWrapper $out/bin/gimx $out/bin/gimx-test-ds4 \ makeWrapper $out/bin/gimx $out/bin/gimx-dualshock4-noff \
--set GIMXCONF $out/share/config \ --set GIMXCONF 1 --add-flags "--nograb" --add-flags "-p /dev/ttyUSB0" \
--add-flags "--nograb" --add-flags "--curses" \ --add-flags "-c $out/share/custom/Dualshock4.xml"
--add-flags "-p /dev/ttyUSB0" --add-flags "-c Dualshock4.xml"
makeWrapper $out/bin/gimx $out/bin/gimx-test-xone \ makeWrapper $out/bin/gimx $out/bin/gimx-xboxonepad \
--set GIMXCONF $out/share/config \ --set GIMXCONF 1 --add-flags "--nograb" --add-flags "-p /dev/ttyUSB0" \
--add-flags "--nograb" --add-flags "--curses" \ --add-flags "-c $out/share/config/XOnePadUsb.xml"
--add-flags "-p /dev/ttyUSB0" --add-flags "-c XOnePadUsb.xml"
''; '';
meta = with lib; { meta = with lib; {

View file

@ -1,30 +0,0 @@
--- a/core/config_reader.c
+++ b/core/config_reader.c
@@ -1353,8 +1353,10 @@ static int read_file(char* file_path)
int read_config_file(const char* file)
{
char file_path[PATH_MAX];
-
- snprintf(file_path, sizeof(file_path), "%s%s%s%s", gimx_params.homedir, GIMX_DIR, CONFIG_DIR, file);
+ char* e = getenv("GIMXCONF"); if (e) { snprintf(file_path, sizeof(file_path), "%s/%s", e, file); }
+ else {
+ snprintf(file_path, sizeof(file_path), "%s%s%s%s", gimx_params.homedir, GIMX_DIR, CONFIG_DIR, file);
+ }
if(read_file(file_path) == -1)
{
--- a/core/gimx.c
+++ b/core/gimx.c
@@ -190,8 +190,10 @@ void show_config()
}
char file_path[PATH_MAX];
-
- snprintf(file_path, sizeof(file_path), "%s%s%s%s", gimx_params.homedir, GIMX_DIR, CONFIG_DIR, gimx_params.config_file);
+ char* e = getenv("GIMXCONF"); if (e) { snprintf(file_path, sizeof(file_path), "%s/%s", e, gimx_params.config_file); }
+ else {
+ snprintf(file_path, sizeof(file_path), "%s%s%s%s", gimx_params.homedir, GIMX_DIR, CONFIG_DIR, gimx_params.config_file);
+ }
FILE * fp = gfile_fopen(file_path, "r");
if (fp == NULL)

View file

@ -1,14 +0,0 @@
{
afterglow = ''
substituteInPlace ./shared/gimxcontroller/include/x360.h \
--replace "0x045e" "0x0e6f" --replace "0x028e" "0x0213"
HEX="./loader/firmware/EMU360.hex"
sed -i '34s|1B2100|1B2110|' "$HEX"
sed -i '38s|092100|092110|' "$HEX"
sed -i '40s|5E048E021001|6F0E13020001|' "$HEX"
sed -i '34s|1C\r|0C\r|' "$HEX"
sed -i '38s|FE\r|EE\r|' "$HEX"
sed -i '40s|6D\r|DD\r|' "$HEX"
'';
}

View file

@ -7,19 +7,22 @@
stdenv.mkDerivation rec { stdenv.mkDerivation rec {
pname = "stella"; pname = "stella";
version = "6.5.3"; version = "6.6";
src = fetchFromGitHub { src = fetchFromGitHub {
owner = "stella-emu"; owner = "stella-emu";
repo = pname; repo = pname;
rev = version; rev = version;
hash = "sha256-Y9rEh9PZalQNj+d7OXN/8z5P8Hti4R3c2RL1BY+J1y4="; hash = "sha256-+ZvSCnnoKGyToSFqUQOArolFdgUcBBFNjFw8aoVDkYI=";
}; };
nativeBuildInputs = [ pkg-config ]; nativeBuildInputs = [
buildInputs = [ SDL2 ]; pkg-config
];
enableParallelBuilding = true; buildInputs = [
SDL2
];
meta = with lib;{ meta = with lib;{
homepage = "https://stella-emu.github.io/"; homepage = "https://stella-emu.github.io/";

View file

@ -22,41 +22,41 @@
"5.10": { "5.10": {
"patch": { "patch": {
"extra": "-hardened1", "extra": "-hardened1",
"name": "linux-hardened-5.10.78-hardened1.patch", "name": "linux-hardened-5.10.80-hardened1.patch",
"sha256": "06jbxx6vcd6xa0f8y80im14cdwb8dsk21kx18q7c77gjw628b1i1", "sha256": "1srm1kwh1fhc1rm7hwwyki48x1b4nq2zishscamsb82drnwl5pbs",
"url": "https://github.com/anthraxx/linux-hardened/releases/download/5.10.78-hardened1/linux-hardened-5.10.78-hardened1.patch" "url": "https://github.com/anthraxx/linux-hardened/releases/download/5.10.80-hardened1/linux-hardened-5.10.80-hardened1.patch"
}, },
"sha256": "03q5lrv8gr9hnm7984pxi9kwsvxrn21qwykj60amisi2wac6r05y", "sha256": "0ffvgxaq2ipylzavvgnnqk56pw2a6gy5zhhgdhsf8qs2cbvyhz27",
"version": "5.10.78" "version": "5.10.80"
}, },
"5.14": { "5.14": {
"patch": { "patch": {
"extra": "-hardened1", "extra": "-hardened1",
"name": "linux-hardened-5.14.18-hardened1.patch", "name": "linux-hardened-5.14.20-hardened1.patch",
"sha256": "1mk159nwkdd1kwsp9l7328x8mk7i5k3sw4nk858zr8izgllqijlp", "sha256": "0bnbwcayfcijgchnhyig9g9q334f4x1hwqns1zwg0wnsi3kxvcsb",
"url": "https://github.com/anthraxx/linux-hardened/releases/download/5.14.18-hardened1/linux-hardened-5.14.18-hardened1.patch" "url": "https://github.com/anthraxx/linux-hardened/releases/download/5.14.20-hardened1/linux-hardened-5.14.20-hardened1.patch"
}, },
"sha256": "1pr7qh2wjw7h6r3fixg9ia5r3na7vdb6b4sp9wnbifnqckahzwis", "sha256": "0icb14xmwijcamqbnj3v16cl1awmjzhg9cniw5gwwk6la1d7aiwj",
"version": "5.14.18" "version": "5.14.20"
}, },
"5.15": { "5.15": {
"patch": { "patch": {
"extra": "-hardened1", "extra": "-hardened1",
"name": "linux-hardened-5.15.2-hardened1.patch", "name": "linux-hardened-5.15.3-hardened1.patch",
"sha256": "15r7vkflcrj1hxfvhycqfflb3625br10qvn1ixhsv14xxdf3h39c", "sha256": "13d78f159bhd6f1fikrnf5madrfg9zrgg4zcmnjzmb1db1irh53n",
"url": "https://github.com/anthraxx/linux-hardened/releases/download/5.15.2-hardened1/linux-hardened-5.15.2-hardened1.patch" "url": "https://github.com/anthraxx/linux-hardened/releases/download/5.15.3-hardened1/linux-hardened-5.15.3-hardened1.patch"
}, },
"sha256": "0xdi799k15l7l9kxlq4qbp79mp1c38vxal4z4p9l5gl194x06d2n", "sha256": "1rh5zkany0gxwha74l8ivb2psykp236h8q56plas7dc7hghxmwx9",
"version": "5.15.2" "version": "5.15.3"
}, },
"5.4": { "5.4": {
"patch": { "patch": {
"extra": "-hardened1", "extra": "-hardened1",
"name": "linux-hardened-5.4.159-hardened1.patch", "name": "linux-hardened-5.4.160-hardened1.patch",
"sha256": "1hzs6sqdyzddz0qwq4b6c7rcihbjgzq73ng6fma408c27y72d6pi", "sha256": "06f7qnc21miz5yjrws3kbavj3v6ir8z3m87ljpnq55y6b73bxngy",
"url": "https://github.com/anthraxx/linux-hardened/releases/download/5.4.159-hardened1/linux-hardened-5.4.159-hardened1.patch" "url": "https://github.com/anthraxx/linux-hardened/releases/download/5.4.160-hardened1/linux-hardened-5.4.160-hardened1.patch"
}, },
"sha256": "0hw68yjf0c8kahwra8hq863318cbyqc89f429z75scmb9rgk466p", "sha256": "0n04nlg44l7p855lxkdz80x2avwm1pmrx1761cjmqv4w1qlq1c6l",
"version": "5.4.159" "version": "5.4.160"
} }
} }

View file

@ -3,7 +3,7 @@
with lib; with lib;
buildLinux (args // rec { buildLinux (args // rec {
version = "5.10.79"; version = "5.10.80";
# modDirVersion needs to be x.y.z, will automatically add .0 if needed # modDirVersion needs to be x.y.z, will automatically add .0 if needed
modDirVersion = if (modDirVersionArg == null) then concatStringsSep "." (take 3 (splitVersion "${version}.0")) else modDirVersionArg; modDirVersion = if (modDirVersionArg == null) then concatStringsSep "." (take 3 (splitVersion "${version}.0")) else modDirVersionArg;
@ -13,6 +13,6 @@ buildLinux (args // rec {
src = fetchurl { src = fetchurl {
url = "mirror://kernel/linux/kernel/v5.x/linux-${version}.tar.xz"; url = "mirror://kernel/linux/kernel/v5.x/linux-${version}.tar.xz";
sha256 = "1bd86ywff2mv73sybjdjlvvvhnmsv891jlm17h5nvqifdbhmb6g4"; sha256 = "0ffvgxaq2ipylzavvgnnqk56pw2a6gy5zhhgdhsf8qs2cbvyhz27";
}; };
} // (args.argsOverride or {})) } // (args.argsOverride or {}))

View file

@ -3,7 +3,7 @@
with lib; with lib;
buildLinux (args // rec { buildLinux (args // rec {
version = "5.14.18"; version = "5.14.20";
# modDirVersion needs to be x.y.z, will automatically add .0 if needed # modDirVersion needs to be x.y.z, will automatically add .0 if needed
modDirVersion = if (modDirVersionArg == null) then concatStringsSep "." (take 3 (splitVersion "${version}.0")) else modDirVersionArg; modDirVersion = if (modDirVersionArg == null) then concatStringsSep "." (take 3 (splitVersion "${version}.0")) else modDirVersionArg;
@ -13,6 +13,6 @@ buildLinux (args // rec {
src = fetchurl { src = fetchurl {
url = "mirror://kernel/linux/kernel/v5.x/linux-${version}.tar.xz"; url = "mirror://kernel/linux/kernel/v5.x/linux-${version}.tar.xz";
sha256 = "1pr7qh2wjw7h6r3fixg9ia5r3na7vdb6b4sp9wnbifnqckahzwis"; sha256 = "0icb14xmwijcamqbnj3v16cl1awmjzhg9cniw5gwwk6la1d7aiwj";
}; };
} // (args.argsOverride or { })) } // (args.argsOverride or { }))

View file

@ -3,7 +3,7 @@
with lib; with lib;
buildLinux (args // rec { buildLinux (args // rec {
version = "5.15.2"; version = "5.15.3";
# modDirVersion needs to be x.y.z, will automatically add .0 if needed # modDirVersion needs to be x.y.z, will automatically add .0 if needed
modDirVersion = if (modDirVersionArg == null) then concatStringsSep "." (take 3 (splitVersion "${version}.0")) else modDirVersionArg; modDirVersion = if (modDirVersionArg == null) then concatStringsSep "." (take 3 (splitVersion "${version}.0")) else modDirVersionArg;
@ -13,6 +13,6 @@ buildLinux (args // rec {
src = fetchurl { src = fetchurl {
url = "mirror://kernel/linux/kernel/v5.x/linux-${version}.tar.xz"; url = "mirror://kernel/linux/kernel/v5.x/linux-${version}.tar.xz";
sha256 = "0xdi799k15l7l9kxlq4qbp79mp1c38vxal4z4p9l5gl194x06d2n"; sha256 = "1rh5zkany0gxwha74l8ivb2psykp236h8q56plas7dc7hghxmwx9";
}; };
} // (args.argsOverride or { })) } // (args.argsOverride or { }))

View file

@ -3,7 +3,7 @@
with lib; with lib;
buildLinux (args // rec { buildLinux (args // rec {
version = "5.4.159"; version = "5.4.160";
# modDirVersion needs to be x.y.z, will automatically add .0 if needed # modDirVersion needs to be x.y.z, will automatically add .0 if needed
modDirVersion = if (modDirVersionArg == null) then concatStringsSep "." (take 3 (splitVersion "${version}.0")) else modDirVersionArg; modDirVersion = if (modDirVersionArg == null) then concatStringsSep "." (take 3 (splitVersion "${version}.0")) else modDirVersionArg;
@ -13,6 +13,6 @@ buildLinux (args // rec {
src = fetchurl { src = fetchurl {
url = "mirror://kernel/linux/kernel/v5.x/linux-${version}.tar.xz"; url = "mirror://kernel/linux/kernel/v5.x/linux-${version}.tar.xz";
sha256 = "0hw68yjf0c8kahwra8hq863318cbyqc89f429z75scmb9rgk466p"; sha256 = "0n04nlg44l7p855lxkdz80x2avwm1pmrx1761cjmqv4w1qlq1c6l";
}; };
} // (args.argsOverride or {})) } // (args.argsOverride or {}))

View file

@ -1,8 +1,8 @@
{ stdenv, lib, fetchsvn, linux { stdenv, lib, fetchsvn, linux
, scripts ? fetchsvn { , scripts ? fetchsvn {
url = "https://www.fsfla.org/svn/fsfla/software/linux-libre/releases/branches/"; url = "https://www.fsfla.org/svn/fsfla/software/linux-libre/releases/branches/";
rev = "18452"; rev = "18473";
sha256 = "0l9xnblid2nv6afp4d8g6kwlhwbw72cnqfaf2lix65bqc1ivdpl9"; sha256 = "0v30l950b35q4h6qb9p5x216ij4gd3cadf3fqb066wa34d4vx7yk";
} }
, ... , ...
}: }:

View file

@ -1,5 +0,0 @@
buildInputs="$mysql_jdbc"
source $stdenv/setup
mkdir -p $out/server/default/lib
ln -s $mysql_jdbc/share/java/mysql-connector-java.jar $out/server/default/lib/mysql-connector-java.jar

View file

@ -2,13 +2,21 @@
stdenv.mkDerivation { stdenv.mkDerivation {
pname = "jboss-mysql-jdbc"; pname = "jboss-mysql-jdbc";
inherit (mysql_jdbc) version;
builder = ./builder.sh; dontUnpack = true;
inherit mysql_jdbc; installPhase = ''
version = mysql_jdbc.version; runHook preInstall
meta = { mkdir -p $out/server/default/lib
platforms = lib.platforms.unix; ln -s $mysql_jdbc/share/java/mysql-connector-java.jar $out/server/default/lib/mysql-connector-java.jar
runHook postInstall
'';
meta = with lib; {
inherit (mysql_jdbc.meta) description license platforms homepage;
maintainers = with maintainers; [ ];
}; };
} }

View file

@ -2,20 +2,20 @@
buildGoModule rec { buildGoModule rec {
pname = "matrix-corporal"; pname = "matrix-corporal";
version = "2.1.0"; version = "2.2.0";
src = fetchFromGitHub { src = fetchFromGitHub {
owner = "devture"; owner = "devture";
repo = pname; repo = pname;
rev = version; rev = version;
sha256 = "sha256-u1ppwy+t2ewAH0/+R6e0Ja5A3PQG/lUy2b6kgcMVj8E="; sha256 = "sha256-KSKPTbF1hhzLyD+iL4+hW9EuV+xFYzSzHu1DSGXWm90=";
}; };
ldflags = [ ldflags = [
"-s" "-w" "-X main.GitCommit=${version}" "-X main.GitBranch=${version}" "-X main.GitState=nixpkgs" "-X main.GitSummary=${version}" "-X main.Version=${version}" "-s" "-w" "-X main.GitCommit=${version}" "-X main.GitBranch=${version}" "-X main.GitState=nixpkgs" "-X main.GitSummary=${version}" "-X main.Version=${version}"
]; ];
vendorSha256 = "sha256-YmUiGsg2UZfV6SHEPwnbmWPhGQ5teV+we9MBaJyrJr4="; vendorSha256 = "sha256-sC9JA6VRmHGuO3anaZW2Ih5QnRrUom9IIOE7yi3TTG8=";
meta = with lib; { meta = with lib; {
homepage = "https://github.com/devture/matrix-corporal"; homepage = "https://github.com/devture/matrix-corporal";

View file

@ -70,7 +70,6 @@ stdenv.mkDerivation rec {
# Get rid of sbin # Get rid of sbin
sed -i 's/sbin/bin/g' $out/lib/icinga2/safe-reload sed -i 's/sbin/bin/g' $out/lib/icinga2/safe-reload
sed -i "2s:.*:ICINGA2_BIN=$out/bin/icinga2:" $out/bin/icinga2
rm $out/sbin rm $out/sbin
${lib.optionalString withMysql '' ${lib.optionalString withMysql ''

View file

@ -15,13 +15,13 @@ let
]); ]);
in stdenvNoCC.mkDerivation rec { in stdenvNoCC.mkDerivation rec {
pname = "moonraker"; pname = "moonraker";
version = "unstable-2021-10-24"; version = "unstable-2021-11-13";
src = fetchFromGitHub { src = fetchFromGitHub {
owner = "Arksine"; owner = "Arksine";
repo = "moonraker"; repo = "moonraker";
rev = "1dd89bac4b7153b77eb4208cc151de17e612b6fc"; rev = "bed239c90a3b5fef5c6bf4559a774b9d09987c30";
sha256 = "dxtDXpviasvfjQuhtjfTjZ6OgKWAsHjaInlyYlpLzYY="; sha256 = "2gnW6dPsKMfoZnjs9F3opxRCeym+P43ZJOmGM44twfw=";
}; };
nativeBuildInputs = [ makeWrapper ]; nativeBuildInputs = [ makeWrapper ];

View file

@ -1,6 +1,6 @@
{ lib, stdenv, fetchurl, fetchFromGitHub, cmake, pkg-config, makeWrapper, ncurses, nixosTests { lib, stdenv, fetchurl, fetchFromGitHub, cmake, pkg-config, makeWrapper, ncurses, nixosTests
, libiconv, openssl, pcre2, boost, judy, bison, libxml2, libkrb5, linux-pam, curl , libiconv, openssl, pcre2, boost, judy, bison, libxml2, libkrb5, linux-pam, curl
, libaio, libevent, jemalloc, cracklib, systemd, perl , liburing, libevent, jemalloc, cracklib, systemd, perl
, bzip2, lz4, lzo, snappy, xz, zlib, zstd , bzip2, lz4, lzo, snappy, xz, zlib, zstd
, fixDarwinDylibNames, cctools, CoreServices, less , fixDarwinDylibNames, cctools, CoreServices, less
, numactl # NUMA Support , numactl # NUMA Support
@ -34,7 +34,7 @@ common = rec { # attributes common to both builds
buildInputs = [ buildInputs = [
ncurses openssl zlib pcre2 libiconv curl ncurses openssl zlib pcre2 libiconv curl
] ++ optionals stdenv.hostPlatform.isLinux [ libaio systemd libkrb5 ] ] ++ optionals stdenv.hostPlatform.isLinux [ liburing systemd libkrb5 ]
++ optionals stdenv.hostPlatform.isDarwin [ perl cctools CoreServices ] ++ optionals stdenv.hostPlatform.isDarwin [ perl cctools CoreServices ]
++ optional (!stdenv.hostPlatform.isDarwin) [ jemalloc ]; ++ optional (!stdenv.hostPlatform.isDarwin) [ jemalloc ];

View file

@ -0,0 +1,151 @@
{ stdenv
, lib
, fetchFromGitHub
, fetchpatch
, autoconf
, automake
, bison
, cmake
, libtool
, civetweb
, coreutils
, curl
, flex
, gnutls
, jemalloc
, libconfig
, libdaemon
, libev
, libgcrypt
, libinjection
, libmicrohttpd_0_9_70
, lz4
, nlohmann_json
, openssl
, pcre
, perl
, prometheus-cpp
, python
, re2
, zlib
}:
stdenv.mkDerivation rec {
pname = "proxysql";
version = "2.3.2";
src = fetchFromGitHub {
owner = "sysown";
repo = pname;
rev = version;
sha256 = "13l4bf7zhfjy701qx9hfr40vlsm4d0pbfmwr5d6lf514xznvsnzl";
};
patches = [
./makefiles.patch
./dont-phone-home.patch
(fetchpatch {
url = "https://github.com/sysown/proxysql/pull/3402.patch";
sha256 = "079jjhvx32qxjczmsplkhzjn9gl7c2a3famssczmjv2ffs65vibi";
})
];
nativeBuildInputs = [
autoconf
automake
cmake
libtool
perl
python
];
buildInputs = [
bison
curl
flex
gnutls
libgcrypt
openssl
zlib
];
GIT_VERSION = version;
dontConfigure = true;
# replace and fix some vendored dependencies
preBuild = /* sh */ ''
pushd deps
function replace_dep() {
local folder="$1"
local src="$2"
local symlink="$3"
local name="$4"
pushd "$folder"
rm -rf "$symlink"
if [ -d "$src" ]; then
cp -R "$src"/. "$symlink"
chmod -R u+w "$symlink"
else
tar xf "$src"
ln -s "$name" "$symlink"
fi
popd
}
${lib.concatMapStringsSep "\n"
(x: ''replace_dep "${x.f}" "${x.p.src}" "${x.p.pname or (builtins.parseDrvName x.p.name).name}" "${x.p.name}"'') [
{ f = "curl"; p = curl; }
{ f = "jemalloc"; p = jemalloc; }
{ f = "libconfig"; p = libconfig; }
{ f = "libdaemon"; p = libdaemon; }
{ f = "libev"; p = libev; }
{ f = "libinjection"; p = libinjection; }
{ f = "libmicrohttpd"; p = libmicrohttpd_0_9_70; }
{ f = "libssl"; p = openssl; }
{ f = "lz4"; p = lz4; }
{ f = "pcre"; p = pcre; }
{ f = "prometheus-cpp"; p = prometheus-cpp; }
{ f = "re2"; p = re2; }
]}
pushd libhttpserver
tar xf libhttpserver-0.18.1.tar.gz
sed -i s_/bin/pwd_${coreutils}/bin/pwd_g libhttpserver/configure.ac
popd
pushd json
rm json.hpp
ln -s ${nlohmann_json.src}/single_include/nlohmann/json.hpp .
popd
pushd prometheus-cpp/prometheus-cpp/3rdparty
replace_dep . "${civetweb.src}" civetweb
popd
sed -i s_/usr/bin/env_${coreutils}/bin/env_g libssl/openssl/config
popd
patchShebangs .
'';
preInstall = ''
mkdir -p $out/{etc,bin,lib/systemd/system}
'';
postInstall = ''
sed -i s_/usr/bin/proxysql_$out/bin/proxysql_ $out/lib/systemd/system/*.service
'';
meta = with lib; {
homepage = "https://proxysql.com/";
broken = stdenv.isDarwin;
description = "High-performance MySQL proxy";
license = with licenses; [ gpl3Only ];
maintainers = with maintainers; [ ajs124 ];
};
}

View file

@ -0,0 +1,12 @@
diff --git a/src/main.cpp b/src/main.cpp
index 39dfaa24..634b004b 100644
--- a/src/main.cpp
+++ b/src/main.cpp
@@ -237,6 +237,7 @@ static char * main_check_latest_version() {
void * main_check_latest_version_thread(void *arg) {
+ return NULL;
char * latest_version = main_check_latest_version();
if (latest_version) {
if (

View file

@ -0,0 +1,172 @@
--- a/Makefile
+++ b/Makefile
@@ -46,11 +46,7 @@ endif
export MAKEOPT=-j ${NPROCS}
-ifeq ($(wildcard /usr/lib/systemd/system), /usr/lib/systemd/system)
- SYSTEMD=1
-else
- SYSTEMD=0
-endif
+SYSTEMD=1
USERCHECK := $(shell getent passwd proxysql)
GROUPCHECK := $(shell getent group proxysql)
@@ -523,16 +519,10 @@ cleanbuild:
.PHONY: install
install: src/proxysql
- install -m 0755 src/proxysql /usr/bin
- install -m 0600 etc/proxysql.cnf /etc
- if [ ! -d /var/lib/proxysql ]; then mkdir /var/lib/proxysql ; fi
-ifeq ($(findstring proxysql,$(USERCHECK)),)
- @echo "Creating proxysql user and group"
- useradd -r -U -s /bin/false proxysql
-endif
+ install -m 0755 src/proxysql $(out)/bin
+ install -m 0600 etc/proxysql.cnf $(out)/etc
ifeq ($(SYSTEMD), 1)
- install -m 0644 systemd/system/proxysql.service /usr/lib/systemd/system/
- systemctl enable proxysql.service
+ install -m 0644 systemd/system/proxysql.service $(out)/lib/systemd/system/
else
install -m 0755 etc/init.d/proxysql /etc/init.d
ifeq ($(DISTRO),"CentOS Linux")
--- a/deps/Makefile
+++ b/deps/Makefile
@@ -40,22 +40,10 @@ endif
libinjection/libinjection/src/libinjection.a:
- cd libinjection && rm -rf libinjection-3.10.0 || true
- cd libinjection && tar -zxf libinjection-3.10.0.tar.gz
- sed -i -e 's/python/python2/' libinjection/libinjection-3.10.0/src/make_parens.py
- sed -i -e 's/python/python2/' libinjection/libinjection-3.10.0/src/sqlparse_map.py
- sed -i -e 's/python/python2/' libinjection/libinjection-3.10.0/src/sqlparse2c.py
cd libinjection/libinjection && CC=${CC} CXX=${CXX} ${MAKE}
libinjection: libinjection/libinjection/src/libinjection.a
libssl/openssl/libssl.a:
-# cd libssl && rm -rf openssl-1.1.0h || true
-# cd libssl && tar -zxf openssl-1.1.0h.tar.gz
- cd libssl && rm -rf openssl-1.1.1d || true
- cd libssl && rm -rf openssl-1.1.0h || true
- cd libssl && rm -rf openssl-1.1.1g || true
- cd libssl && rm -rf openssl-1.1.1j || true
- cd libssl && tar -zxf openssl-1.1.1j.tar.gz
cd libssl/openssl && ./config no-ssl3
cd libssl/openssl && CC=${CC} CXX=${CXX} ${MAKE}
cd libssl/openssl && ln -s . lib # curl wants this path
@@ -70,9 +58,6 @@ ifeq ($(MIN_VERSION),$(lastword $(sort $(GCC_VERSION) $(MIN_VERSION))))
endif
libhttpserver/libhttpserver/build/src/.libs/libhttpserver.a: libmicrohttpd/libmicrohttpd/src/microhttpd/.libs/libmicrohttpd.a
- cd libhttpserver && rm -rf libhttpserver-master_20191121 || true
- cd libhttpserver && rm -rf libhttpserver-0.18.1 || true
- cd libhttpserver && tar -zxf libhttpserver-0.18.1.tar.gz
ifeq ($(REQUIRE_PATCH), true)
cd libhttpserver/libhttpserver && patch src/httpserver/basic_auth_fail_response.hpp < ../basic_auth_fail_response.hpp.patch
cd libhttpserver/libhttpserver && patch src/httpserver/create_webserver.hpp < ../create_webserver.hpp.patch
@@ -94,34 +79,15 @@ endif
libhttpserver: libhttpserver/libhttpserver/build/src/.libs/libhttpserver.a
libev/libev/.libs/libev.a:
- cd libev && rm -rf libev-4.24 || true
- cd libev && tar -zxf libev-4.24.tar.gz
cd libev/libev && ./configure
cd libev/libev && CC=${CC} CXX=${CXX} ${MAKE}
ev: libev/libev/.libs/libev.a
curl/curl/lib/.libs/libcurl.a: libssl/openssl/libssl.a
- cd curl && rm -rf curl-7.57.0 || true
- cd curl && rm -rf curl-7.77.0 || true
- cd curl && tar -zxf curl-7.77.0.tar.gz
- #cd curl/curl && ./configure --disable-debug --disable-ftp --disable-ldap --disable-ldaps --disable-rtsp --disable-proxy --disable-dict --disable-telnet --disable-tftp --disable-pop3 --disable-imap --disable-smb --disable-smtp --disable-gopher --disable-manual --disable-ipv6 --disable-sspi --disable-crypto-auth --disable-ntlm-wb --disable-tls-srp --without-nghttp2 --without-libidn2 --without-libssh2 --without-brotli --with-ssl=$(shell pwd)/../../libssl/openssl/ && CC=${CC} CXX=${CXX} ${MAKE}
cd curl/curl && ./configure --disable-debug --disable-ftp --disable-ldap --disable-ldaps --disable-rtsp --disable-proxy --disable-dict --disable-telnet --disable-tftp --disable-pop3 --disable-imap --disable-smb --disable-smtp --disable-gopher --disable-manual --disable-ipv6 --disable-sspi --disable-ntlm-wb --disable-tls-srp --without-nghttp2 --without-libidn2 --without-libssh2 --without-brotli --without-librtmp --without-libpsl --with-ssl=$(shell pwd)/libssl/openssl/ --enable-shared=no && CC=${CC} CXX=${CXX} ${MAKE}
curl: curl/curl/lib/.libs/libcurl.a
libmicrohttpd/libmicrohttpd/src/microhttpd/.libs/libmicrohttpd.a:
- cd libmicrohttpd && rm -rf libmicrohttpd-0.9.55 || true
- cd libmicrohttpd && rm -rf libmicrohttpd-0.9.68 || true
- cd libmicrohttpd && rm -f libmicrohttpd || true
-ifeq ($(CENTOSVER),6)
- cd libmicrohttpd && ln -s libmicrohttpd-0.9.55 libmicrohttpd
- cd libmicrohttpd && tar -zxf libmicrohttpd-0.9.55.tar.gz
-else
- cd libmicrohttpd && ln -s libmicrohttpd-0.9.68 libmicrohttpd
- cd libmicrohttpd && tar -zxf libmicrohttpd-0.9.68.tar.gz
-endif
-ifeq ($(OS),Darwin)
- cd libmicrohttpd/libmicrohttpd && patch src/microhttpd/mhd_sockets.c < ../mhd_sockets.c-issue-5977.patch
-endif
cd libmicrohttpd/libmicrohttpd && ./configure --enable-https && CC=${CC} CXX=${CXX} ${MAKE}
microhttpd: libmicrohttpd/libmicrohttpd/src/microhttpd/.libs/libmicrohttpd.a
@@ -132,8 +98,6 @@ cityhash/cityhash/src/.libs/libcityhash.a:
cityhash: cityhash/cityhash/src/.libs/libcityhash.a
lz4/lz4/liblz4.a:
- cd lz4 && rm -rf lz4-1.7.5 || true
- cd lz4 && tar -zxf lz4-1.7.5.tar.gz
cd lz4/lz4 && CC=${CC} CXX=${CXX} ${MAKE}
lz4: lz4/lz4/liblz4.a
@@ -148,16 +112,12 @@ clickhouse-cpp: clickhouse-cpp/clickhouse-cpp/clickhouse/libclickhouse-cpp-lib.a
libdaemon/libdaemon/libdaemon/.libs/libdaemon.a:
- cd libdaemon && rm -rf libdaemon-0.14
- cd libdaemon && tar -zxf libdaemon-0.14.tar.gz
cd libdaemon/libdaemon && cp ../config.guess . && chmod +x config.guess && ./configure --disable-examples
cd libdaemon/libdaemon && CC=${CC} CXX=${CXX} ${MAKE}
libdaemon: libdaemon/libdaemon/libdaemon/.libs/libdaemon.a
jemalloc/jemalloc/lib/libjemalloc.a:
- cd jemalloc && rm -rf jemalloc-5.2.0
- cd jemalloc && tar -jxf jemalloc-5.2.0.tar.bz2
cd jemalloc/jemalloc && patch src/jemalloc.c < ../issue823.520.patch
cd jemalloc/jemalloc && patch src/jemalloc.c < ../issue2358.patch
cd jemalloc/jemalloc && ./configure ${MYJEOPT}
@@ -210,17 +170,12 @@ sqlite3/sqlite3/sqlite3.o:
sqlite3: sqlite3/sqlite3/sqlite3.o
libconfig/libconfig/lib/.libs/libconfig++.a:
- cd libconfig && rm -rf libconfig-1.7.2
- cd libconfig && tar -zxf libconfig-1.7.2.tar.gz
cd libconfig/libconfig && ./configure --disable-examples
cd libconfig/libconfig && CC=${CC} CXX=${CXX} ${MAKE}
libconfig: libconfig/libconfig/lib/.libs/libconfig++.a
prometheus-cpp/prometheus-cpp/lib/libprometheus-cpp-core.a:
- cd prometheus-cpp && rm -rf prometheus-cpp-0.9.0
- cd prometheus-cpp && tar -zxf v0.9.0.tar.gz
- cd prometheus-cpp && tar --strip-components=1 -zxf civetweb-v1.11.tar.gz -C prometheus-cpp/3rdparty/civetweb
cd prometheus-cpp/prometheus-cpp && patch -p1 < ../serial_exposer.patch
cd prometheus-cpp/prometheus-cpp && patch -p0 < ../registry_counters_reset.patch
cd prometheus-cpp/prometheus-cpp && cmake . -DBUILD_SHARED_LIBS=OFF -DENABLE_TESTING=OFF -DENABLE_PUSH=OFF
@@ -229,12 +184,6 @@ prometheus-cpp/prometheus-cpp/lib/libprometheus-cpp-core.a:
prometheus-cpp: prometheus-cpp/prometheus-cpp/lib/libprometheus-cpp-core.a
re2/re2/obj/libre2.a:
- cd re2 && rm -rf re2-2018-07-01 || true
- cd re2 && rm -rf re2-2020-07-06 || true
-# cd re2 && tar -zxf re2-20140304.tgz
- cd re2 && tar -zxf re2.tar.gz
-# cd re2/re2 && sed -i -e 's/-O3 -g /-O3 -fPIC /' Makefile
-# cd re2 && patch re2/util/mutex.h < mutex.h.patch
cd re2/re2 && sed -i -e 's/-O3 /-O3 -fPIC -DMEMORY_SANITIZER -DRE2_ON_VALGRIND /' Makefile
cd re2/re2 && sed -i -e 's/RE2_CXXFLAGS?=-std=c++11 /RE2_CXXFLAGS?=-std=c++11 -fPIC /' Makefile
cd re2/re2 && CC=${CC} CXX=${CXX} ${MAKE}
@@ -242,9 +191,6 @@ re2/re2/obj/libre2.a:
re2: re2/re2/obj/libre2.a
pcre/pcre/.libs/libpcre.a:
- cd pcre && rm -rf pcre-8.39
- cd pcre && rm -rf pcre-8.44
- cd pcre && tar -zxf pcre-8.44.tar.gz
cd pcre/pcre && ./configure
cd pcre/pcre && CC=${CC} CXX=${CXX} ${MAKE}
pcre: pcre/pcre/.libs/libpcre.a

View file

@ -0,0 +1,22 @@
{ lib, stdenv, fetchFromGitHub, buildGoModule }:
buildGoModule rec {
pname = "webdav";
version = "4.1.1";
src = fetchFromGitHub {
owner = "hacdias";
repo = "webdav";
rev = "v${version}";
sha256 = "0jnh1bhc98vcx2vm6hmgak6zwfc0rx898qcdjcca5y9dni4120aq";
};
vendorSha256 = "19nhz6z8h4fxpy4gjx7zz69si499jak7qj9yb17x32lar5m88gvb";
meta = with lib; {
description = "Simple WebDAV server";
homepage = "https://github.com/hacdias/webdav";
license = licenses.mit;
maintainers = with maintainers; [ pengmeiyu ];
};
}

View file

@ -1,24 +1,31 @@
{ lib, stdenv, fetchurl, fetchpatch { lib
, stdenv
, fetchurl
, fetchpatch
, ncurses , ncurses
}: }:
stdenv.mkDerivation rec { stdenv.mkDerivation rec {
pname = "tcsh"; pname = "tcsh";
version = "6.22.04"; version = "6.23.00";
src = fetchurl { src = fetchurl {
urls = [ urls = [
"http://ftp.funet.fi/pub/mirrors/ftp.astron.com/pub/tcsh/${pname}-${version}.tar.gz" "https://astron.com/pub/tcsh/old/${pname}-${version}.tar.gz"
"https://astron.com/pub/tcsh/${pname}-${version}.tar.gz"
"http://ftp.funet.fi/pub/mirrors/ftp.astron.com/pub/tcsh/old/${pname}-${version}.tar.gz" "http://ftp.funet.fi/pub/mirrors/ftp.astron.com/pub/tcsh/old/${pname}-${version}.tar.gz"
"ftp://ftp.astron.com/pub/tcsh/${pname}-${version}.tar.gz" "http://ftp.funet.fi/pub/mirrors/ftp.astron.com/pub/tcsh/${pname}-${version}.tar.gz"
"ftp://ftp.astron.com/pub/tcsh/old/${pname}-${version}.tar.gz"
"ftp://ftp.funet.fi/pub/unix/shells/tcsh/${pname}-${version}.tar.gz"
"ftp://ftp.funet.fi/pub/unix/shells/tcsh/old/${pname}-${version}.tar.gz" "ftp://ftp.funet.fi/pub/unix/shells/tcsh/old/${pname}-${version}.tar.gz"
"ftp://ftp.funet.fi/pub/unix/shells/tcsh/${pname}-${version}.tar.gz"
"ftp://ftp.astron.com/pub/tcsh/old/${pname}-${version}.tar.gz"
"ftp://ftp.astron.com/pub/tcsh/${pname}-${version}.tar.gz"
]; ];
hash = "sha256-6xY1YkMhjDLzngcljXK/iyHmLOlLsOipXjGLFROX4jE="; hash = "sha256-Tr6y8zYz0RXZU19VTGUahSMEDY2R5d4zP7LuBFuOAB4=";
}; };
buildInputs = [ ncurses ]; buildInputs = [
ncurses
];
patches = lib.optional stdenv.hostPlatform.isMusl patches = lib.optional stdenv.hostPlatform.isMusl
(fetchpatch { (fetchpatch {
@ -47,7 +54,5 @@ stdenv.mkDerivation rec {
platforms = platforms.unix; platforms = platforms.unix;
}; };
passthru = { passthru.shellPath = "/bin/tcsh";
shellPath = "/bin/tcsh";
};
} }

View file

@ -0,0 +1,27 @@
{ lib, stdenv, fetchFromGitHub }:
stdenv.mkDerivation rec {
pname = "zsh-vi-mode";
version = "0.8.5";
src = fetchFromGitHub {
owner = "jeffreytse";
repo = pname;
rev = "v${version}";
sha256 = "EOYqHh0rcgoi26eopm6FTl81ehak5kXMmzNcnJDH8/E=";
};
dontBuild = true;
installPhase = ''
mkdir -p $out/share/${pname}
cp *.zsh $out/share/${pname}/
'';
meta = with lib; {
homepage = "https://github.com/jeffreytse/zsh-vi-mode";
license = licenses.mit;
description = "A better and friendly vi(vim) mode plugin for ZSH.";
maintainers = with maintainers; [ kyleondy ];
};
}

View file

@ -5,13 +5,13 @@
stdenv.mkDerivation rec { stdenv.mkDerivation rec {
pname = "ocserv"; pname = "ocserv";
version = "0.12.6"; version = "1.1.2";
src = fetchFromGitLab { src = fetchFromGitLab {
owner = "openconnect"; owner = "openconnect";
repo = "ocserv"; repo = "ocserv";
rev = "ocserv_${lib.replaceStrings [ "." ] [ "_" ] version}"; rev = version;
sha256 = "0k7sx9sg8akxwfdl51cvdqkdrx9qganqddgri2yhcgznc3f3pz5b"; sha256 = "gXolG4zTnJpgI32SuudhvlP9snI0k4Oa1mqE7eGbdE0=";
}; };
nativeBuildInputs = [ autoreconfHook pkg-config ]; nativeBuildInputs = [ autoreconfHook pkg-config ];
@ -21,6 +21,6 @@ stdenv.mkDerivation rec {
homepage = "https://gitlab.com/openconnect/ocserv"; homepage = "https://gitlab.com/openconnect/ocserv";
license = licenses.gpl2; license = licenses.gpl2;
description = "This program is openconnect VPN server (ocserv), a server for the openconnect VPN client"; description = "This program is openconnect VPN server (ocserv), a server for the openconnect VPN client";
maintainers = with maintainers; [ ]; maintainers = with maintainers; [ neverbehave ];
}; };
} }

View file

@ -0,0 +1,29 @@
{ stdenv
, lib
, fetchFromGitHub
, wireguard-tools
}:
stdenv.mkDerivation {
pname = "wg-friendly-peer-names";
version = "unstable-2021-11-08";
src = fetchFromGitHub {
owner = "FlyveHest";
repo = "wg-friendly-peer-names";
rev = "66b9b6b74ec77b9fec69b2a58296635321d4f5f1";
sha256 = "pH/b5rCHIqLxz/Fnx+Dm0m005qAUWBsczSU9vGEQ2RQ=";
};
installPhase = ''
install -D wgg.sh $out/bin/wgg
'';
meta = with lib; {
homepage = "https://github.com/FlyveHest/wg-friendly-peer-names";
description = "Small shellscript that makes it possible to give peers a friendlier and more readable name in the `wg` peer list";
license = licenses.mit;
platforms = wireguard-tools.meta.platforms;
maintainers = with maintainers; [ mkg20001 ];
};
}

View file

@ -11,16 +11,16 @@
buildGoModule rec { buildGoModule rec {
pname = "step-ca"; pname = "step-ca";
version = "0.17.4"; version = "0.17.6";
src = fetchFromGitHub { src = fetchFromGitHub {
owner = "smallstep"; owner = "smallstep";
repo = "certificates"; repo = "certificates";
rev = "v${version}"; rev = "v${version}";
sha256 = "sha256-X4dOrd/wxtYLw3C4Lj88RV/J6CEkmsOeqtiVX/6VFHg="; sha256 = "sha256-hZdsxSEfb+DwnVOnnp9cT6diQWkFVPSa/T8YDsGlg3k=";
}; };
vendorSha256 = "sha256-/8Glo+U8MS8Y8mKECgTAB7JWmp/rjMQhG4nZkNs+Zgs="; vendorSha256 = "sha256-OcnqMEotc18rX6BYs3oj8+83MRf7iJJNwjjXUQ5xfp4=";
ldflags = [ "-buildid=" ]; ldflags = [ "-buildid=" ];

View file

@ -8732,6 +8732,8 @@ with pkgs;
proxify = callPackage ../tools/networking/proxify { }; proxify = callPackage ../tools/networking/proxify { };
proxysql = callPackage ../servers/sql/proxysql { };
proxytunnel = callPackage ../tools/misc/proxytunnel { proxytunnel = callPackage ../tools/misc/proxytunnel {
openssl = openssl_1_0_2; openssl = openssl_1_0_2;
}; };
@ -10533,6 +10535,8 @@ with pkgs;
wireguard-tools = callPackage ../tools/networking/wireguard-tools { }; wireguard-tools = callPackage ../tools/networking/wireguard-tools { };
wg-friendly-peer-names = callPackage ../tools/networking/wg-friendly-peer-names { };
woff2 = callPackage ../development/web/woff2 { }; woff2 = callPackage ../development/web/woff2 { };
woof = callPackage ../tools/misc/woof { }; woof = callPackage ../tools/misc/woof { };
@ -11113,6 +11117,8 @@ with pkgs;
zsh-command-time = callPackage ../shells/zsh/zsh-command-time { }; zsh-command-time = callPackage ../shells/zsh/zsh-command-time { };
zsh-vi-mode = callPackage ../shells/zsh/zsh-vi-mode {};
zsh-you-should-use = callPackage ../shells/zsh/zsh-you-should-use { }; zsh-you-should-use = callPackage ../shells/zsh/zsh-you-should-use { };
zsh-z = callPackage ../shells/zsh/zsh-z { }; zsh-z = callPackage ../shells/zsh/zsh-z { };
@ -15886,6 +15892,8 @@ with pkgs;
cmrt = callPackage ../development/libraries/cmrt { }; cmrt = callPackage ../development/libraries/cmrt { };
coeurl = callPackage ../development/libraries/coeurl { };
cogl = callPackage ../development/libraries/cogl { }; cogl = callPackage ../development/libraries/cogl { };
coin3d = callPackage ../development/libraries/coin3d { }; coin3d = callPackage ../development/libraries/coin3d { };
@ -18359,7 +18367,9 @@ with pkgs;
libversion = callPackage ../development/libraries/libversion { }; libversion = callPackage ../development/libraries/libversion { };
libvirt = callPackage ../development/libraries/libvirt { }; libvirt = callPackage ../development/libraries/libvirt {
inherit (darwin.apple_sdk.frameworks) Carbon AppKit;
};
libvirt_5_9_0 = callPackage ../development/libraries/libvirt/5.9.0.nix { }; libvirt_5_9_0 = callPackage ../development/libraries/libvirt/5.9.0.nix { };
libvirt-glib = callPackage ../development/libraries/libvirt-glib { }; libvirt-glib = callPackage ../development/libraries/libvirt-glib { };
@ -20117,7 +20127,7 @@ with pkgs;
}; };
wxSVG = callPackage ../development/libraries/wxSVG { wxSVG = callPackage ../development/libraries/wxSVG {
wxGTK = wxGTK30; wxGTK = wxGTK30-gtk3;
}; };
wtk = callPackage ../development/libraries/wtk { }; wtk = callPackage ../development/libraries/wtk { };
@ -21611,6 +21621,8 @@ with pkgs;
wallabag = callPackage ../servers/web-apps/wallabag { }; wallabag = callPackage ../servers/web-apps/wallabag { };
webdav = callPackage ../servers/webdav { };
webmetro = callPackage ../servers/webmetro { }; webmetro = callPackage ../servers/webmetro { };
wsdd = callPackage ../servers/wsdd { }; wsdd = callPackage ../servers/wsdd { };
@ -26424,6 +26436,10 @@ with pkgs;
}); });
libreoffice-still-unwrapped = libreoffice-still.libreoffice; libreoffice-still-unwrapped = libreoffice-still.libreoffice;
libresprite = callPackage ../applications/editors/libresprite {
inherit (darwin.apple_sdk.frameworks) AppKit Cocoa Foundation;
};
libvmi = callPackage ../development/libraries/libvmi { }; libvmi = callPackage ../development/libraries/libvmi { };
libutp = callPackage ../applications/networking/p2p/libutp { }; libutp = callPackage ../applications/networking/p2p/libutp { };
@ -28116,6 +28132,8 @@ with pkgs;
dropbox-cli = callPackage ../applications/networking/dropbox/cli.nix { }; dropbox-cli = callPackage ../applications/networking/dropbox/cli.nix { };
synology-drive-client = callPackage ../applications/networking/synology-drive-client { };
maestral = with python3Packages; toPythonApplication maestral; maestral = with python3Packages; toPythonApplication maestral;
maestral-gui = libsForQt5.callPackage ../applications/networking/maestral-qt { }; maestral-gui = libsForQt5.callPackage ../applications/networking/maestral-qt { };
@ -29603,7 +29621,7 @@ with pkgs;
aeon = callPackage ../applications/blockchains/aeon { }; aeon = callPackage ../applications/blockchains/aeon { };
alfis = callPackage ../applications/blockchains/alfis { alfis = callPackage ../applications/blockchains/alfis {
inherit (darwin.apple_sdk.frameworks) Cocoa WebKit; inherit (darwin.apple_sdk.frameworks) Cocoa Security WebKit;
inherit (gnome) zenity; inherit (gnome) zenity;
}; };
alfis-nogui = alfis.override { alfis-nogui = alfis.override {
@ -30170,7 +30188,6 @@ with pkgs;
gemrb = callPackage ../games/gemrb { }; gemrb = callPackage ../games/gemrb { };
gimx = callPackage ../games/gimx {}; gimx = callPackage ../games/gimx {};
gimx-afterglow = lowPrio (gimx.override { gimxAuth = "afterglow"; });
gl117 = callPackage ../games/gl-117 {}; gl117 = callPackage ../games/gl-117 {};