Merge branch 'staging-next' into staging

Conflicts:
- pkgs/development/python-modules/pyqt/6.x.nix:
	NIX_CFLAGS_COMPILE changed
	cb6f270be2 version bump removes flag no longer necessary
	b7a8d59e3a adds flag to fix builds on Darwin, not sure if needed after the bump
This commit is contained in:
Jan Tojnar 2023-11-25 19:27:24 +01:00
commit 2e92094b86
72 changed files with 737 additions and 289 deletions

View File

@ -125,12 +125,7 @@ in {
'';
example = literalExpression ''
{
maps = pkgs.fetchNextcloudApp {
name = "maps";
sha256 = "007y80idqg6b6zk6kjxg4vgw0z8fsxs9lajnv49vv1zjy6jx2i1i";
url = "https://github.com/nextcloud/maps/releases/download/v0.1.9/maps-0.1.9.tar.gz";
version = "0.1.9";
};
inherit (pkgs.nextcloud25Packages.apps) mail calendar contact;
phonetrack = pkgs.fetchNextcloudApp {
name = "phonetrack";
sha256 = "0qf366vbahyl27p9mshfma1as4nvql6w75zy2zk5xwwbp343vsbc";

View File

@ -321,6 +321,7 @@ in {
mimir = handleTest ./mimir.nix {};
garage = handleTest ./garage {};
gemstash = handleTest ./gemstash.nix {};
geoserver = runTest ./geoserver.nix;
gerrit = handleTest ./gerrit.nix {};
geth = handleTest ./geth.nix {};
ghostunnel = handleTest ./ghostunnel.nix {};

24
nixos/tests/geoserver.nix Normal file
View File

@ -0,0 +1,24 @@
{ pkgs, lib, ... }: {
name = "geoserver";
meta = {
maintainers = with lib; [ teams.geospatial.members ];
};
nodes = {
machine = { pkgs, ... }: {
virtualisation.diskSize = 2 * 1024;
environment.systemPackages = [ pkgs.geoserver ];
};
};
testScript = ''
start_all()
machine.execute("${pkgs.geoserver}/bin/geoserver-startup > /dev/null 2>&1 &")
machine.wait_until_succeeds("curl --fail --connect-timeout 2 http://localhost:8080/geoserver", timeout=60)
machine.succeed("curl --fail --connect-timeout 2 http://localhost:8080/geoserver/ows?service=WMS&version=1.3.0&request=GetCapabilities")
'';
}

View File

@ -3348,12 +3348,12 @@ final: prev:
fidget-nvim = buildVimPlugin {
pname = "fidget.nvim";
version = "2023-11-09";
version = "2023-11-20";
src = fetchFromGitHub {
owner = "j-hui";
repo = "fidget.nvim";
rev = "2f7c08f45639a64a5c0abcf67321d52c3f499ae6";
sha256 = "0x4vbqbpzsw1pkqnm6l8hymm35vnfpl5vdaa91g6890q9q57csgh";
rev = "a1493d94ecb3464ab3ae4d5855765310566dace4";
sha256 = "sha256-701UBfmtSH/XyEq80EfoGlukLpAVdwRGHpIs4AcVGSY=";
};
meta.homepage = "https://github.com/j-hui/fidget.nvim/";
};

View File

@ -278,7 +278,7 @@ https://github.com/freddiehaddad/feline.nvim/,,
https://github.com/bakpakin/fennel.vim/,,
https://github.com/lambdalisue/fern.vim/,,
https://github.com/wincent/ferret/,,
https://github.com/j-hui/fidget.nvim/,legacy,
https://github.com/j-hui/fidget.nvim/,,
https://github.com/bogado/file-line/,,
https://github.com/glacambre/firenvim/,HEAD,
https://github.com/andviro/flake8-vim/,,

View File

@ -10,13 +10,13 @@
buildGoModule rec {
pname = "hugo";
version = "0.120.3";
version = "0.120.4";
src = fetchFromGitHub {
owner = "gohugoio";
repo = pname;
rev = "refs/tags/v${version}";
hash = "sha256-96ikGGKw9IN/ch199oFcucp8aVR+fEiAWBeu39J2Osw=";
hash = "sha256-eBDlX+3Gb4bWRJ0ITwlx1c3q1RCFK2tyuKn9SALHbhI=";
};
vendorHash = "sha256-kUKnoUQzLbi0ssxvK2viNTHLtqx8vaHLYXO8ZWU2rmw=";

View File

@ -15,13 +15,13 @@ let
in
stdenv.mkDerivation rec {
pname = "xmrig";
version = "6.20.0";
version = "6.21.0";
src = fetchFromGitHub {
owner = "xmrig";
repo = "xmrig";
rev = "v${version}";
hash = "sha256-csJfmjKm/uAlINhijeqUsDVTemchlzWqJg/YHtmNlAk=";
hash = "sha256-7OHfFo8+MUNSI3vpOIODKQH41jmraHDJOyqfLBp/v9o=";
};
patches = [

View File

@ -13,13 +13,13 @@ let
in
stdenv.mkDerivation rec {
pname = "xmrig-proxy";
version = "6.20.0";
version = "6.21.0";
src = fetchFromGitHub {
owner = "xmrig";
repo = "xmrig-proxy";
rev = "v${version}";
hash = "sha256-RliH4cr96lsigtoJiq5ymkIY8rbXG4xYmhWDAwZpSY0=";
hash = "sha256-ICRzd1iCm/TciVe0RqVFiiY74RK0KpEGPJ2v+wSRIEo=";
};
postPatch = ''

View File

@ -2,16 +2,16 @@
buildGoModule rec {
pname = "civo";
version = "1.0.68";
version = "1.0.69";
src = fetchFromGitHub {
owner = "civo";
repo = "cli";
rev = "v${version}";
sha256 = "sha256-qvcMA8oPDyi8WoIzr/3mu+2cHDXn5rgLUmnsGdOQXVM=";
sha256 = "sha256-gecvS7Vwg1TQTjbDsKrwnf5/eA7XOnIvb6xw8MZDUkU=";
};
vendorHash = "sha256-C+XaX78iGKw6Ll7PMPFWWAy6fRwjrmbLhFdmqJPMrxc=";
vendorHash = "sha256-cJIdF+zujftCIBzzzUpXLUWXCP4+n+gSaPJsatEQuOs=";
nativeBuildInputs = [ installShellFiles ];

View File

@ -13,13 +13,13 @@
buildGoModule rec {
pname = "chart-testing";
version = "3.10.0";
version = "3.10.1";
src = fetchFromGitHub {
owner = "helm";
repo = pname;
rev = "v${version}";
hash = "sha256-2h1Pc313JZ/2NkFOOQnIrhe1Pm8FJ/BvxjAQhs/eSK0=";
hash = "sha256-btrnfL9U8k7jwo6ltVfbiSJFCX52zjfgf4E+IsWTYi4=";
};
vendorHash = "sha256-E+7ndvXWzsU896/eWyupbvqkLed2ly91osptZKT79fk=";

View File

@ -8,16 +8,16 @@
buildGoModule rec {
pname = "karmor";
version = "0.14.2";
version = "0.14.3";
src = fetchFromGitHub {
owner = "kubearmor";
repo = "kubearmor-client";
rev = "v${version}";
hash = "sha256-SHijhYZyvaBkRVt0BO37OXEjaDGUIeO+PfrmUqPJf/M=";
hash = "sha256-D0BsjAZ7yhbZ8dJ3U/K2tdKhLTZBmK/HorApSYVb3ww=";
};
vendorHash = "sha256-fxbyAd2NaU1WQCPE+Feb1mrz6dzwCyZqanm+wfBL/IE=";
vendorHash = "sha256-vCcdQt8/jkUQVz0SpjWUhiJd7d3ePIF6qLD8NKCc618=";
nativeBuildInputs = [ installShellFiles ];

View File

@ -5,13 +5,13 @@
buildGoModule rec {
pname = "terragrunt";
version = "0.53.5";
version = "0.53.6";
src = fetchFromGitHub {
owner = "gruntwork-io";
repo = pname;
rev = "refs/tags/v${version}";
hash = "sha256-1rGRtBDCw35y8x14lno+obUTzplFU5u3f87I5TVO7/8=";
hash = "sha256-v8e23jzSUHLJwg67Ype+kCM3g/ZyxiSd8cLuywqZj3Y=";
};
vendorHash = "sha256-h1rDXxvPhQfGUpxOmnksy3l8kMq93nxOQ9adJFyZnOY=";

View File

@ -24,7 +24,7 @@ let
in
python.pkgs.buildPythonApplication rec {
pname = "flexget";
version = "3.9.18";
version = "3.10.1";
format = "pyproject";
# Fetch from GitHub in order to use `requirements.in`
@ -32,7 +32,7 @@ python.pkgs.buildPythonApplication rec {
owner = "Flexget";
repo = "Flexget";
rev = "refs/tags/v${version}";
hash = "sha256-Wxi6+6c/PK990YCoFKBMxJbYgMkS9y46hNIlkVhjbA4=";
hash = "sha256-4r+PADMUpyvWNvA7MSgjx1VcCJKrYJLyvEn9esZKCRw=";
};
postPatch = ''

View File

@ -20,16 +20,16 @@
rustPlatform.buildRustPackage rec {
pname = "celeste";
version = "0.8.0";
version = "0.8.1";
src = fetchFromGitHub {
owner = "hwittenborn";
repo = "celeste";
rev = "v${version}";
hash = "sha256-U+2imF4hUDJAwwf/RFZXfOgTxA+O8c6C+CzQoEQreJw=";
hash = "sha256-fJK3UTa5NS+dSsjnqZtRN3HmHQ1bYU2jepkJ5tchYD4=";
};
cargoHash = "sha256-9DrJoXT/uD8y7y2r58DMuURSaic+TtlnPPbw/gq9jPA=";
cargoHash = "sha256-/0w52bh9CsBoMTJsnWuEAQNgQzf92mbzh53H4iQYswc=";
postPatch = ''
pushd $cargoDepsCopy/librclone-sys

View File

@ -5,18 +5,18 @@
buildGoModule rec {
pname = "storj-uplink";
version = "1.90.2";
version = "1.92.1";
src = fetchFromGitHub {
owner = "storj";
repo = "storj";
rev = "v${version}";
hash = "sha256-VEO9LV6hzEd4IDnSPE5H0CDlwgRFEg4cheDx/RUGQug=";
hash = "sha256-yeKI8vOuYFhABz09awPuCmjrifLttvBq1kaxMf78/HI=";
};
subPackages = [ "cmd/uplink" ];
vendorHash = "sha256-R713WhFrWT7Cgstk3SLuvvyk3/ZtT1LOH0qqmFcWzKw=";
vendorHash = "sha256-odtCBLg04gG1ztyDLdBADhdEhMkrizNjOGymAtzXy9g=";
ldflags = [ "-s" "-w" ];

View File

@ -17,13 +17,13 @@
stdenv.mkDerivation rec {
pname = "khronos";
version = "3.7.0";
version = "4.0.1";
src = fetchFromGitHub {
owner = "lainsce";
repo = pname;
rev = version;
sha256 = "sha256-k3U8ICnwMbR6vN+gELWytI2Etri5lvbE6AX6lUpr7dQ=";
sha256 = "sha256-2mO2ZMDxZ7sx2EVTN0tsAv8MisGxlK/1h61N+hOqyGI=";
};
nativeBuildInputs = [

View File

@ -2,11 +2,11 @@
stdenv.mkDerivation rec {
pname = "gerrit";
version = "3.8.2";
version = "3.8.3";
src = fetchurl {
url = "https://gerrit-releases.storage.googleapis.com/gerrit-${version}.war";
hash = "sha256-irzzG8qLJaBdRULGRyoYkn0tc4Yfcg/xe2SLriD8mtM=";
hash = "sha256-EfXnJ7oyXsnAajUPJTmBQE/lUCW8Xm/hF4+N6BvX6fQ=";
};
buildCommand = ''

View File

@ -17,13 +17,13 @@
buildGoModule rec {
pname = "colima";
version = "0.5.6";
version = "0.6.5";
src = fetchFromGitHub {
owner = "abiosoft";
repo = pname;
rev = "v${version}";
sha256 = "sha256-1Tvh1K/jdJoCHeDO1ckbd793UqB6pn4Qvts3vk8PFTM=";
sha256 = "sha256-lIYLoCFYOwu1iqGgE/jhaqrXAL5ooFHDUnwL56qcGIE=";
# We need the git revision
leaveDotGit = true;
postFetch = ''
@ -35,7 +35,7 @@ buildGoModule rec {
nativeBuildInputs = [ installShellFiles makeWrapper ]
++ lib.optionals stdenv.isDarwin [ darwin.DarwinTools ];
vendorHash = "sha256-IQKfv+bwDQMuDytfYvirBfrmGexj3LGnIQjoJv1NEoU=";
vendorHash = "sha256-7DIhSjHpaCyHyXKhR8KWQc2YGaD8CMq+BZHF4zIkL50=";
# disable flaky Test_extractZones
# https://hydra.nixos.org/build/212378003/log

View File

@ -9,31 +9,31 @@
}:
let
version = "0.17.2";
version = "0.18.0";
dist = {
aarch64-darwin = rec {
archSuffix = "Darwin-arm64";
url = "https://github.com/lima-vm/lima/releases/download/v${version}/lima-${version}-${archSuffix}.tar.gz";
sha256 = "c7e328369e6842b15452b440daa5137e00da57ca7aa025b1cf7f80bd5c7843a9";
sha256 = "6c58ca1b7803c2eeb1eaeb124db57fdc426b45fa65ce41a3fd83856c9be5c233";
};
x86_64-darwin = rec {
archSuffix = "Darwin-x86_64";
url = "https://github.com/lima-vm/lima/releases/download/v${version}/lima-${version}-${archSuffix}.tar.gz";
sha256 = "5b8954b3040b82016701091bed4ac99c668ffb8d362dc7a0fdf5cb9a6ed9ebb1";
sha256 = "e19b1067dcfc7d9d34d692d26b84e2b8589c3b39ac3316efc7b25fa82dcafbc6";
};
aarch64-linux = rec {
archSuffix = "Linux-aarch64";
url = "https://github.com/lima-vm/lima/releases/download/v${version}/lima-${version}-${archSuffix}.tar.gz";
sha256 = "20df104067f255212cd6df82508961b20bf4c0a16a233a74d495a4b6ee3a62e8";
sha256 = "1a1113a8e3a6f6f12dd01a7bbf30017d3cccf1ed7705e61c06149d8fab57654e";
};
x86_64-linux = rec {
archSuffix = "Linux-x86_64";
url = "https://github.com/lima-vm/lima/releases/download/v${version}/lima-${version}-${archSuffix}.tar.gz";
sha256 = "a9af3aec848ed7bc490baff2f1d785334cbbc6cd94f981705cc0aeab833288b0";
sha256 = "efd100c65173d0dff885e61778fa61737a609fc543d8260b491c8090c000bd3b";
};
};
in

View File

@ -21,7 +21,7 @@
stdenv.mkDerivation (finalAttrs: {
pname = "river";
version = "0.2.5";
version = "0.2.6";
outputs = [ "out" ] ++ lib.optionals withManpages [ "man" ];
@ -30,7 +30,7 @@ stdenv.mkDerivation (finalAttrs: {
repo = "river";
rev = "refs/tags/v${finalAttrs.version}";
fetchSubmodules = true;
hash = "sha256-Xd9hg7UGTBlEyw8BDpTQYq/IRC7vUXhMx9j7YcCaQ20=";
hash = "sha256-JPb8l5ANxYCqinWNoQK5PAyn4CaiSj0e9mAhZwd9HOw=";
};
nativeBuildInputs = [

View File

@ -5,17 +5,17 @@
rustPlatform.buildRustPackage rec {
pname = "action-validator";
version = "0.5.3";
version = "0.5.4";
src = fetchFromGitHub {
owner = "mpalmer";
repo = "action-validator";
rev = "v${version}";
hash = "sha256-22oYPYGnNp4K68pbNMolGcIGDYqjT/3FibO/jv3IEvg=";
hash = "sha256-roWmks+AgRf2ACoI7Vc/QEyqgQ0bR/XhRwLk9VaLEdY=";
fetchSubmodules = true;
};
cargoHash = "sha256-CVDqXuAxI1vCZV4w8DS3fOrsYFvJoI35fbe+hnSahLc=";
cargoHash = "sha256-WUtFWuk2y/xXe39doMqANaIr0bbxmLDpT4/H2GRGH6k=";
meta = with lib; {
description = "Tool to validate GitHub Action and Workflow YAML files";

View File

@ -5,17 +5,18 @@
, gtk-engine-murrine
, gtk_engines
, librsvg
, gitUpdater
}:
stdenv.mkDerivation rec {
pname = "marwaita-pop_os";
version = "10.3";
version = "17.0";
src = fetchFromGitHub {
owner = "darkomarko42";
repo = pname;
rev = version;
sha256 = "1j6d91kx6iw8sy35rhhjvwb3qz60bvf7a7g7q2i0sznzdicrwsq6";
rev = "1f3561f1231d0e9e931f93c5d59df19ed2205ce0";
hash = "sha256-WbCIMEWF5853TQyhq8aRoWzpsmjObm9hEc4I0pxDNOM=";
};
buildInputs = [
@ -37,6 +38,8 @@ stdenv.mkDerivation rec {
runHook postInstall
'';
passthru.updateScript = gitUpdater { };
meta = with lib; {
description = "Marwaita GTK theme with Pop_os Linux style";
homepage = "https://www.pling.com/p/1377894/";

View File

@ -1,20 +1,22 @@
{ lib, stdenv
{ lib
, stdenv
, fetchFromGitHub
, gdk-pixbuf
, gtk-engine-murrine
, gtk_engines
, librsvg
, gitUpdater
}:
stdenv.mkDerivation rec {
pname = "marwaita-ubuntu";
version = "1.7";
version = "17.0";
src = fetchFromGitHub {
owner = "darkomarko42";
repo = pname;
rev = version;
sha256 = "024b0817jilvi5ilq9sbwg19ql5i2x3jfgc1awk7zzv6sqii639x";
rev = "481aae16034e0321bcabd14270639b8bd8b9aa73";
hash = "sha256-Ze2nR+77qe0TfwcvXP9eheB7mXSSVdejk11GS0fx7LY=";
};
buildInputs = [
@ -36,6 +38,8 @@ stdenv.mkDerivation rec {
runHook postInstall
'';
passthru.updateScript = gitUpdater { };
meta = with lib; {
description = "Ubuntu Style of Marwaita GTK theme";
homepage = "https://www.pling.com/p/1352833/";

View File

@ -23,7 +23,7 @@
stdenv.mkDerivation rec {
pname = "gnome-shell-extension-gsconnect";
version = "55";
version = "56";
outputs = [ "out" "installedTests" ];
@ -31,7 +31,7 @@ stdenv.mkDerivation rec {
owner = "GSConnect";
repo = "gnome-shell-extension-gsconnect";
rev = "v${version}";
hash = "sha256-n6NbNgl+2FOhly/BeR7I6BvPOYe7leAdeAegaqhcGJU=";
hash = "sha256-V2L65Fz1WcJE2ENE8uNgIuVSXLDHokcgM4Caz1sOdZM=";
};
patches = [

View File

@ -11,29 +11,37 @@ index 3fb887c3..e8cbe1bd 100644
Terminal=false
NoDisplay=true
Icon=org.gnome.Shell.Extensions.GSConnect
diff --git a/src/__nix-prepend-search-paths.js b/src/__nix-prepend-search-paths.js
new file mode 100644
index 00000000..d009dfd9
--- /dev/null
+++ b/src/__nix-prepend-search-paths.js
@@ -0,0 +1,2 @@
+import GIRepository from 'gi://GIRepository';
+'@typelibPath@'.split(':').forEach(path => GIRepository.Repository.prepend_search_path(path));
diff --git a/src/extension.js b/src/extension.js
index 3fae443a..7aa19842 100644
index 53ecd5fc..78782357 100644
--- a/src/extension.js
+++ b/src/extension.js
@@ -4,6 +4,8 @@
@@ -2,6 +2,8 @@
//
// SPDX-License-Identifier: GPL-2.0-or-later
'use strict';
+'@typelibPath@'.split(':').forEach(path => imports.gi.GIRepository.Repository.prepend_search_path(path));
+import './__nix-prepend-search-paths.js';
+
const Gio = imports.gi.Gio;
const GObject = imports.gi.GObject;
const Gtk = imports.gi.Gtk;
import Gio from 'gi://Gio';
import GObject from 'gi://GObject';
diff --git a/src/prefs.js b/src/prefs.js
index b8860c82..d6292606 100644
index dd20fd20..5f82c53a 100644
--- a/src/prefs.js
+++ b/src/prefs.js
@@ -4,6 +4,8 @@
@@ -2,6 +2,8 @@
//
// SPDX-License-Identifier: GPL-2.0-or-later
'use strict';
+'@typelibPath@'.split(':').forEach(path => imports.gi.GIRepository.Repository.prepend_search_path(path));
+import './__nix-prepend-search-paths.js';
+
const {Gio, GLib, Adw} = imports.gi;
// Bootstrap
import Gio from 'gi://Gio';
import GLib from 'gi://GLib';
import Adw from 'gi://Adw';

View File

@ -0,0 +1,75 @@
diff --git a/ext/sqlite3/tests/sqlite3_bind_bug68849.phpt b/ext/sqlite3/tests/sqlite3_bind_bug68849.phpt
deleted file mode 100644
index 6324d079..00000000
--- a/ext/sqlite3/tests/sqlite3_bind_bug68849.phpt
+++ /dev/null
@@ -1,69 +0,0 @@
---TEST--
-Bug #68849 bindValue is not using the right data type
---EXTENSIONS--
-sqlite3
---FILE--
-<?php
-
-$db = new SQLite3(':memory:');
-
-$db->exec("CREATE TABLE test (a INTEGER, b TEXT, c REAL);" .
- "INSERT INTO test VALUES (1, 'hello', 3.14);" .
- "INSERT INTO test VALUES (3, 'world', 3.15);" .
- "INSERT INTO test VALUES (0, '42', 0.42);"
-);
-
-$s = $db->prepare('SELECT * FROM test WHERE (a+2) = ?;');
-$s->bindValue(1, 3);
-$r = $s->execute();
-var_dump($r->fetchArray(SQLITE3_ASSOC));
-
-$s = $db->prepare('SELECT * FROM test WHERE a = ?;');
-$s->bindValue(1, true);
-$r = $s->execute();
-var_dump($r->fetchArray(SQLITE3_ASSOC));
-
-$s = $db->prepare('SELECT * FROM test WHERE a = ?;');
-$s->bindValue(1, false);
-$r = $s->execute();
-var_dump($r->fetchArray(SQLITE3_ASSOC));
-
-$s = $db->prepare('SELECT * FROM test WHERE c = ?;');
-$s->bindValue(1, 3.15);
-$r = $s->execute();
-var_dump($r->fetchArray(SQLITE3_ASSOC));
-
-?>
---EXPECT--
-array(3) {
- ["a"]=>
- int(1)
- ["b"]=>
- string(5) "hello"
- ["c"]=>
- float(3.14)
-}
-array(3) {
- ["a"]=>
- int(1)
- ["b"]=>
- string(5) "hello"
- ["c"]=>
- float(3.14)
-}
-array(3) {
- ["a"]=>
- int(0)
- ["b"]=>
- string(2) "42"
- ["c"]=>
- float(0.42)
-}
-array(3) {
- ["a"]=>
- int(3)
- ["b"]=>
- string(5) "world"
- ["c"]=>
- float(3.15)
-}

View File

@ -107,7 +107,7 @@ in {
makePythonHook {
name = "python-catch-conflicts-hook";
substitutions = let
useLegacyHook = lib.versionOlder python.version "3.10";
useLegacyHook = lib.versionOlder python.pythonVersion "3.10";
in {
inherit pythonInterpreter pythonSitePackages;
catchConflicts = if useLegacyHook then

View File

@ -9,13 +9,13 @@
stdenv.mkDerivation rec {
pname = "intel-gmmlib";
version = "22.3.12";
version = "22.3.14";
src = fetchFromGitHub {
owner = "intel";
repo = "gmmlib";
rev = "intel-gmmlib-${version}";
sha256 = "sha256-BfMH3gFInWiBCuFZC0bZzpoZCEQzv/+tMvRH9ep5rLk=";
sha256 = "sha256-hNewfGN/hO9hx2+1YmdPPqUORqpNwckQYSSO7zfeVAY=";
};
nativeBuildInputs = [ cmake ];

View File

@ -16,14 +16,14 @@
, sse42Support ? stdenv.hostPlatform.sse4_2Support
}:
stdenv.mkDerivation rec {
stdenv.mkDerivation (finalAttrs: {
pname = "rocksdb";
version = "8.3.2";
src = fetchFromGitHub {
owner = "facebook";
repo = pname;
rev = "v${version}";
repo = finalAttrs.pname;
rev = "v${finalAttrs.version}";
hash = "sha256-mfIRQ8nkUbZ3Bugy3NAvOhcfzFY84J2kBUIUBcQ2/Qg=";
};
@ -48,6 +48,10 @@ stdenv.mkDerivation rec {
] ++ lib.optionals stdenv.cc.isClang [
"-Wno-error=unused-private-field"
"-faligned-allocation"
] ++ lib.optionals (lib.versionOlder finalAttrs.version "8") [
"-Wno-error=unused-but-set-variable"
] ++ lib.optionals (lib.versionOlder finalAttrs.version "7") [
"-Wno-error=deprecated-copy"
]);
cmakeFlags = [
@ -77,7 +81,7 @@ stdenv.mkDerivation rec {
mkdir -p $tools/bin
cp tools/{ldb,sst_dump}${stdenv.hostPlatform.extensions.executable} $tools/bin/
'' + lib.optionalString stdenv.isDarwin ''
ls -1 $tools/bin/* | xargs -I{} install_name_tool -change "@rpath/librocksdb.${lib.versions.major version}.dylib" $out/lib/librocksdb.dylib {}
ls -1 $tools/bin/* | xargs -I{} install_name_tool -change "@rpath/librocksdb.${lib.versions.major finalAttrs.version}.dylib" $out/lib/librocksdb.dylib {}
'' + lib.optionalString (stdenv.isLinux && enableShared) ''
ls -1 $tools/bin/* | xargs -I{} patchelf --set-rpath $out/lib:${stdenv.cc.cc.lib}/lib {}
'';
@ -93,9 +97,9 @@ stdenv.mkDerivation rec {
meta = with lib; {
homepage = "https://rocksdb.org";
description = "A library that provides an embeddable, persistent key-value store for fast storage";
changelog = "https://github.com/facebook/rocksdb/raw/v${version}/HISTORY.md";
changelog = "https://github.com/facebook/rocksdb/raw/v${finalAttrs.version}/HISTORY.md";
license = licenses.asl20;
platforms = platforms.all;
maintainers = with maintainers; [ adev magenbluten ];
};
}
})

View File

@ -7,20 +7,25 @@
, ifaddr
, inquirerpy
, bitstring
, setuptools
}:
buildPythonPackage rec {
pname = "aiolifx";
version = "0.9.0";
format = "setuptools";
version = "1.0.0";
pyproject = true;
disabled = pythonOlder "3.7";
src = fetchPypi {
inherit pname version;
hash = "sha256-oK8Ih62EFwu3X5PNVFLH+Uce6ZBs7IMXet5/DHxfd5M=";
hash = "sha256-2lWC2eTYh/YX0Pn3W11uVqqT2ycsa993siiDR2BV4qU=";
};
nativeBuildInputs = [
setuptools
];
propagatedBuildInputs = [
async-timeout
bitstring

View File

@ -5,7 +5,7 @@
, nodejs
, yarn
, fixup_yarn_lock
, prefetch-yarn-deps
, fetchYarnDeps
, setuptools
@ -52,7 +52,7 @@ buildPythonPackage rec {
nativeBuildInputs = [
nodejs
yarn
fixup_yarn_lock
prefetch-yarn-deps
];
yarnDeps = fetchYarnDeps {
@ -66,7 +66,7 @@ buildPythonPackage rec {
export HOME=$(mktemp -d)
yarn config --offline set yarn-offline-mirror ${yarnDeps}
fixup_yarn_lock yarn.lock
fixup-yarn-lock yarn.lock
substituteInPlace package.json --replace jlpm yarn
yarn install --offline --frozen-lockfile --ignore-engines --ignore-scripts

View File

@ -0,0 +1,42 @@
From 189681bbfb703a7026ca7bbb3b21ef554807b144 Mon Sep 17 00:00:00 2001
From: tali auster <taliauster@gmail.com>
Date: Wed, 15 Nov 2023 12:15:34 -0700
Subject: [PATCH] use distro over ld
The `ld` module (linux distribution) was renamed to `distro`, presumably
so as not to subsume binutils name.
---
setup.py | 2 +-
src/e3/os/platform.py | 2 +-
2 files changed, 2 insertions(+), 2 deletions(-)
diff --git a/setup.py b/setup.py
index c32f46f..de1ada6 100644
--- a/setup.py
+++ b/setup.py
@@ -25,7 +25,7 @@ for p in ("darwin", "linux", "linux2", "win32"):
platform_string = ":sys_platform=='%s'" % p
extras_require[platform_string] = ["psutil"]
if p in ("linux", "linux2"):
- extras_require[platform_string].append("ld")
+ extras_require[platform_string].append("distro")
# Get e3 version from the VERSION file.
version_file = os.path.join(os.path.dirname(__file__), "VERSION")
diff --git a/src/e3/os/platform.py b/src/e3/os/platform.py
index 2d4e174..a9d12d3 100644
--- a/src/e3/os/platform.py
+++ b/src/e3/os/platform.py
@@ -78,7 +78,7 @@ class SystemInfo:
# Fetch linux distribution info on linux OS
if cls.uname.system == "Linux": # linux-only
- import ld
+ import distro as ld
cls.ld_info = {
"name": ld.name(),
--
2.40.1

View File

@ -0,0 +1,65 @@
{ buildPythonPackage
, colorama
, coverage
, distro
, fetchFromGitHub
, httpretty
, lib
, mock
, psutil
, pytest
, pytest-socket
, python-dateutil
, pyyaml
, requests
, requests-toolbelt
, stdenv
, setuptools
, stevedore
, tomlkit
, tox
, tqdm
, typeguard
}:
buildPythonPackage rec {
pname = "e3-core";
version = "22.3.1";
pyproject = true;
src = fetchFromGitHub {
owner = "AdaCore";
repo = "e3-core";
rev = "v${version}";
hash = "sha256-4StHOJldfeqApdF6D14Euzg9HvZ2e7G4/OQ0UrEbEIw=";
};
patches = [ ./0001-use-distro-over-ld.patch ];
nativeBuildInputs = [ setuptools ];
propagatedBuildInputs = [
colorama pyyaml python-dateutil requests requests-toolbelt tqdm stevedore
] ++ lib.optional stdenv.isLinux [
# See setup.py:24. These are required only on Linux. Darwin has its own set
# of requirements.
psutil distro
];
pythonImportsCheck = [ "e3" ];
# e3-core is tested with tox; it's hard to test without internet.
doCheck = false;
meta = with lib; {
changelog = "https://github.com/AdaCore/e3-core/releases/tag/${src.rev}";
homepage = "https://github.com/AdaCore/e3-core/";
description = "Core framework for developing portable automated build systems";
license = licenses.gpl3Only;
maintainers = with maintainers; [ atalii ];
mainProgram = "e3";
# See the comment regarding distro and psutil. Other platforms are supported
# upstream, but not by this package.
platforms = platforms.linux;
};
}

View File

@ -7,15 +7,15 @@
buildPythonPackage rec {
pname = "pdunehd";
version = "1.3.2";
version = "1.3.3";
disabled = pythonOlder "3.6";
src = fetchFromGitHub {
owner = "valentinalexeev";
repo = "pdunehd";
rev = version;
sha256 = "06p0k82nf89rsakr8d2hdb19dp1wqp9bsf54lwb0qma47iakljjh";
rev = "refs/tags/${version}";
sha256 = "sha256-8CL7ZQ+tV0CKdqWWiPDbo6Q5d1iIj/vNbYshdjUpYSw=";
};
propagatedBuildInputs = [
@ -30,6 +30,7 @@ buildPythonPackage rec {
meta = with lib; {
description = "Python wrapper for Dune HD media player API";
homepage = "https://github.com/valentinalexeev/pdunehd";
changelog = "https://github.com/valentinalexeev/pdunehd/releases/tag/${version}";
license = licenses.asl20;
maintainers = with maintainers; [ dotlambda ];
};

View File

@ -14,7 +14,7 @@
buildPythonPackage rec {
pname = "pymc";
version = "5.9.2";
version = "5.10.0";
pyproject = true;
disabled = pythonOlder "3.9";
@ -23,7 +23,7 @@ buildPythonPackage rec {
owner = "pymc-devs";
repo = "pymc";
rev = "refs/tags/v${version}";
hash = "sha256-fbS4JSbmdOGz570awEpT6ut0NJ8TbiAeJWaETMBeI3c=";
hash = "sha256-cjvEP7vkFQKwUPwHw3JWbS8+U8PEaL3c1D2NwV3uLOU=";
};
propagatedBuildInputs = [

View File

@ -132,6 +132,8 @@ buildPythonPackage rec {
++ lib.optional withLocation "PyQt6.QtPositioning"
;
env.NIX_CFLAGS_COMPILE = lib.optionalString stdenv.isDarwin "-Wno-address-of-temporary";
meta = with lib; {
description = "Python bindings for Qt6";
homepage = "https://riverbankcomputing.com/";

View File

@ -11,14 +11,14 @@
}:
buildPythonPackage rec {
pname = "python-youtube";
version = "0.9.2";
version = "0.9.3";
format = "pyproject";
src = fetchFromGitHub {
owner = "sns-sdks";
repo = "python-youtube";
rev = "refs/tags/v${version}";
hash = "sha256-jUs6n8j1coA37V0RTYqr7pqt+LRABieX7gbyWsXQpUM=";
hash = "sha256-vd+cbESypc/q7eSrERqkMvGhVMIfKMsoxPblPJwPiUg=";
};
postPatch = ''

View File

@ -12,14 +12,14 @@
buildPythonPackage rec {
pname = "vertica-python";
version = "1.3.6";
version = "1.3.7";
format = "setuptools";
disabled = pythonOlder "3.7";
src = fetchPypi {
inherit pname version;
hash = "sha256-LLlaLP9NgzpJyxsEGPd7sdcVX/qXY8mO3ZQNm39gocM=";
hash = "sha256-Kl8NARHTzEZrh5I//TwmITKp+g44lk5D7vkKPM2ldFI=";
};
propagatedBuildInputs = [

View File

@ -2,21 +2,23 @@
, buildPythonPackage
, fetchPypi
, pint
, pythonOlder
, pytestCheckHook
, pythonOlder
, setuptools
, toml
, tomli
}:
buildPythonPackage rec {
pname = "vulture";
version = "2.9.1";
format = "setuptools";
version = "2.10";
pyproject = true;
disabled = pythonOlder "3.6";
disabled = pythonOlder "3.8";
src = fetchPypi {
inherit pname version;
hash = "sha256-tqKqYytv1RSIqO6sZQq0pQm7GgMugZQ4F6ii5qY6MLM=";
hash = "sha256-KlwxYL/7p3WVtubfzEEgFr0qCc1LZs33+7qRNoSJn28=";
};
postPatch = ''
@ -24,13 +26,18 @@ buildPythonPackage rec {
--replace " --cov vulture --cov-report=html --cov-report=term --cov-report=xml --cov-append" ""
'';
propagatedBuildInputs = [
toml
nativeBuildInputs = [
setuptools
];
propagatedBuildInputs = lib.optionals (pythonOlder "3.11") [
tomli
];
nativeCheckInputs = [
pint
pytestCheckHook
toml
];
pythonImportsCheck = [
@ -40,6 +47,7 @@ buildPythonPackage rec {
meta = with lib; {
description = "Finds unused code in Python programs";
homepage = "https://github.com/jendrikseipp/vulture";
changelog = "https://github.com/jendrikseipp/vulture/releases/tag/v${version}";
license = licenses.mit;
maintainers = with maintainers; [ mcwitt ];
};

View File

@ -41,8 +41,8 @@ buildRubyGem rec {
The output is then usable by the bundlerEnv derivation to list all the
dependencies of a ruby package.
'';
homepage = "https://github.com/manveru/bundix";
license = "MIT";
homepage = "https://github.com/nix-community/bundix";
license = lib.licenses.mit;
maintainers = with lib.maintainers; [ manveru marsam zimbatm ];
platforms = lib.platforms.all;
};

View File

@ -6,16 +6,16 @@
buildGoModule rec {
pname = "cloud-nuke";
version = "0.32.0";
version = "0.33.0";
src = fetchFromGitHub {
owner = "gruntwork-io";
repo = pname;
rev = "refs/tags/v${version}";
hash = "sha256-jxhFBfz5CWycEXx86jL9inlP8nxNK7vbVn2U8EzQ7QA=";
hash = "sha256-yTCeltueOxGkOin6Cq6RzY7YNmHMz64wza8e0Pwr36E=";
};
vendorHash = "sha256-C2YXjfn3Pk0kL4G/cHsmr2VHUYGO+3s3eSiWVJZ2dX8=";
vendorHash = "sha256-BnfWivu7xRmgDQgPIkjF48dOpU7hkw+Qkvb11eASDEk=";
nativeBuildInputs = [
makeBinaryWrapper

View File

@ -1,29 +1,34 @@
{ lib, buildGoModule, fetchFromGitHub }:
{ lib
, buildGoModule
, fetchFromGitHub
}:
buildGoModule rec {
pname = "ddosify";
version = "1.0.5";
version = "1.0.6";
src = fetchFromGitHub {
owner = pname;
repo = pname;
rev = "v${version}";
sha256 = "sha256-oCbEAEBZJsMnnVu2N6eiQiaywovWmGUSVpUyWyS7TpM=";
owner = "ddosify";
repo = "ddosify";
rev = "refs/tags/v${version}";
hash = "sha256-5K/qXtdlDC09dEjRwYvoh9SapGLNmvywDMiNdwZDDTQ=";
};
vendorHash = "sha256-cGhMhX+SEv9fejViLZrEwXg584o204OQ5iR6AkxKnXo=";
vendorHash = "sha256-Wg4JzA2aEwNBsDrkauFUb9AS38ITLBGex9QHzDcdpoM=";
ldflags = [
"-s" "-w"
"-X main.GitVersion=${version}"
"-X main.GitCommit=unknown"
"-X main.BuildDate=unknown"
"-s"
"-w"
"-X=main.GitVersion=${version}"
"-X=main.GitCommit=unknown"
"-X=main.BuildDate=unknown"
];
# TestCreateHammerMultipartPayload error occurred - Get "https://upload.wikimedia.org/wikipedia/commons/b/bd/Test.svg"
doCheck = false;
doInstallCheck = true;
installCheckPhase = ''
$out/bin/ddosify -version | grep ${version} > /dev/null
'';

View File

@ -8,16 +8,16 @@
buildGoModule rec {
pname = "pscale";
version = "0.161.0";
version = "0.162.0";
src = fetchFromGitHub {
owner = "planetscale";
repo = "cli";
rev = "v${version}";
sha256 = "sha256-7PzuFhlOlU5uGsJyGOY761JfzqaPkkkftRlYrvUKEoU=";
sha256 = "sha256-F+iBO4R+JSOaNHw/+T8X2P+8Q/l0hKN2tu/rRshY/5A=";
};
vendorHash = "sha256-fhYd2C9xY0kQez6+MofimJP+brLvMDFXlW6kDSI4iqA=";
vendorHash = "sha256-WNbHnYCC8G0kxsLWOZWDFugBQ7E5YT2pTQy+wczZ1qU=";
ldflags = [
"-s" "-w"

View File

@ -29,11 +29,11 @@
stdenv.mkDerivation rec {
pname = "qtcreator";
version = "11.0.3";
version = "12.0.0";
src = fetchurl {
url = "https://download.qt.io/official_releases/${pname}/${lib.versions.majorMinor version}/${version}/qt-creator-opensource-src-${version}.tar.xz";
hash = "sha256-X1AeZOg2t+PlC5iz68NFsgE5al/ZLklzjau14mjVzxw=";
hash = "sha256-OZrg3O+jvZ4Bo/BouT2r6LOfm1ZGbDidFEblyEyPe58=";
};
nativeBuildInputs = [

View File

@ -2,14 +2,14 @@
rustPlatform.buildRustPackage rec {
pname = "svd2rust";
version = "0.30.2";
version = "0.31.0";
src = fetchCrate {
inherit pname version;
hash = "sha256-nZ9c4Rog7dvlsnu4y33Yp+PJzwvBKvwyxF4V5UeJCVE=";
hash = "sha256-Ifi7KWq2jCSUvriKIVQ67a7Ow4aHriM2AjH6kW7+PGs=";
};
cargoHash = "sha256-wVv46yYlKsyxk+2eXwsd0jMC64Xk5+Krp18B2pKo0mo=";
cargoHash = "sha256-+aK+Uv0gDmCxvR4VqVM+nvoSJkldD1hE10QC3B25r0Y=";
# error: linker `aarch64-linux-gnu-gcc` not found
postPatch = ''

View File

@ -5,13 +5,13 @@
, cargo
, fetchFromGitHub
, fetchYarnDeps
, fixup_yarn_lock
, installShellFiles
, lame
, mpv-unwrapped
, ninja
, nodejs
, nodejs-slim
, prefetch-yarn-deps
, protobuf
, python3
, qt6
@ -100,15 +100,15 @@ let
inherit version src yarnOfflineCache;
nativeBuildInputs = [
fixup_yarn_lock
nodejs-slim
prefetch-yarn-deps
yarn
];
configurePhase = ''
export HOME=$NIX_BUILD_TOP
yarn config --offline set yarn-offline-mirror $yarnOfflineCache
fixup_yarn_lock yarn.lock
fixup-yarn-lock yarn.lock
yarn install --offline --frozen-lockfile --ignore-scripts --no-progress --non-interactive
patchShebangs node_modules/
'';
@ -135,8 +135,8 @@ python3.pkgs.buildPythonApplication {
nativeBuildInputs = [
fakeGit
fixup_yarn_lock
offlineYarn
prefetch-yarn-deps
cargo
installShellFiles
@ -232,7 +232,7 @@ python3.pkgs.buildPythonApplication {
export HOME=$NIX_BUILD_TOP
yarn config --offline set yarn-offline-mirror $yarnOfflineCache
fixup_yarn_lock yarn.lock
fixup-yarn-lock yarn.lock
patchShebangs ./ninja
PIP_USER=1 ./ninja build wheels

View File

@ -1,42 +1,179 @@
{ lib, stdenv, fetchurl
, pkg-config, SDL, libxml2, SDL_image, libjpeg, libpng, libGLU, libGL, zlib
, dedicatedServer ? false }:
{ lib
, stdenv
, fetchFromGitLab
, autoconf
, automake
, gnum4
, pkg-config
, bison
, python3
, which
, boost
, ftgl
, freetype
, glew
, SDL
, SDL_image
, SDL_mixer
, SDL2
, SDL2_image
, SDL2_mixer
, libpng
, libxml2
, protobuf
, dedicatedServer ? false
}:
let
versionMajor = "0.2.9";
versionMinor = "1.0";
version = "${versionMajor}.${versionMinor}";
latestVersionMajor = "0.2.9";
unstableVersionMajor = "0.4";
latestCommonBuildInputs = [ SDL SDL_image SDL_mixer libpng ];
unstableCommonBuildInputs = [ SDL2 SDL2_image SDL2_mixer glew ftgl freetype ];
unstableCommonNativeBuildInputs = [ SDL ]; # for sdl-config
srcs = {
${latestVersionMajor} = rec {
version = "${latestVersionMajor}.1.1";
src = fetchFromGitLab {
owner = "armagetronad";
repo = "armagetronad";
rev = "v${version}";
sha256 = "tvmKGqzH8IYTSeahc8XmN3RV+GdE5GsP8pAlwG8Ph3M=";
};
extraBuildInputs = latestCommonBuildInputs;
};
${unstableVersionMajor} =
let
rev = "4bf6245a668ce181cd464b767ce436a6b7bf8506";
in
{
version = "${unstableVersionMajor}-${builtins.substring 0 8 rev}";
src = fetchFromGitLab {
owner = "armagetronad";
repo = "armagetronad";
inherit rev;
sha256 = "cpJmQHCS6asGasD7anEgNukG9hRXpsIJZrCr3Q7uU4I=";
};
extraBuildInputs = [ protobuf boost ] ++ unstableCommonBuildInputs;
extraNativeBuildInputs = [ bison ] ++ unstableCommonNativeBuildInputs;
};
"${latestVersionMajor}-sty+ct+ap" =
let
rev = "fdfd5fb97083aed45467385b96d50d87669e4023";
in
{
version = "${latestVersionMajor}-sty+ct+ap-${builtins.substring 0 8 rev}";
src = fetchFromGitLab {
owner = "armagetronad";
repo = "armagetronad";
inherit rev;
sha256 = "UDbe7DiMLzNFAs4C6BbnmdEjqSltSbnk/uQfNOLGAfo=";
};
extraBuildInputs = latestCommonBuildInputs;
extraNativeBuildInputs = [ python3 ];
};
};
mkArmagetron = { version, src, dedicatedServer ? false, extraBuildInputs ? [ ], extraNativeBuildInputs ? [ ] }@params:
let
# Split the version into the major and minor parts
versionParts = lib.splitString "-" version;
splitVersion = lib.splitString "." (builtins.elemAt versionParts 0);
majorVersion = builtins.concatStringsSep "." (lib.lists.take 2 splitVersion);
minorVersionPart = parts: sep: expectedSize:
if builtins.length parts > expectedSize then
sep + (builtins.concatStringsSep sep (lib.lists.drop expectedSize parts))
else
"";
minorVersion = (minorVersionPart splitVersion "." 2) + (minorVersionPart versionParts "-" 1) + "-nixpkgs";
in
stdenv.mkDerivation rec {
pname = if dedicatedServer then "armagetronad-dedicated" else "armagetronad";
inherit version src;
# Build works fine; install has a race.
enableParallelBuilding = true;
enableParallelInstalling = false;
preConfigure = ''
patchShebangs .
# Create the version.
echo "${majorVersion}" > major_version
echo "${minorVersion}" > minor_version
echo "Bootstrapping version: $(<major_version)$(<minor_version)" >&2
./bootstrap.sh
'';
configureFlags = [
"--enable-automakedefaults"
"--enable-authentication"
"--disable-memmanager"
"--disable-useradd"
"--disable-initscripts"
"--disable-etc"
"--disable-uninstall"
"--disable-sysinstall"
] ++ lib.optional dedicatedServer "--enable-dedicated"
++ lib.optional (!dedicatedServer) "--enable-music";
buildInputs = [ libxml2 ] ++ extraBuildInputs;
nativeBuildInputs = [ autoconf automake gnum4 pkg-config which python3 ]
++ extraNativeBuildInputs;
doInstallCheck = true;
installCheckPhase = ''
export XDG_RUNTIME_DIR=/tmp
bin="$out/bin/${pname}"
version="$("$bin" --version || true)"
prefix="$("$bin" --prefix || true)"
rubber="$("$bin" --doc | grep -m1 CYCLE_RUBBER)"
echo "Version: $version" >&2
echo "Prefix: $prefix" >&2
echo "Docstring: $rubber" >&2
if [[ "$version" != *"${version}"* ]] || \
[ "$prefix" != "$out" ] || \
[[ ! "$rubber" =~ ^CYCLE_RUBBER[[:space:]]+Niceness[[:space:]]factor ]]; then
exit 1
fi
'';
passthru =
if (dedicatedServer) then {
# No passthru, end of the line.
# https://www.youtube.com/watch?v=NOMa56y_Was
}
else if (version != srcs.${latestVersionMajor}.version) then {
# Allow a "dedicated" passthru for versions other than the default.
dedicated = mkArmagetron (params // {
dedicatedServer = true;
});
}
else (lib.mapAttrs (name: value: mkArmagetron value) (lib.filterAttrs (name: value: value.version != srcs.${latestVersionMajor}.version) srcs)) // {
# Allow both a "dedicated" passthru and a passthru for all the options other than the latest version, which this is.
dedicated = mkArmagetron (params // {
dedicatedServer = true;
});
};
meta = with lib; {
homepage = "http://armagetronad.org";
description = "A multiplayer networked arcade racing game in 3D similar to Tron";
maintainers = with maintainers; [ numinit ];
license = licenses.gpl2Plus;
platforms = platforms.linux;
};
};
in
stdenv.mkDerivation {
pname = if dedicatedServer then "armagetronad-dedicated" else "armagetronad";
inherit version;
src = fetchurl {
url = "https://launchpad.net/armagetronad/${versionMajor}/${version}/+download/armagetronad-${version}.tbz";
sha256 = "sha256-WbbHwBzj+MylQ34z+XSmN1KVQaEapPUsGlwXSZ4m9qE";
};
enableParallelBuilding = true;
configureFlags = [
"--enable-memmanager"
"--enable-automakedefaults"
"--disable-useradd"
"--disable-initscripts"
"--disable-etc"
"--disable-uninstall"
"--disable-sysinstall"
] ++ lib.optional dedicatedServer "--enable-dedicated";
nativeBuildInputs = [ pkg-config ];
buildInputs = [ libxml2 zlib ]
++ lib.optionals (!dedicatedServer) [ SDL SDL_image libxml2 libjpeg libpng libGLU libGL ];
meta = with lib; {
homepage = "http://armagetronad.org";
description = "A multiplayer networked arcade racing game in 3D similar to Tron";
maintainers = with maintainers; [ numinit ];
license = licenses.gpl2Plus;
platforms = platforms.linux;
};
}
mkArmagetron (srcs.${latestVersionMajor} // { inherit dedicatedServer; })

View File

@ -0,0 +1,48 @@
{ lib, python3, fetchFromGitHub, plugins ? [ ] }:
python3.pkgs.buildPythonApplication rec {
pname = "instawow";
version = "v3.1.0";
pyproject = true;
src = fetchFromGitHub {
owner = "layday";
repo = pname;
rev = version;
sha256 = "sha256-xJw/tgHBfOlv5JYsWWdEJ8vpel348YtXCQsaLqgp3Z0=";
};
extras = [ ]; # Disable GUI, most dependencies are not packaged.
nativeBuildInputs = with python3.pkgs; [
poetry-core
poetry-dynamic-versioning
];
propagatedBuildInputs = with python3.pkgs; [
aiohttp
aiohttp-client-cache
alembic
attrs
cattrs
click
iso8601
loguru
mako
packaging
pluggy
prompt-toolkit
questionary
rapidfuzz
sqlalchemy
truststore
typing-extensions
yarl
] ++ plugins;
meta = with lib; {
homepage = "https://github.com/layday/instawow";
description = "World of Warcraft add-on manager CLI and GUI";
license = licenses.gpl3;
maintainers = with maintainers; [ seirl ];
};
}

View File

@ -1,5 +1,5 @@
{ lib
, writeScript
, unstableGitUpdater
, buildPythonApplication
, fetchFromGitHub
, pythonOlder
@ -15,7 +15,7 @@
buildPythonApplication rec {
pname = "nile";
version = "unstable-2023-10-03";
version = "unstable-2023-10-02";
format = "pyproject";
src = fetchFromGitHub {
@ -55,30 +55,5 @@ buildPythonApplication rec {
maintainers = with maintainers; [ aidalgol ];
};
# Upstream does not create git tags when bumping the version, so we have to
# extract it from the source code on the main branch.
passthru.updateScript = writeScript "gogdl-update-script" ''
#!/usr/bin/env nix-shell
#!nix-shell -i bash -p curl gnused jq common-updater-scripts
set -eou pipefail;
owner=imLinguin
repo=nile
path='nile/__init__.py'
version=$(
curl --cacert "${cacert}/etc/ssl/certs/ca-bundle.crt" \
https://raw.githubusercontent.com/$owner/$repo/main/$path |
sed -n 's/^\s*version\s*=\s*"\([0-9]\.[0-9]\.[0-9]\)"\s*$/\1/p')
commit=$(curl --cacert "${cacert}/etc/ssl/certs/ca-bundle.crt" \
https://api.github.com/repos/$owner/$repo/commits?path=$path |
jq -r '.[0].sha')
update-source-version \
${pname} \
"$version" \
--file=./pkgs/games/nile/default.nix \
--rev=$commit
'';
passthru.updateScript = unstableGitUpdater { };
}

View File

@ -141,7 +141,6 @@ in {
platform = "rk3328";
extraMeta.platforms = ["aarch64-linux"];
filesToInstall = [ "build/${platform}/release/bl31/bl31.elf"];
platformCanUseHDCPBlob = true;
};
armTrustedFirmwareRK3399 = buildArmTrustedFirmware rec {

View File

@ -497,32 +497,28 @@ in {
filesToInstall = ["u-boot.bin"];
};
ubootRock64 = let
rkbin = fetchFromGitHub {
owner = "ayufan-rock64";
repo = "rkbin";
rev = "f79a708978232a2b6b06c2e4173c5314559e0d3a";
sha256 = "0h7xm4ck3p3380c6bqm5ixrkxwcx6z5vysqdwvfa7gcqx5d6x5zz";
};
in buildUBoot {
ubootRock64 = buildUBoot {
defconfig = "rock64-rk3328_defconfig";
extraMeta = {
platforms = [ "aarch64-linux" ];
license = lib.licenses.unfreeRedistributableFirmware;
};
extraMeta.platforms = [ "aarch64-linux" ];
BL31="${armTrustedFirmwareRK3328}/bl31.elf";
filesToInstall = [ "u-boot.itb" "idbloader.img"];
# Derive MAC address from cpuid
# Submitted upstream: https://patchwork.ozlabs.org/patch/1203686/
extraConfig = ''
CONFIG_MISC_INIT_R=y
'';
# Close to being blob free, but the U-Boot TPL causes random memory
# corruption
postBuild = ''
./tools/mkimage -n rk3328 -T rksd -d ${rkbin}/rk33/rk3328_ddr_786MHz_v1.13.bin idbloader.img
cat spl/u-boot-spl.bin >> idbloader.img
filesToInstall = [ "u-boot.itb" "idbloader.img" "u-boot-rockchip.bin" ];
};
# A special build with much lower memory frequency (666 vs 1600 MT/s) which
# makes ROCK64 V2 boards stable. This is necessary because the DDR3 routing
# on that revision is marginal and not uncoditionally stable at the specified
# frequency. If your ROCK64 is unstable you can try this u-boot variant to
# see if it works better for you. The only disadvantage is lowered memory
# bandwidth.
ubootRock64v2 = buildUBoot {
prePatch = ''
substituteInPlace arch/arm/dts/rk3328-rock64-u-boot.dtsi \
--replace rk3328-sdram-lpddr3-1600.dtsi rk3328-sdram-lpddr3-666.dtsi
'';
defconfig = "rock64-rk3328_defconfig";
extraMeta.platforms = [ "aarch64-linux" ];
BL31="${armTrustedFirmwareRK3328}/bl31.elf";
filesToInstall = [ "u-boot.itb" "idbloader.img" "u-boot-rockchip.bin" ];
};
ubootRockPro64 = buildUBoot {

View File

@ -6,13 +6,13 @@
stdenv.mkDerivation rec {
pname = "android-udev-rules";
version = "20231030";
version = "20231104";
src = fetchFromGitHub {
owner = "M0Rf30";
repo = "android-udev-rules";
rev = version;
sha256 = "sha256-+h0FwvfIoluhldOi6cgVDvmNWe1Lvj1SV3pL8Zh+gRM=";
sha256 = "sha256-ziZDu4BWrotG93znEAeZFJ3RffYkotMcsQMFkfDY890=";
};
installPhase = ''

View File

@ -13,13 +13,13 @@
stdenv.mkDerivation rec {
pname = "ksmbd-tools";
version = "3.5.0";
version = "3.5.1";
src = fetchFromGitHub {
owner = "cifsd-team";
repo = pname;
rev = version;
sha256 = "sha256-8mjfKCazigHnuN7Egf11ZuD+nQx7ZTesn0a4LsVvV/M=";
sha256 = "sha256-1Htky39oggDqPYSbF4it2UMIxuoLp0aK+IjGojPgaiU=";
};
buildInputs = [ glib libnl ] ++ lib.optional withKerberos libkrb5;

View File

@ -2,13 +2,13 @@
stdenv.mkDerivation rec {
pname = "powerstat";
version = "0.03.03";
version = "0.04.01";
src = fetchFromGitHub {
owner = "ColinIanKing";
repo = pname;
rev = "V${version}";
hash = "sha256-D8VwczXHUHQ8p03IgYW3t8hOIGHKp0n1c7FpAUWua74=";
hash = "sha256-Wf6V2zaUrirzd3hfkq74mHNqlzxyr8p4B4qe0kLozM8=";
};
installFlags = [

View File

@ -1,22 +1,22 @@
{ lib, stdenv, fetchFromGitHub
, autoreconfHook
, autoreconfHook, pkg-config
, glibcLocales, kmod, coreutils, perl
, dmidecode, hwdata, sqlite
, dmidecode, hwdata, sqlite, libtraceevent
, nixosTests
}:
stdenv.mkDerivation rec {
pname = "rasdaemon";
version = "0.7.0";
version = "0.8.0";
src = fetchFromGitHub {
owner = "mchehab";
repo = "rasdaemon";
rev = "v${version}";
sha256 = "sha256-oLwR+bNgKceVgLTOLYiKHNUkRmLouaQshdp/8UJnfqg=";
sha256 = "sha256-BX3kc629FOh5cnD6Sa/69wKdhmhT3Rpz5ZvhnD4MclQ=";
};
nativeBuildInputs = [ autoreconfHook ];
nativeBuildInputs = [ autoreconfHook pkg-config ];
buildInputs = [
coreutils
@ -24,6 +24,7 @@ stdenv.mkDerivation rec {
hwdata
kmod
sqlite
libtraceevent
(perl.withPackages (ps: with ps; [ DBI DBDSQLite ]))
]
++ lib.optionals (!stdenv.isAarch64) [ dmidecode ];
@ -32,20 +33,8 @@ stdenv.mkDerivation rec {
"--sysconfdir=/etc"
"--localstatedir=/var"
"--with-sysconfdefdir=${placeholder "out"}/etc/sysconfig"
"--enable-sqlite3"
"--enable-aer"
"--enable-mce"
"--enable-extlog"
"--enable-non-standard"
"--enable-abrt-report"
"--enable-hisi-ns-decode"
"--enable-devlink"
"--enable-diskerror"
"--enable-memory-failure"
"--enable-memory-ce-pfa"
"--enable-amp-ns-decode"
]
++ lib.optionals (stdenv.isAarch64) [ "--enable-arm" ];
"--enable-all"
];
# The installation attempts to create the following directories:
# /var/lib/rasdaemon

View File

@ -19,7 +19,8 @@ stdenv.mkDerivation {
meta = with lib; {
homepage = "https://www.pjrc.com/teensy/00-teensy.rules";
description = ''
description = "udev rules for the Teensy microcontrollers";
longDescription = ''
udev rules that give non-root users permission to communicate with the
Teensy family of microcontrolers.
@ -28,7 +29,7 @@ stdenv.mkDerivation {
this package's homepage) for possible workarounds.
'';
platforms = platforms.linux;
license = "unknown";
license = licenses.unfree; # No license specified.
maintainers = with maintainers; [ aidalgol ];
};
}

View File

@ -0,0 +1,18 @@
--- a/bin/startup.sh
+++ b/bin/startup.sh
@@ -66,12 +66,9 @@ fi
#Find the configuration directory: GEOSERVER_DATA_DIR
if [ -z "${GEOSERVER_DATA_DIR:-}" ]; then
- if [ -r "${GEOSERVER_HOME}/data_dir" ]; then
- export GEOSERVER_DATA_DIR="${GEOSERVER_HOME}/data_dir"
- else
- echo "No GEOSERVER_DATA_DIR found, using application defaults"
- GEOSERVER_DATA_DIR=""
- fi
+ echo "GEOSERVER_DATA_DIR is not provided. Using $(pwd)/geoserver/data_dir directory"
+ mkdir -p "$(pwd)"/geoserver/data_dir
+ GEOSERVER_DATA_DIR="$(pwd)/geoserver/data_dir"
fi
cd "${GEOSERVER_HOME}" || exit 1

View File

@ -1,4 +1,12 @@
{ lib, stdenv, fetchurl, unzip, jre, makeWrapper }:
{ lib
, fetchurl
, makeWrapper
, nixosTests
, stdenv
, jre
, unzip
}:
stdenv.mkDerivation rec {
pname = "geoserver";
@ -9,6 +17,11 @@ stdenv.mkDerivation rec {
sha256 = "sha256-xX1rAONMh5XSWGPXkVMemAvG34DDNmu2018HsTvY7G0=";
};
patches = [
# set GEOSERVER_DATA_DIR to current working directory if not provided
./data-dir.patch
];
sourceRoot = ".";
nativeBuildInputs = [ unzip makeWrapper ];
@ -27,12 +40,16 @@ stdenv.mkDerivation rec {
runHook postInstall
'';
passthru = {
tests.geoserver = nixosTests.geoserver;
};
meta = with lib; {
description = "Open source server for sharing geospatial data";
homepage = "https://geoserver.org/";
sourceProvenance = with sourceTypes; [ binaryBytecode ];
license = licenses.gpl2Plus;
maintainers = with maintainers; [ sikmir ];
maintainers = teams.geospatial.members;
platforms = platforms.all;
};
}

View File

@ -1,6 +1,6 @@
{ stdenv
, yarn
, fixup_yarn_lock
, prefetch-yarn-deps
, nodejs-slim
, fetchFromGitHub
, fetchYarnDeps
@ -18,12 +18,12 @@ stdenv.mkDerivation rec {
hash = "sha256-ejHzo6NHCMlNiYePWvfMY9Blb58pj3UQ5PFI0V84flI=";
};
nativeBuildInputs = [ yarn fixup_yarn_lock nodejs-slim ];
nativeBuildInputs = [ yarn prefetch-yarn-deps nodejs-slim ];
postPatch = ''
export HOME=$NIX_BUILD_TOP/fake_home
yarn config --offline set yarn-offline-mirror $offlineCache
fixup_yarn_lock yarn.lock
fixup-yarn-lock yarn.lock
yarn install --offline --frozen-lockfile --ignore-scripts --no-progress --non-interactive
patchShebangs node_modules/
'';

View File

@ -2,7 +2,7 @@
, buildGoModule
, fetchFromGitHub
, fetchYarnDeps
, fixup_yarn_lock
, prefetch-yarn-deps
, grafana-agent
, nixosTests
, nodejs
@ -43,7 +43,7 @@ buildGoModule rec {
"-X ${prefix}.BuildDate=1980-01-01T00:00:00Z"
];
nativeBuildInputs = [ fixup_yarn_lock nodejs yarn ];
nativeBuildInputs = [ prefetch-yarn-deps nodejs yarn ];
tags = [
"builtinassets"
@ -62,7 +62,7 @@ buildGoModule rec {
export HOME="$TMPDIR"
pushd web/ui
fixup_yarn_lock yarn.lock
fixup-yarn-lock yarn.lock
yarn config --offline set yarn-offline-mirror $frontendYarnOfflineCache
yarn install --offline --frozen-lockfile --ignore-platform --ignore-scripts --no-progress --non-interactive
patchShebangs node_modules

View File

@ -30,11 +30,9 @@ services.nextcloud = {
package = pkgs.nextcloud25;
hostName = "localhost";
config.adminpassFile = "${pkgs.writeText "adminpass" "hunter2"}";
extraApps = with pkgs.nextcloud25Packages.apps; [
mail
calendar
contacts
];
extraApps = with pkgs.nextcloud25Packages.apps; {
inherit mail calendar contact;
};
extraAppsEnable = true;
};
```

View File

@ -11,7 +11,7 @@
rustPlatform.buildRustPackage rec {
pname = "nushell_plugin_formats";
inherit (nushell) version src;
cargoHash = "sha256-fpqXXgvTuRnU4NkJ/B4m3VTkeujE7sMWOma4KEvlxYw=";
cargoHash = "sha256-rryKNRCf8i/jlqN5O6+UDvV5tDNxcVxS+KewCaIlZVM=";
nativeBuildInputs = [ pkg-config ];
buildInputs = lib.optionals stdenv.isDarwin [ IOKit Foundation ];

View File

@ -11,7 +11,7 @@
rustPlatform.buildRustPackage rec {
pname = "nushell_plugin_gstat";
inherit (nushell) version src;
cargoHash = "sha256-o/cOHlwo2TBlO+e6DBBKf5x6bgVGozVNMGRb2nCWPT4=";
cargoHash = "sha256-9wUOKj6kMfXEFdYvVBqxme4MRkR6HORx+spTVT9t9VM=";
nativeBuildInputs = [ pkg-config ];
buildInputs = [ openssl ] ++ lib.optionals stdenv.isDarwin [ Security ];

View File

@ -9,16 +9,16 @@
rustPlatform.buildRustPackage {
pname = "nu-plugin-net";
version = "unstable-2023-10-24";
version = "unstable-2023-11-15";
src = fetchFromGitHub {
owner = "fennewald";
repo = "nu_plugin_net";
rev = "8b63996ea2ff8bf282c9b0f5f6d01960cfe3d074";
hash = "sha256-QFo2cMI41GDBsuPNay5MyVyY+HdrLjAWedz8kDNA3JY=";
rev = "20a0a18be0e11650f453d6f186d99d3691a1cd6a";
hash = "sha256-GHUis38mz9sI5s+E/eLyA0XPyuNpPoS1TyhU3pMEsvs=";
};
cargoHash = "sha256-ekfUQOsaWdpDASnRzoYh5Y/p3BnP7rvSYCCWQ6DJDnE=";
cargoHash = "sha256-T5kUVtJty8pfPihtkJqCgF3AUFcBuu2cwX4cVGM8n5U=";
nativeBuildInputs = [
rustPlatform.bindgenHook

View File

@ -10,7 +10,7 @@
rustPlatform.buildRustPackage {
pname = "nushell_plugin_query";
inherit (nushell) version src;
cargoHash = "sha256-seqr4FZHg/f/8iMwSurJRKr41pUbKKti6H2z/JfYkuU=";
cargoHash = "sha256-HCGq0tvSNvWlZBD0Kn9H9qKFW+VgGON3z2ly3qaURSE=";
buildInputs = lib.optionals stdenv.isDarwin [ IOKit CoreFoundation ];
cargoBuildFlags = [ "--package nu_plugin_query" ];

View File

@ -2,13 +2,13 @@
buildGoModule rec {
pname = "exoscale-cli";
version = "1.74.4";
version = "1.75.0";
src = fetchFromGitHub {
owner = "exoscale";
repo = "cli";
rev = "v${version}";
sha256 = "sha256-PzjIcdzEmX+0PRurOX5ZQ4LQnBny9Av8eKhPsyiZb6c=";
sha256 = "sha256-9BGcP35nTEHccDKLIBNgZbU2xjtFAKtEHLRt8kTlgv0=";
};
vendorHash = null;

View File

@ -1,12 +1,25 @@
{lib, stdenv, fetchurl, apacheAnt, jdk, axis2, dbus_java }:
{lib, stdenv, fetchFromGitHub, fetchpatch, apacheAnt, jdk, axis2, dbus_java }:
stdenv.mkDerivation rec {
pname = "DisnixWebService";
version = "0.10.1";
src = fetchurl {
url = "https://github.com/svanderburg/DisnixWebService/releases/download/DisnixWebService-${version}/DisnixWebService-${version}.tar.gz";
sha256 = "02jxbgn9a0c9cr6knzp78bp9wiywzczy89wav7yxhg79vff8a1gr";
src = fetchFromGitHub {
owner = "svanderburg";
repo = "DisnixWebService";
rev = "refs/tags/DisnixWebService-${version}";
hash = "sha256-zcYr2Ytx4pevSthTQLpnQ330wDxN9dWsZA20jbO6PxQ=";
};
patches = [
# Correct the DisnixWebService build for compatibility with Axis2 1.8.1
# See https://github.com/svanderburg/DisnixWebService/pull/2
(fetchpatch {
url = "https://github.com/svanderburg/DisnixWebService/commit/cee99c6af744b5dda16728a70ebd2800f61871a0.patch";
hash = "sha256-4rSEN8AwivUXUCIUYFBRIoE19jVDv+Vpgakmy8fR06A=";
})
];
buildInputs = [ apacheAnt jdk ];
PREFIX = "\${env.out}";
AXIS2_LIB = "${axis2}/lib";
@ -22,6 +35,8 @@ stdenv.mkDerivation rec {
meta = {
description = "A SOAP interface and client for Disnix";
homepage = "https://github.com/svanderburg/DisnixWebService";
changelog = "https://github.com/svanderburg/DisnixWebService/blob/DisnixWebService-${version}/NEWS.txt";
license = lib.licenses.mit;
maintainers = [ lib.maintainers.sander ];
platforms = lib.platforms.linux;

View File

@ -13,7 +13,7 @@
buildGoModule rec {
pname = "gopass";
version = "1.15.8";
version = "1.15.9";
nativeBuildInputs = [ installShellFiles makeWrapper ];
@ -21,10 +21,10 @@ buildGoModule rec {
owner = "gopasspw";
repo = "gopass";
rev = "v${version}";
hash = "sha256-l8Ce0ioMnSlet+PMrQCMvyH3IvmQaE1MQSJR9myyLB8=";
hash = "sha256-GGaFQyO/4FVG9gVW2xMiJJKEl+OECsvAdKvgonSDLG0=";
};
vendorHash = "sha256-xyQTlbTPAC2iG8XQ4oEHBXjfXauwuBhaTbsew23nlVw=";
vendorHash = "sha256-3x4AuUpsAdIm99tVAF2juFAaDhNKe2eMpWWrbsr3tq8=";
subPackages = [ "." ];

View File

@ -7,18 +7,18 @@
buildGoModule rec {
pname = "lux";
version = "0.21.0";
version = "0.22.0";
src = fetchFromGitHub {
owner = "iawia002";
repo = "lux";
rev = "v${version}";
hash = "sha256-LCYWfF7O8wByCJNDi2BZsI7EU6wJqhcr/sbNOoQ2Src=";
hash = "sha256-v74+Ykz9aro1x+9psg2LnuodKE2/pCw9knZop0etQOg=";
};
nativeBuildInputs = [ makeWrapper ];
vendorHash = "sha256-wW/jrsurmyLcDX+58lp0M+snJ2avEs0HciNZ8BgIqrI=";
vendorHash = "sha256-1VZFKDoSuSUmYw7g6SwB/dXnFaw7+cGHKfgT96HaI/o=";
ldflags = [
"-s"

View File

@ -16395,6 +16395,8 @@ with pkgs;
indradb-server
indradb-client;
instawow = callPackage ../games/instawow/default.nix { };
intel-graphics-compiler = callPackage ../development/compilers/intel-graphics-compiler { };
intercal = callPackage ../development/compilers/intercal { };
@ -28319,9 +28321,9 @@ with pkgs;
nu_scripts = callPackage ../shells/nushell/nu_scripts { };
nushellPlugins = callPackage ../shells/nushell/plugins {
nushellPlugins = recurseIntoAttrs (callPackage ../shells/nushell/plugins {
inherit (darwin.apple_sdk_11_0.frameworks) IOKit CoreFoundation Foundation Security;
};
});
nettools = if stdenv.isLinux
then callPackage ../os-specific/linux/net-tools { }
@ -28874,6 +28876,7 @@ with pkgs;
ubootRaspberryPi4_64bit
ubootRaspberryPiZero
ubootRock64
ubootRock64v2
ubootRockPi4
ubootRockPro64
ubootROCPCRK3399

View File

@ -600,7 +600,15 @@ lib.makeScope pkgs.newScope (self: with self; {
doCheck = false;
}
{ name = "sodium"; buildInputs = [ libsodium ]; }
{ name = "sqlite3"; buildInputs = [ sqlite ]; }
{
name = "sqlite3";
buildInputs = [ sqlite ];
# The `sqlite3_bind_bug68849.phpt` test is currently broken for i686 Linux systems since sqlite 3.43, cf.:
# - https://github.com/php/php-src/issues/12076
# - https://www.sqlite.org/forum/forumpost/abbb95376ec6cd5f
patches = lib.optional (stdenv.isi686 && stdenv.isLinux) ../development/interpreters/php/skip-sqlite3_bind_bug68849.phpt.patch;
}
{ name = "sysvmsg"; }
{ name = "sysvsem"; }
{ name = "sysvshm"; }

View File

@ -3418,6 +3418,8 @@ self: super: with self; {
dynd = callPackage ../development/python-modules/dynd { };
e3-core = callPackage ../development/python-modules/e3-core { };
eagle100 = callPackage ../development/python-modules/eagle100 { };
easydict = callPackage ../development/python-modules/easydict { };