Merge master into staging-next

This commit is contained in:
github-actions[bot] 2021-01-29 00:43:53 +00:00 committed by GitHub
commit 98b8e8ebf8
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
32 changed files with 269 additions and 112 deletions

View File

@ -3,7 +3,7 @@
{config, pkgs, lib, ...}: {config, pkgs, lib, ...}:
let let
inherit (lib) mkOption mkIf; inherit (lib) mkOption mkIf types;
cfg = config.services.gvpe; cfg = config.services.gvpe;
@ -46,12 +46,14 @@ in
nodename = mkOption { nodename = mkOption {
default = null; default = null;
type = types.nullOr types.str;
description ='' description =''
GVPE node name GVPE node name
''; '';
}; };
configText = mkOption { configText = mkOption {
default = null; default = null;
type = types.nullOr types.lines;
example = '' example = ''
tcp-port = 655 tcp-port = 655
udp-port = 655 udp-port = 655
@ -72,6 +74,7 @@ in
}; };
configFile = mkOption { configFile = mkOption {
default = null; default = null;
type = types.nullOr types.path;
example = "/root/my-gvpe-conf"; example = "/root/my-gvpe-conf";
description = '' description = ''
GVPE config file, if already present GVPE config file, if already present
@ -79,12 +82,14 @@ in
}; };
ipAddress = mkOption { ipAddress = mkOption {
default = null; default = null;
type = types.nullOr types.str;
description = '' description = ''
IP address to assign to GVPE interface IP address to assign to GVPE interface
''; '';
}; };
subnet = mkOption { subnet = mkOption {
default = null; default = null;
type = types.nullOr types.str;
example = "10.0.0.0/8"; example = "10.0.0.0/8";
description = '' description = ''
IP subnet assigned to GVPE network IP subnet assigned to GVPE network
@ -92,6 +97,7 @@ in
}; };
customIFSetup = mkOption { customIFSetup = mkOption {
default = ""; default = "";
type = types.lines;
description = '' description = ''
Additional commands to apply in ifup script Additional commands to apply in ifup script
''; '';

View File

@ -16,16 +16,19 @@ in {
description = '' description = ''
product.data file. Defaults to the one supplied with installation package. product.data file. Defaults to the one supplied with installation package.
''; '';
type = types.path;
}; };
frequency = mkOption { frequency = mkOption {
default = 30; default = 30;
type = types.int;
description = '' description = ''
Update virus definitions every X minutes. Update virus definitions every X minutes.
''; '';
}; };
licenseKeyfile = mkOption { licenseKeyfile = mkOption {
type = types.path;
description = '' description = ''
License keyfile. Defaults to the one supplied with installation package. License keyfile. Defaults to the one supplied with installation package.
''; '';

View File

@ -41,6 +41,7 @@ in {
openFilesLimit = mkOption { openFilesLimit = mkOption {
default = openFilesLimit; default = openFilesLimit;
type = types.either types.int types.str;
description = '' description = ''
Number of files to allow deluged to open. Number of files to allow deluged to open.
''; '';

View File

@ -101,12 +101,14 @@ let
buildPath = "out/${buildType}"; buildPath = "out/${buildType}";
libExecPath = "$out/libexec/${packageName}"; libExecPath = "$out/libexec/${packageName}";
chromiumVersionAtLeast = min-version:
versionAtLeast upstream-info.version min-version;
versionRange = min-version: upto-version: versionRange = min-version: upto-version:
let inherit (upstream-info) version; let inherit (upstream-info) version;
result = versionAtLeast version min-version && versionOlder version upto-version; result = versionAtLeast version min-version && versionOlder version upto-version;
stable-version = (importJSON ./upstream-info.json).stable.version; ungoogled-version = (importJSON ./upstream-info.json).ungoogled.version;
in if versionAtLeast stable-version upto-version in if versionAtLeast ungoogled-version upto-version
then warn "chromium: stable version ${stable-version} is newer than a patchset bounded at ${upto-version}. You can safely delete it." then warn "chromium: ungoogled version ${ungoogled-version} is newer than a patchset bounded at ${upto-version}. You can safely delete it."
result result
else result; else result;
@ -269,6 +271,10 @@ let
use_system_minigbm = true; use_system_minigbm = true;
use_system_libdrm = true; use_system_libdrm = true;
system_wayland_scanner_path = "${wayland}/bin/wayland-scanner"; system_wayland_scanner_path = "${wayland}/bin/wayland-scanner";
} // optionalAttrs (chromiumVersionAtLeast "89") {
# Disable PGO (defaults to 2 since M89) because it fails without additional changes:
# error: Could not read profile ../../chrome/build/pgo_profiles/chrome-linux-master-1610647094-405a32bcf15e5a84949640f99f84a5b9f61e2f2e.profdata: Unsupported instrumentation profile format version
chrome_pgo_phase = 0;
} // optionalAttrs ungoogled { } // optionalAttrs ungoogled {
chrome_pgo_phase = 0; chrome_pgo_phase = 0;
enable_hangout_services_extension = false; enable_hangout_services_extension = false;

View File

@ -18,22 +18,9 @@
} }
}, },
"beta": { "beta": {
"version": "88.0.4324.96",
"sha256": "17y7x50cx2d3bbz0hna25j8pyqsk0914266mpvrpk5am52xwb5c9",
"sha256bin64": "1v7bpidqs8y3k7kzfp52q8xsdc515mnf9arfw9pp5bsp79fl3rik",
"deps": {
"gn": {
"version": "2020-11-05",
"url": "https://gn.googlesource.com/gn",
"rev": "53d92014bf94c3893886470a1c7c1289f8818db0",
"sha256": "1xcm07qjk6m2czi150fiqqxql067i832adck6zxrishm70c9jbr9"
}
}
},
"dev": {
"version": "89.0.4389.23", "version": "89.0.4389.23",
"sha256": "1d5pv4bhskh4l8x5ygccxwiryf05mwr1qzq1dzn6q82damr6dpq5", "sha256": "1d5pv4bhskh4l8x5ygccxwiryf05mwr1qzq1dzn6q82damr6dpq5",
"sha256bin64": "0d8ikwck7zmwgqni1f1xb44p773dqq096qnj0yg941457b0yg5hs", "sha256bin64": "0swyx2a1gh9mi2jayymcvzwm9cb265ks43wg823abss4q3rskg84",
"deps": { "deps": {
"gn": { "gn": {
"version": "2021-01-07", "version": "2021-01-07",
@ -43,6 +30,19 @@
} }
} }
}, },
"dev": {
"version": "90.0.4400.8",
"sha256": "0z7695r8k1xm5kx7cc42kmcr11dbagcwjak32sglj0sw3hsr2yqz",
"sha256bin64": "11gp2sxaly66qfb2gfxnikq1xad520r32pgshkm2jsb7a7vj7mmf",
"deps": {
"gn": {
"version": "2021-01-14",
"url": "https://gn.googlesource.com/gn",
"rev": "d62642c920e6a0d1756316d225a90fd6faa9e21e",
"sha256": "0f1i079asiznn092vm6lyad96wcs8pxh95fjmjbnaqjaalivsic0"
}
}
},
"ungoogled-chromium": { "ungoogled-chromium": {
"version": "87.0.4280.141", "version": "87.0.4280.141",
"sha256": "0x9k809m36pfirnw2vnr9pk93nxdbgrvna0xf1rs3q91zkbr2x8l", "sha256": "0x9k809m36pfirnw2vnr9pk93nxdbgrvna0xf1rs3q91zkbr2x8l",

View File

@ -12,13 +12,13 @@
stdenv.mkDerivation rec { stdenv.mkDerivation rec {
pname = "lagrange"; pname = "lagrange";
version = "1.0.3"; version = "1.1.0";
src = fetchFromGitHub { src = fetchFromGitHub {
owner = "skyjake"; owner = "skyjake";
repo = "lagrange"; repo = "lagrange";
rev = "v${version}"; rev = "v${version}";
sha256 = "1l9qcymjwg3wzbbi4hcyzfrxyqgz2xdy4ab3lr0zq38v025d794n"; sha256 = "04bp5k1byjbzwnmcx4b7sw68pr2jrj4c21z76jq311hyrmanj6fi";
fetchSubmodules = true; fetchSubmodules = true;
}; };

View File

@ -40,13 +40,13 @@ let
in mkDerivation rec { in mkDerivation rec {
pname = "obs-studio"; pname = "obs-studio";
version = "26.0.2"; version = "26.1.2";
src = fetchFromGitHub { src = fetchFromGitHub {
owner = "obsproject"; owner = "obsproject";
repo = "obs-studio"; repo = "obs-studio";
rev = "refs/tags/${version}"; rev = version;
sha256 = "1bf56z2yb7gq1knqwcqj369c3wl9jr3wll5vlngmfy2gwqrczjmw"; sha256 = "1plr5a7k5scxlibhbknhhk19ipk8las14dzs7v64zx7rhpj00009";
fetchSubmodules = true; fetchSubmodules = true;
}; };

View File

@ -13,13 +13,13 @@
stdenv.mkDerivation rec { stdenv.mkDerivation rec {
pname = "arc-theme"; pname = "arc-theme";
version = "20201013"; version = "20210127";
src = fetchFromGitHub { src = fetchFromGitHub {
owner = "jnsh"; owner = "jnsh";
repo = pname; repo = pname;
rev = version; rev = version;
sha256 = "1x2l1mwjx68dwf3jb1i90c1q8nqsl1wf2zggcn8im6590k5yv39s"; sha256 = "sha256-P7YZTD5bAWNWepL7qsZZAMf8ujzNbHOj/SLx8Fw3bi4=";
}; };
nativeBuildInputs = [ nativeBuildInputs = [

View File

@ -1,18 +1,19 @@
{ lib, stdenv, fetchurl, meson, ninja, pkg-config, efl, pcre, mesa }: { lib, stdenv, fetchurl, meson, ninja, pkg-config, python3, efl, pcre, mesa }:
stdenv.mkDerivation rec { stdenv.mkDerivation rec {
pname = "terminology"; pname = "terminology";
version = "1.8.1"; version = "1.9.0";
src = fetchurl { src = fetchurl {
url = "http://download.enlightenment.org/rel/apps/${pname}/${pname}-${version}.tar.xz"; url = "http://download.enlightenment.org/rel/apps/${pname}/${pname}-${version}.tar.xz";
sha256 = "1fxqjf7g30ix4qxi6366rrax27s3maxq43z2vakwnhz4mp49m9h4"; sha256 = "0v74858yvrrfy0l2pq7yn6izvqhpkb9gw2jpd3a3khjwv8kw6frz";
}; };
nativeBuildInputs = [ nativeBuildInputs = [
meson meson
ninja ninja
pkg-config pkg-config
python3
]; ];
buildInputs = [ buildInputs = [
@ -25,6 +26,10 @@ stdenv.mkDerivation rec {
"-D edje-cc=${efl}/bin/edje_cc" "-D edje-cc=${efl}/bin/edje_cc"
]; ];
postPatch = ''
patchShebangs data/colorschemes/*.py
'';
meta = { meta = {
description = "Powerful terminal emulator based on EFL"; description = "Powerful terminal emulator based on EFL";
homepage = "https://www.enlightenment.org/about-terminology"; homepage = "https://www.enlightenment.org/about-terminology";

View File

@ -126,6 +126,8 @@ lib.makeScope pkgs.newScope (self: with self; {
xfce4-hardware-monitor-plugin = callPackage ./panel-plugins/xfce4-hardware-monitor-plugin.nix { }; xfce4-hardware-monitor-plugin = callPackage ./panel-plugins/xfce4-hardware-monitor-plugin.nix { };
xfce4-i3-workspaces-plugin = callPackage ./panel-plugins/xfce4-i3-workspaces-plugin.nix { };
xfce4-namebar-plugin = callPackage ./panel-plugins/xfce4-namebar-plugin.nix { }; xfce4-namebar-plugin = callPackage ./panel-plugins/xfce4-namebar-plugin.nix { };
xfce4-netload-plugin = callPackage ./panel-plugins/xfce4-netload-plugin { }; xfce4-netload-plugin = callPackage ./panel-plugins/xfce4-netload-plugin { };

View File

@ -0,0 +1,46 @@
{ lib, stdenv, fetchFromGitHub, pkg-config, intltool, gtk3
, libxfce4ui, libxfce4util, xfconf, xfce4-dev-tools, xfce4-panel
, i3ipc-glib
}:
stdenv.mkDerivation rec {
pname = "xfce4-i3-workspaces-plugin";
version = "1.4.0";
src = fetchFromGitHub {
owner = "denesb";
repo = "xfce4-i3-workspaces-plugin";
rev = version;
sha256 = "sha256-+tjxMr0UbE3BLdxBwNr2mZqKSQOOtw69FmN4rk4loyA=";
};
nativeBuildInputs = [
pkg-config
intltool
];
buildInputs = [
gtk3
xfconf
libxfce4ui
libxfce4util
xfce4-dev-tools
xfce4-panel
i3ipc-glib
];
preConfigure = ''
./autogen.sh
patchShebangs .
'';
enableParallelBuilding = true;
meta = with lib; {
homepage = "https://github.com/denesb/xfce4-i3-workspaces-plugin";
description = "Workspace switcher plugin for xfce4-panel which can be used for the i3 window manager";
license = licenses.gpl3Plus;
platforms = platforms.unix;
maintainers = [ maintainers.berbiche ];
};
}

View File

@ -53,5 +53,6 @@ stdenv.mkDerivation rec {
''; '';
license = licenses.zlib; license = licenses.zlib;
maintainers = with maintainers; [ AndersonTorres ]; maintainers = with maintainers; [ AndersonTorres ];
platforms = with platforms; unix;
}; };
} }

View File

@ -17,12 +17,6 @@
, xmlto , xmlto
}: }:
assert
x11Support ->
libX11 != null && libICE != null && libSM != null;
assert enableSystemd -> systemd != null;
stdenv.mkDerivation rec { stdenv.mkDerivation rec {
pname = "dbus"; pname = "dbus";
version = "1.12.20"; version = "1.12.20";

View File

@ -3,14 +3,12 @@
, autoreconfHook , autoreconfHook
, pkg-config , pkg-config
, enableUdev ? stdenv.isLinux && !stdenv.hostPlatform.isMusl , enableUdev ? stdenv.isLinux && !stdenv.hostPlatform.isMusl
, udev ? null , udev
, libobjc , libobjc
, IOKit , IOKit
, withStatic ? false , withStatic ? false
}: }:
assert enableUdev -> udev != null;
stdenv.mkDerivation rec { stdenv.mkDerivation rec {
pname = "libusb"; pname = "libusb";
version = "1.0.24"; version = "1.0.24";

View File

@ -1,35 +1,22 @@
{ stdenv, lib, fetchpatch, fetchFromGitHub, ocaml, findlib }: { lib, buildDunePackage, fetchFromGitHub }:
stdenv.mkDerivation rec { buildDunePackage rec {
version = "2.1.2"; version = "2.1.2";
name = "ocaml${ocaml.version}-opam-file-format-${version}"; pname = "opam-file-format";
useDune2 = true;
src = fetchFromGitHub { src = fetchFromGitHub {
owner = "ocaml"; owner = "ocaml";
repo = "opam-file-format"; repo = pname;
rev = version; rev = version;
sha256 = "19xppn2s3yjid8jc1wh8gdf5mgmlpzby2cf2slmnbyrgln3vj6i2"; sha256 = "19xppn2s3yjid8jc1wh8gdf5mgmlpzby2cf2slmnbyrgln3vj6i2";
}; };
buildInputs = [ ocaml findlib ];
installFlags = [ "LIBDIR=$(OCAMLFIND_DESTDIR)" ];
patches = [
./optional-static.patch
# fix no implementation error for OpamParserTypes
# can be removed at next release presumably
(fetchpatch {
url = "https://github.com/ocaml/opam-file-format/pull/41/commits/2a9a92ec334e0bf2adf8d2b4c1b83f1f9f68df8f.patch";
sha256 = "090nl7yciyyidmbjfryw3wyx7srh6flnrr4zgyhv4kvjsvq944y2";
})
];
meta = { meta = {
description = "Parser and printer for the opam file syntax"; description = "Parser and printer for the opam file syntax";
license = lib.licenses.lgpl21; license = lib.licenses.lgpl21;
maintainers = [ lib.maintainers.vbgl ]; maintainers = [ lib.maintainers.vbgl ];
inherit (src.meta) homepage; inherit (src.meta) homepage;
inherit (ocaml.meta) platforms;
}; };
} }

View File

@ -1,13 +0,0 @@
diff -u a/Makefile b/Makefile
--- a/Makefile
+++ b/Makefile
@@ -1,1 +1,5 @@
-TARGETS = opam-file-format.cma opam-file-format.cmxa opam-file-format.cmxs
+TARGETS = opam-file-format.cma opam-file-format.cmxa
+
+ifeq "$(NATDYNLINK)" "true"
+TARGETS = $(TARGETS) opam-file-format.cmxs
+endif
all: $(TARGETS)

View File

@ -6,12 +6,12 @@
buildPythonPackage rec { buildPythonPackage rec {
pname = "azure-mgmt-synapse"; pname = "azure-mgmt-synapse";
version = "0.6.0"; version = "0.7.0";
disabled = pythonOlder "3"; disabled = pythonOlder "3";
src = fetchPypi { src = fetchPypi {
inherit pname version; inherit pname version;
sha256 = "f81cb52b220774aab93ffcf25bdc17e03fd84b6916836640789f86fbf636b984"; sha256 = "3cf37df471f75441b0afe98a0f3a548434e9bc6a6426dca8c089950b5423f63f";
extension = "zip"; extension = "zip";
}; };

View File

@ -5,6 +5,7 @@
, apispec , apispec
, colorama , colorama
, click , click
, email_validator
, flask , flask
, flask-babel , flask-babel
, flask_login , flask_login
@ -19,18 +20,17 @@
, python-dateutil , python-dateutil
, prison , prison
, pyjwt , pyjwt
, pyyaml
, sqlalchemy-utils , sqlalchemy-utils
}: }:
buildPythonPackage rec { buildPythonPackage rec {
pname = "flask-appbuilder"; pname = "flask-appbuilder";
version = "2.3.0"; version = "3.1.1";
src = fetchPypi { src = fetchPypi {
pname = "Flask-AppBuilder"; pname = "Flask-AppBuilder";
inherit version; inherit version;
sha256 = "04bsswi7daaqda01a83rd1f2gq6asii520f9arjf7bsy24pmbprc"; sha256 = "076b020b0ba125339a2e710e74eab52648cde2b18599f7cb0fa1eada9bbb648c";
}; };
checkInputs = [ checkInputs = [
@ -41,6 +41,7 @@ buildPythonPackage rec {
apispec apispec
colorama colorama
click click
email_validator
flask flask
flask-babel flask-babel
flask_login flask_login
@ -56,21 +57,18 @@ buildPythonPackage rec {
prison prison
pyjwt pyjwt
sqlalchemy-utils sqlalchemy-utils
pyyaml
]; ];
postPatch = '' postPatch = ''
substituteInPlace setup.py \ substituteInPlace setup.py \
--replace "apispec[yaml]>=1.1.1, <2" "apispec" \ --replace "apispec[yaml]>=3.3, <4" "apispec" \
--replace "jsonschema>=3.0.1, <4" "jsonschema" \
--replace "marshmallow>=2.18.0, <4.0.0" "marshmallow" \
--replace "PyJWT>=1.7.1" "PyJWT" \
--replace "Flask-SQLAlchemy>=2.4, <3" "Flask-SQLAlchemy" \
--replace "Flask-JWT-Extended>=3.18, <4" "Flask-JWT-Extended" \
--replace "Flask-Login>=0.3, <0.5" "Flask-Login" \ --replace "Flask-Login>=0.3, <0.5" "Flask-Login" \
--replace "Flask-Babel>=1, <2" "Flask-Babel" --replace "Flask-Babel>=1, <2" "Flask-Babel" \
--replace "marshmallow-sqlalchemy>=0.22.0, <0.24.0" "marshmallow-sqlalchemy" \
--replace "prison>=0.1.3, <1.0.0" "prison"
''; '';
# majority of tests require network access or mongo # majority of tests require network access or mongo
doCheck = false; doCheck = false;

View File

@ -7,11 +7,11 @@
buildPythonPackage rec { buildPythonPackage rec {
pname = "isbnlib"; pname = "isbnlib";
version = "3.10.5"; version = "3.10.6";
src = fetchPypi { src = fetchPypi {
inherit pname version; inherit pname version;
sha256 = "cb3b400b37a73cf4a0bc698be2ea414e78ff117867baed9313aa8c97596e1b98"; sha256 = "b324c7c8689741bba6d71d1369d49780a24fe946b11a3c005d56e09bf705cd19";
}; };
checkInputs = [ checkInputs = [
@ -22,6 +22,8 @@ buildPythonPackage rec {
# requires network connection # requires network connection
doCheck = false; doCheck = false;
pythonImportsCheck = [ "isbnlib" ];
meta = with lib; { meta = with lib; {
description = "Extract, clean, transform, hyphenate and metadata for ISBNs"; description = "Extract, clean, transform, hyphenate and metadata for ISBNs";
homepage = "https://github.com/xlcnd/isbnlib"; homepage = "https://github.com/xlcnd/isbnlib";

View File

@ -40,8 +40,7 @@ buildPythonPackage rec {
--replace "python-slugify>=1.2.6,<4" "python-slugify" --replace "python-slugify>=1.2.6,<4" "python-slugify"
''; '';
# pytest seems to hang with python3.8 doCheck = !stdenv.isDarwin;
doCheck = !stdenv.isDarwin && pythonOlder "3.8";
checkInputs = ([ checkInputs = ([
pytest pytestcov pytest pytestcov

View File

@ -11,13 +11,13 @@
buildPythonPackage rec { buildPythonPackage rec {
pname = "xapp"; pname = "xapp";
version = "2.0.1"; version = "2.0.2";
src = fetchFromGitHub { src = fetchFromGitHub {
owner = "linuxmint"; owner = "linuxmint";
repo = "python-xapp"; repo = "python-xapp";
rev = version; rev = version;
sha256 = "1pp3z4q6ryxcc26kaq222j53ji110n2v7rx29c7vy1fbb8mq64im"; sha256 = "1zgh4k96i939w4scikajmlriayk1zg3md16f8fckjvqbphpxrysl";
}; };
propagatedBuildInputs = [ propagatedBuildInputs = [
@ -33,6 +33,9 @@ buildPythonPackage rec {
substituteInPlace "xapp/os.py" --replace "/usr/bin/pkexec" "${polkit}/bin/pkexec" substituteInPlace "xapp/os.py" --replace "/usr/bin/pkexec" "${polkit}/bin/pkexec"
''; '';
doCheck = false;
pythonImportsCheck = [ "xapp" ];
meta = with lib; { meta = with lib; {
homepage = "https://github.com/linuxmint/python-xapp"; homepage = "https://github.com/linuxmint/python-xapp";
description = "Cross-desktop libraries and common resources for python"; description = "Cross-desktop libraries and common resources for python";

View File

@ -6,12 +6,12 @@ let
zmusic-src = fetchFromGitHub { zmusic-src = fetchFromGitHub {
owner = "coelckers"; owner = "coelckers";
repo = "zmusic"; repo = "zmusic";
rev = "2d0ea861174f9e2031400ab29f5bcc8425521cc6"; rev = "bff02053bea30bd789e45f60b90db3ffc69c8cc8";
sha256 = "1ac7lhbzwfr0fsyv7n70hvb8imzngxn1qyanmv9j26j0h90hhl8a"; sha256 = "0vpr79gpdbhslg5qxyd1qxlv5akgli26skm1vb94yd8v69ymdcy2";
}; };
zmusic = stdenv.mkDerivation { zmusic = stdenv.mkDerivation {
pname = "zmusic"; pname = "zmusic";
version = "1.1.0"; version = "1.1.3";
src = zmusic-src; src = zmusic-src;
@ -28,13 +28,13 @@ let
gzdoom = stdenv.mkDerivation rec { gzdoom = stdenv.mkDerivation rec {
pname = "gzdoom"; pname = "gzdoom";
version = "4.4.2"; version = "4.5.0";
src = fetchFromGitHub { src = fetchFromGitHub {
owner = "coelckers"; owner = "coelckers";
repo = "gzdoom"; repo = "gzdoom";
rev = "g${version}"; rev = "g${version}";
sha256 = "1xkkmbsdv64wyb9r2fv5mwyqw0bjryk528jghdrh47pndmjs9a38"; sha256 = "0kmqnyhdi5psi7zwrx9j3pz0cplypsvhg4cr8w2jbawh6jb71sk9";
fetchSubmodules = true; fetchSubmodules = true;
}; };

View File

@ -9,7 +9,7 @@
, pam , pam
, dbus , dbus
, enableSystemd ? stdenv.isLinux && !stdenv.hostPlatform.isMusl , enableSystemd ? stdenv.isLinux && !stdenv.hostPlatform.isMusl
, systemd ? null , systemd
, acl , acl
, gmp , gmp
, darwin , darwin
@ -20,8 +20,6 @@
, coreutils , coreutils
}: }:
assert enableSystemd -> systemd != null;
### IMPORTANT: before updating cups, make sure the nixos/tests/printing.nix test ### IMPORTANT: before updating cups, make sure the nixos/tests/printing.nix test
### works at least for your platform. ### works at least for your platform.

View File

@ -0,0 +1,42 @@
{ stdenv
, lib
, fetchFromGitHub
, SDL2
}:
stdenv.mkDerivation rec {
pname = "x16-emulator";
version = "38";
src = fetchFromGitHub {
owner = "commanderx16";
repo = pname;
rev = "r${version}";
sha256 = "WNRq/m97NpOBWIk6mtxBAKmkxCGWacWjXeOvIhBrkYE=";
};
dontConfigure = true;
buildInputs = [ SDL2 ];
installPhase = ''
runHook preInstall
install -D --mode 755 --target-directory $out/bin/ x16emu
install -D --mode 444 --target-directory $out/share/doc/${pname} README.md
runHook postInstall
'';
meta = with lib; {
homepage = "https://www.commanderx16.com/forum/index.php?/home/";
description = "The official emulator of CommanderX16 8-bit computer";
license = licenses.bsd2;
maintainers = with maintainers; [ AndersonTorres ];
platforms = SDL2.meta.platforms;
};
passthru = {
# upstream project recommends emulator and rom synchronized;
# passing through the version is useful to ensure this
inherit version;
};
}

View File

@ -0,0 +1,46 @@
{ stdenv
, lib
, fetchFromGitHub
, cc65
}:
stdenv.mkDerivation rec {
pname = "x16-rom";
version = "38";
src = fetchFromGitHub {
owner = "commanderx16";
repo = pname;
rev = "r${version}";
sha256 = "xaqF0ppB7I7ST8Uh3jPbC14uRAb/WH21tHlNeTvYpoI=";
};
nativeBuildInputs = [ cc65 ];
postPatch = ''
patchShebangs scripts/
'';
dontConfigure = true;
installPhase = ''
runHook preInstall
install -D --mode 444 --target-directory $out/share/${pname} build/x16/rom.bin
install -D --mode 444 --target-directory $out/share/doc/${pname} README.md
runHook postInstall
'';
meta = with lib; {
homepage = "https://www.commanderx16.com/forum/index.php?/home/";
description = "ROM file for CommanderX16 8-bit computer";
license = licenses.bsd2;
maintainers = with maintainers; [ AndersonTorres ];
platforms = cc65.meta.platforms;
};
passthru = {
# upstream project recommends emulator and rom synchronized;
# passing through the version is useful to ensure this
inherit version;
};
}

View File

@ -1,5 +1,5 @@
{ lib, stdenv, fetchFromGitHub, automake, autoconf, libtool, gettext { lib, stdenv, fetchFromGitHub, automake, autoconf, libtool, gettext
, util-linux, openisns, openssl, kmod, perl, systemd, pkgconf , util-linux, open-isns, openssl, kmod, perl, systemd, pkgconf
}: }:
stdenv.mkDerivation rec { stdenv.mkDerivation rec {
@ -7,7 +7,7 @@ stdenv.mkDerivation rec {
version = "2.1.3"; version = "2.1.3";
nativeBuildInputs = [ autoconf automake gettext libtool perl pkgconf ]; nativeBuildInputs = [ autoconf automake gettext libtool perl pkgconf ];
buildInputs = [ kmod openisns.lib openssl systemd util-linux ]; buildInputs = [ kmod open-isns.lib openssl systemd util-linux ];
src = fetchFromGitHub { src = fetchFromGitHub {
owner = "open-iscsi"; owner = "open-iscsi";

View File

@ -1,16 +1,29 @@
{ lib, stdenv, openssl, fetchFromGitHub }: { lib, stdenv, openssl, fetchFromGitHub, fetchpatch }:
stdenv.mkDerivation rec { stdenv.mkDerivation rec {
pname = "open-isns"; pname = "open-isns";
version = "0.99"; version = "0.100";
src = fetchFromGitHub { src = fetchFromGitHub {
owner = "gonzoleeman"; owner = "open-iscsi";
repo = "open-isns"; repo = "open-isns";
rev = "v${version}"; rev = "v${version}";
sha256 = "0m294aiv80rkihacw5094093pc0kd5bkbxqgs6i32jsglxy33hvf"; sha256 = "0d0dz965azsisvfl5wpp1b7m0q0fmaz5r7x5dfybkry551sbcydr";
}; };
patches = [
(fetchpatch {
name = "deprecated-sighold-sigrelease";
url = "https://github.com/open-iscsi/open-isns/commit/e7dac76ce61039fefa58985c955afccb60dabe87.patch";
sha256 = "15v106xn3ns7z4nlpby7kkm55rm9qncsmy2iqc4ifli0h67g34id";
})
(fetchpatch {
name = "warn_unused_result";
url = "https://github.com/open-iscsi/open-isns/commit/4c39cb09735a494099fba0474d25ff26800de952.patch";
sha256 = "1jlydrh9rgkky698jv0mp2wbbizn90q5wjbay086l0h6iqp8ibc3";
})
];
propagatedBuildInputs = [ openssl ]; propagatedBuildInputs = [ openssl ];
outputs = [ "out" "lib" ]; outputs = [ "out" "lib" ];
outputInclude = "lib"; outputInclude = "lib";
@ -20,10 +33,11 @@ stdenv.mkDerivation rec {
installFlags = [ "etcdir=$(out)/etc" "vardir=$(out)/var/lib/isns" ]; installFlags = [ "etcdir=$(out)/etc" "vardir=$(out)/var/lib/isns" ];
installTargets = [ "install" "install_hdrs" "install_lib" ]; installTargets = [ "install" "install_hdrs" "install_lib" ];
meta = { meta = with lib; {
description = "iSNS server and client for Linux"; description = "iSNS server and client for Linux";
license = lib.licenses.lgpl21; license = licenses.lgpl21Only;
homepage = "https://github.com/gonzoleeman/open-isns"; homepage = "https://github.com/open-iscsi/open-isns";
platforms = lib.platforms.linux; platforms = platforms.linux;
maintainers = [ maintainers.markuskowa ];
}; };
} }

View File

@ -1,4 +1,4 @@
{ lib, stdenv, fetchFromGitHub, rustPlatform, Security }: { lib, stdenv, fetchFromGitHub, rustPlatform, installShellFiles, Security }:
rustPlatform.buildRustPackage rec { rustPlatform.buildRustPackage rec {
pname = "procs"; pname = "procs";
@ -13,6 +13,15 @@ rustPlatform.buildRustPackage rec {
cargoSha256 = "sha256-ilSDLbPQnmhQcNbtKCpUNmyZY0JUY/Ksg0sj/t7veT0="; cargoSha256 = "sha256-ilSDLbPQnmhQcNbtKCpUNmyZY0JUY/Ksg0sj/t7veT0=";
nativeBuildInputs = [ installShellFiles ];
postInstall = ''
for shell in bash fish zsh; do
$out/bin/procs --completion $shell > procs.$shell
installShellCompletion procs.$shell
done
'';
buildInputs = lib.optional stdenv.isDarwin Security; buildInputs = lib.optional stdenv.isDarwin Security;
meta = with lib; { meta = with lib; {

View File

@ -226,6 +226,12 @@ in rec {
url = "https://github.com/NixOS/nix/commit/d4870462f8f539adeaa6dca476aff6f1f31e1981.patch"; url = "https://github.com/NixOS/nix/commit/d4870462f8f539adeaa6dca476aff6f1f31e1981.patch";
sha256 = "mTvLvuxb2QVybRDgntKMq+b6da/s3YgM/ll2rWBeY/Y="; sha256 = "mTvLvuxb2QVybRDgntKMq+b6da/s3YgM/ll2rWBeY/Y=";
}) })
# Fix the ETag bug. PR merged. Remove when updating to >= 20210125
# https://github.com/NixOS/nixpkgs/pull/109309#issuecomment-768331750
(fetchpatch {
url = "https://github.com/NixOS/nix/commit/c5b42c5a42138329c6d02da0d8a53cb59c6077f4.patch";
sha256 = "sha256-d4RNOKMxa4NMbFgYcqWRv2ByHt8F/XUWV+6P9qHz7S4=";
})
]; ];
inherit storeDir stateDir confDir boehmgc; inherit storeDir stateDir confDir boehmgc;

View File

@ -1,5 +1,5 @@
{ stdenv { lib
, lib , stdenv
, fetchFromGitHub , fetchFromGitHub
, bison , bison
, pam , pam
@ -10,13 +10,13 @@
stdenv.mkDerivation rec { stdenv.mkDerivation rec {
pname = "doas"; pname = "doas";
version = "6.8"; version = "6.8.1";
src = fetchFromGitHub { src = fetchFromGitHub {
owner = "Duncaen"; owner = "Duncaen";
repo = "OpenDoas"; repo = "OpenDoas";
rev = "v${version}"; rev = "v${version}";
sha256 = "1dlwnvy8r6slxcy260gfkximp1ms510wdslpfq9y6xvd2qi5izcb"; sha256 = "sha256-F0FVVspGDZmzxy4nsb/wsEoCw4eHscymea7tIKrWzD0=";
}; };
# otherwise confuses ./configure # otherwise confuses ./configure

View File

@ -412,6 +412,7 @@ mapAliases ({
oblogout = throw "oblogout has been removed from nixpkgs, as it's archived upstream."; # added 2019-12-10 oblogout = throw "oblogout has been removed from nixpkgs, as it's archived upstream."; # added 2019-12-10
opencl-icd = ocl-icd; # added 2017-01-20 opencl-icd = ocl-icd; # added 2017-01-20
openexr_ctl = ctl; # added 2018-04-25 openexr_ctl = ctl; # added 2018-04-25
openisns = open-isns; # added 2020-01-28
openjpeg_1 = throw "openjpeg_1 has been removed, use openjpeg_2 instead"; # added 2021-01-24 openjpeg_1 = throw "openjpeg_1 has been removed, use openjpeg_2 instead"; # added 2021-01-24
openjpeg_2 = openjpeg; # added 2021-01-25 openjpeg_2 = openjpeg; # added 2021-01-25
opensans-ttf = open-sans; # added 2018-12-04 opensans-ttf = open-sans; # added 2018-12-04

View File

@ -18859,7 +18859,7 @@ in
openiscsi = callPackage ../os-specific/linux/open-iscsi { }; openiscsi = callPackage ../os-specific/linux/open-iscsi { };
openisns = callPackage ../os-specific/linux/open-isns { }; open-isns = callPackage ../os-specific/linux/open-isns { };
osx-cpu-temp = callPackage ../os-specific/darwin/osx-cpu-temp { osx-cpu-temp = callPackage ../os-specific/darwin/osx-cpu-temp {
inherit (pkgs.darwin.apple_sdk.frameworks) IOKit; inherit (pkgs.darwin.apple_sdk.frameworks) IOKit;
@ -29491,6 +29491,9 @@ in
inherit (darwin.apple_sdk.frameworks) Carbon Cocoa OpenGL OpenAL; inherit (darwin.apple_sdk.frameworks) Carbon Cocoa OpenGL OpenAL;
}; };
x16-emulator = callPackage ../misc/emulators/commander-x16/emulator.nix { };
x16-rom = callPackage ../misc/emulators/commander-x16/rom.nix { };
bullet = callPackage ../development/libraries/bullet { bullet = callPackage ../development/libraries/bullet {
inherit (darwin.apple_sdk.frameworks) Cocoa OpenGL; inherit (darwin.apple_sdk.frameworks) Cocoa OpenGL;
}; };