Merge master into staging-next

This commit is contained in:
github-actions[bot] 2021-02-11 00:36:09 +00:00 committed by GitHub
commit 5f9df37683
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
27 changed files with 147 additions and 93 deletions

View File

@ -326,30 +326,36 @@ in
}; };
}; };
services.zfs.zed.settings = mkOption { services.zfs.zed = {
type = with types; attrsOf (oneOf [ str int bool (listOf str) ]); enableMail = mkEnableOption "ZED's ability to send emails" // {
example = literalExample '' default = cfgZfs.package.enableMail;
{ };
ZED_DEBUG_LOG = "/tmp/zed.debug.log";
ZED_EMAIL_ADDR = [ "root" ]; settings = mkOption {
ZED_EMAIL_PROG = "mail"; type = with types; attrsOf (oneOf [ str int bool (listOf str) ]);
ZED_EMAIL_OPTS = "-s '@SUBJECT@' @ADDRESS@"; example = literalExample ''
{
ZED_DEBUG_LOG = "/tmp/zed.debug.log";
ZED_NOTIFY_INTERVAL_SECS = 3600; ZED_EMAIL_ADDR = [ "root" ];
ZED_NOTIFY_VERBOSE = false; ZED_EMAIL_PROG = "mail";
ZED_EMAIL_OPTS = "-s '@SUBJECT@' @ADDRESS@";
ZED_USE_ENCLOSURE_LEDS = true; ZED_NOTIFY_INTERVAL_SECS = 3600;
ZED_SCRUB_AFTER_RESILVER = false; ZED_NOTIFY_VERBOSE = false;
}
'';
description = ''
ZFS Event Daemon /etc/zfs/zed.d/zed.rc content
See ZED_USE_ENCLOSURE_LEDS = true;
<citerefentry><refentrytitle>zed</refentrytitle><manvolnum>8</manvolnum></citerefentry> ZED_SCRUB_AFTER_RESILVER = false;
for details on ZED and the scripts in /etc/zfs/zed.d to find the possible variables }
''; '';
description = ''
ZFS Event Daemon /etc/zfs/zed.d/zed.rc content
See
<citerefentry><refentrytitle>zed</refentrytitle><manvolnum>8</manvolnum></citerefentry>
for details on ZED and the scripts in /etc/zfs/zed.d to find the possible variables
'';
};
}; };
}; };
@ -358,6 +364,14 @@ in
config = mkMerge [ config = mkMerge [
(mkIf cfgZfs.enabled { (mkIf cfgZfs.enabled {
assertions = [ assertions = [
{
assertion = cfgZED.enableMail -> cfgZfs.package.enableMail;
message = ''
To allow ZED to send emails, ZFS needs to be configured to enable
this. To do so, one must override the `zfs` package and set
`enableMail` to true.
'';
}
{ {
assertion = config.networking.hostId != null; assertion = config.networking.hostId != null;
message = "ZFS requires networking.hostId to be set"; message = "ZFS requires networking.hostId to be set";
@ -437,7 +451,7 @@ in
}; };
services.zfs.zed.settings = { services.zfs.zed.settings = {
ZED_EMAIL_PROG = mkDefault "${pkgs.mailutils}/bin/mail"; ZED_EMAIL_PROG = mkIf cfgZED.enableMail (mkDefault "${pkgs.mailutils}/bin/mail");
PATH = lib.makeBinPath [ PATH = lib.makeBinPath [
cfgZfs.package cfgZfs.package
pkgs.coreutils pkgs.coreutils

View File

@ -8,7 +8,7 @@ stdenv.mkDerivation rec {
src = fetchFromGitHub { src = fetchFromGitHub {
owner = "openAVproductions"; owner = "openAVproductions";
repo = "openAV-ArtyFX"; repo = "openAV-ArtyFX";
rev = "492587461b50d140455aa3c98d915eb8673bebf0"; rev = "8c542627d936a01b1d97825e7f26a8e95633f7aa";
sha256 = "0wwg8ivnpyy0235bapjy4g0ij85zq355jwi6c1nkrac79p4z9ail"; sha256 = "0wwg8ivnpyy0235bapjy4g0ij85zq355jwi6c1nkrac79p4z9ail";
}; };

View File

@ -2,12 +2,12 @@
let let
pname = "ledger-live-desktop"; pname = "ledger-live-desktop";
version = "2.20.0"; version = "2.21.3";
name = "${pname}-${version}"; name = "${pname}-${version}";
src = fetchurl { src = fetchurl {
url = "https://github.com/LedgerHQ/${pname}/releases/download/v${version}/${pname}-${version}-linux-x86_64.AppImage"; url = "https://github.com/LedgerHQ/${pname}/releases/download/v${version}/${pname}-${version}-linux-x86_64.AppImage";
sha256 = "10gi29mcvs4d5flqycwid190pnlciznzbvg36250mxaxxs58rq7j"; sha256 = "11r6gwzg5qym7h40d8mrpw8c6zbdi534c2y7ghy2k0a4k3ybk8x1";
}; };
appimageContents = appimageTools.extractType2 { appimageContents = appimageTools.extractType2 {

View File

@ -73,6 +73,9 @@ let
cp -r . $out cp -r . $out
wrapProgram $out/bin/studio.sh \ wrapProgram $out/bin/studio.sh \
--set ANDROID_EMULATOR_USE_SYSTEM_LIBS 1 \ --set ANDROID_EMULATOR_USE_SYSTEM_LIBS 1 \
--set JAVA_HOME "$out/jre" \
--set QT_XKB_CONFIG_ROOT "${xkeyboard_config}/share/X11/xkb" \
--set FONTCONFIG_FILE ${fontsConf} \
--prefix PATH : "${lib.makeBinPath [ --prefix PATH : "${lib.makeBinPath [
# Checked in studio.sh # Checked in studio.sh
@ -139,9 +142,7 @@ let
gnome_vfs gnome_vfs
glib glib
GConf GConf
]}" \ ]}"
--set QT_XKB_CONFIG_ROOT "${xkeyboard_config}/share/X11/xkb" \
--set FONTCONFIG_FILE ${fontsConf}
# AS launches LLDBFrontend with a custom LD_LIBRARY_PATH # AS launches LLDBFrontend with a custom LD_LIBRARY_PATH
wrapProgram $out/bin/lldb/bin/LLDBFrontend --prefix LD_LIBRARY_PATH : "${lib.makeLibraryPath [ wrapProgram $out/bin/lldb/bin/LLDBFrontend --prefix LD_LIBRARY_PATH : "${lib.makeLibraryPath [

View File

@ -6,9 +6,9 @@ stdenv.mkDerivation rec {
src = fetchFromGitHub { src = fetchFromGitHub {
owner = "ebzzry"; owner = "ebzzry";
repo = pname; repo = "usync";
rev = "9c87ea8a707a47c3d7f6ef94d07591c5ab594282"; rev = "99f11b0c196a81843f55ca3456abcb85149b6d51";
sha256 = "1r05gw041fz9dkkb70zd6kqw9dd8dhpv87407qxqg43pd7x47kf4"; sha256 = "16i1q8f0jmfd43rb8d70l2b383vr5ib4kh7iq3yd345q7xjz9c2j";
}; };
installPhase = '' installPhase = ''

View File

@ -1,15 +1,20 @@
{ lib, buildPythonPackage, fetchFromGitHub { lib
, pytest_4, pytest-django, django }: , buildPythonPackage
, fetchFromGitHub
, pytestCheckHook
, pytest-django
, django
}:
buildPythonPackage { buildPythonPackage rec {
pname = "django-crispy-forms"; pname = "django-crispy-forms";
version = "2019.04.21"; version = "1.10.0";
src = fetchFromGitHub { src = fetchFromGitHub {
owner = "django-crispy-forms"; owner = "django-crispy-forms";
repo = "django-crispy-forms"; repo = "django-crispy-forms";
rev = "e25a5326697e5b545689b3a914e516404a6911bb"; rev = version;
sha256 = "12zqa76q6i7j47aqvhilivpbdplgp9zw2q8zfcjzlgclrqafaj39"; sha256 = "0y6kskfxgckb9npcgwx4zrs5n9px159zh9zhinhxi3i7wlriqpf5";
}; };
# For reasons unknown, the source dir must contain a dash # For reasons unknown, the source dir must contain a dash
@ -19,12 +24,10 @@ buildPythonPackage {
export sourceRoot=source- export sourceRoot=source-
''; '';
checkInputs = [ pytest_4 pytest-django django ]; checkInputs = [ django pytest-django pytestCheckHook ];
checkPhase = '' preCheck = ''
PYTHONPATH="$(pwd):$PYTHONPATH" \ export DJANGO_SETTINGS_MODULE=crispy_forms.tests.test_settings
DJANGO_SETTINGS_MODULE=crispy_forms.tests.test_settings \
pytest crispy_forms/tests
''; '';
meta = with lib; { meta = with lib; {

View File

@ -1,10 +1,20 @@
{ lib, stdenv, fetchFromGitHub, cmake, pkg-config, boost, gnuradio { lib
, makeWrapper, cppunit, gr-osmosdr, log4cpp , stdenv
, pythonSupport ? true, python, swig , fetchFromGitHub
, cmake
, pkg-config
, boost
, gnuradio
, makeWrapper
, cppunit
, gr-osmosdr
, log4cpp
, pythonSupport ? true
, python
, swig
, fetchpatch
}: }:
assert pythonSupport -> python != null && swig != null;
stdenv.mkDerivation { stdenv.mkDerivation {
pname = "gr-ais"; pname = "gr-ais";
version = "2015-12-20"; version = "2015-12-20";
@ -12,14 +22,20 @@ stdenv.mkDerivation {
src = fetchFromGitHub { src = fetchFromGitHub {
owner = "bistromath"; owner = "bistromath";
repo = "gr-ais"; repo = "gr-ais";
# Upstream PR: https://github.com/bistromath/gr-ais/commit/8502d0252a2a1a9b8d1a71795eaeb5d820684054 rev = "cdc1f52745853f9c739c718251830eb69704b26e";
rev = "8502d0252a2a1a9b8d1a71795eaeb5d820684054"; sha256 = "1vl3kk8xr2mh5lf31zdld7yzmwywqffffah8iblxdzblgsdwxfl6";
sha256 = "1b9j0kc74cw12a7jv4lii77dgzqzg2s8ndzp4xmisxksgva1qfvh";
}; };
patches = [
(fetchpatch {
url = "https://github.com/bistromath/gr-ais/commit/8502d0252a2a1a9b8d1a71795eaeb5d820684054.patch";
sha256 = "1cwalphldvf6dbhzwz1gi53z0cb4921qsvlz4138q7m6dxccvssg";
})
];
nativeBuildInputs = [ cmake makeWrapper pkg-config ]; nativeBuildInputs = [ cmake makeWrapper pkg-config ];
buildInputs = [ boost gnuradio cppunit gr-osmosdr log4cpp ] buildInputs = [ boost gnuradio cppunit gr-osmosdr log4cpp ]
++ lib.optionals pythonSupport [ python swig ]; ++ lib.optionals pythonSupport [ python swig ];
postInstall = '' postInstall = ''
for prog in "$out"/bin/*; do for prog in "$out"/bin/*; do

View File

@ -8,13 +8,13 @@ in
stdenv.mkDerivation rec { stdenv.mkDerivation rec {
pname = "git-cinnabar"; pname = "git-cinnabar";
version = "0.5.4"; version = "0.5.6";
src = fetchFromGitHub { src = fetchFromGitHub {
owner = "glandium"; owner = "glandium";
repo = "git-cinnabar"; repo = "git-cinnabar";
rev = version; rev = version;
sha256 = "1cjn2cc6mj4m736wxab9s6qx83p5n5ha8cr3x84s9ra6rxs8d7pi"; sha256 = "1wbp4xqpkaqhhkjw8rbbsagwiciqffacqqbm4j49q41mlk371ai3";
fetchSubmodules = true; fetchSubmodules = true;
}; };
@ -27,6 +27,8 @@ stdenv.mkDerivation rec {
enableParallelBuilding = true; enableParallelBuilding = true;
installPhase = '' installPhase = ''
runHook preInstall
mkdir -p $out/bin $out/libexec mkdir -p $out/bin $out/libexec
install git-cinnabar-helper $out/bin install git-cinnabar-helper $out/bin
install git-cinnabar git-remote-hg $out/libexec install git-cinnabar git-remote-hg $out/libexec
@ -38,12 +40,14 @@ stdenv.mkDerivation rec {
--prefix GIT_CINNABAR_EXPERIMENTS , python3 \ --prefix GIT_CINNABAR_EXPERIMENTS , python3 \
--set PYTHONPATH ${mercurial}/${python3.sitePackages} --set PYTHONPATH ${mercurial}/${python3.sitePackages}
done done
runHook postInstall
''; '';
meta = with lib; { meta = with lib; {
homepage = "https://github.com/glandium/git-cinnabar"; homepage = "https://github.com/glandium/git-cinnabar";
description = "git remote helper to interact with mercurial repositories"; description = "git remote helper to interact with mercurial repositories";
license = licenses.gpl2; license = licenses.gpl2Only;
maintainers = with maintainers; [ qyliss ]; maintainers = with maintainers; [ qyliss ];
platforms = platforms.all; platforms = platforms.all;
}; };

View File

@ -5,6 +5,7 @@ fetchFromGitHub {
owner = "tomokuni"; owner = "tomokuni";
repo = "Myrica"; repo = "Myrica";
# commit does not exist on any branch on the target repository
rev = "b737107723bfddd917210f979ccc32ab3eb6dc20"; rev = "b737107723bfddd917210f979ccc32ab3eb6dc20";
sha256 = "187rklcibbkai6m08173ca99qn8v7xpdfdv0izpymmavj85axm12"; sha256 = "187rklcibbkai6m08173ca99qn8v7xpdfdv0izpymmavj85axm12";

View File

@ -1,11 +1,13 @@
{ lib, stdenv, fetchzip, libfaketime, fonttosfnt, mkfontscale }: { lib, stdenv, fetchFromGitHub, libfaketime, fonttosfnt, mkfontscale }:
stdenv.mkDerivation rec { stdenv.mkDerivation rec {
name = "siji-${version}"; name = "siji-${version}";
version = "2016-05-13"; version = "2016-05-13";
src = fetchzip { src = fetchFromGitHub {
url = "https://github.com/stark/siji/archive/95369afac3e661cb6d3329ade5219992c88688c1.zip"; owner = "stark";
repo = "siji";
rev = "3cbb7fe938c33aaadbb657803ea5946e5157d6e2";
sha256 = "1408g4nxwdd682vjqpmgv0cp0bfnzzzwls62cjs9zrds16xa9dpf"; sha256 = "1408g4nxwdd682vjqpmgv0cp0bfnzzzwls62cjs9zrds16xa9dpf";
}; };

View File

@ -1,13 +1,13 @@
{ lib, fetchFromGitHub, buildPythonPackage, isPy3k, future, pyusb, ipython, pygreat }: { lib, fetchFromGitHub, buildPythonPackage, isPy3k, future, pyusb, ipython, pygreat }:
buildPythonPackage { buildPythonPackage rec {
pname = "GreatFET"; pname = "GreatFET";
version = "2019.5.1.dev0"; version = "2019.5.1.dev0";
src = fetchFromGitHub { src = fetchFromGitHub {
owner = "greatscottgadgets"; owner = "greatscottgadgets";
repo = "greatfet"; repo = "greatfet";
rev = "a927f21d59ccface00635146103a807c1d2b0ad8"; rev = "v${version}";
sha256 = "054vkx4xkbhxhh5grjbs9kw3pjkv1zapp91ysrqr0c8mg1pc7zxv"; sha256 = "054vkx4xkbhxhh5grjbs9kw3pjkv1zapp91ysrqr0c8mg1pc7zxv";
}; };

View File

@ -15,7 +15,7 @@ buildPythonPackage rec {
src = fetchFromGitHub { src = fetchFromGitHub {
owner = "nmigen"; owner = "nmigen";
repo = "nmigen-soc"; repo = "nmigen-soc";
rev = "f1b009c7e075bca461d10ec963a7eaa3bf4dfc14"; rev = "f5b5cd563e8e8d081b0535c4554c02b5456ee8b4";
sha256 = "04kjaq9qp6ac3h0r1wlb4jyz56bb52l1rikmz1x7azvnr10xhrad"; sha256 = "04kjaq9qp6ac3h0r1wlb4jyz56bb52l1rikmz1x7azvnr10xhrad";
}; };

View File

@ -1,13 +1,13 @@
{ lib, pythonPackages, fetchFromGitHub }: { lib, pythonPackages, fetchFromGitHub }:
let let
pgdbconn = pythonPackages.buildPythonPackage { pgdbconn = pythonPackages.buildPythonPackage rec {
pname = "pgdbconn"; pname = "pgdbconn";
version = "0.8.0"; version = "0.8.0";
src = fetchFromGitHub { src = fetchFromGitHub {
owner = "perseas"; owner = "perseas";
repo = "pgdbconn"; repo = "pgdbconn";
rev = "26c1490e4f32e4b5b925e5b82014ad106ba5b057"; rev = "v${version}";
sha256 = "09r4idk5kmqi3yig7ip61r6js8blnmac5n4q32cdcbp1rcwzdn6z"; sha256 = "09r4idk5kmqi3yig7ip61r6js8blnmac5n4q32cdcbp1rcwzdn6z";
}; };
# The tests are impure (they try to access a PostgreSQL server) # The tests are impure (they try to access a PostgreSQL server)

View File

@ -13,7 +13,7 @@ stdenv.mkDerivation rec {
srcs = [ srcs = [
(fetchFromGitHub { (fetchFromGitHub {
owner = "SymbiFlow"; owner = "YosysHQ";
repo = "prjtrellis"; repo = "prjtrellis";
rev = "60c05b3f4e71fd78d4fba5c31f9974694245199e"; rev = "60c05b3f4e71fd78d4fba5c31f9974694245199e";
sha256 = "1k37mxwxv9fpm6xnrxlqqap7zqh2dvgqncphj3asi2rz0kh07ppf"; sha256 = "1k37mxwxv9fpm6xnrxlqqap7zqh2dvgqncphj3asi2rz0kh07ppf";
@ -21,7 +21,7 @@ stdenv.mkDerivation rec {
}) })
(fetchFromGitHub { (fetchFromGitHub {
owner = "SymbiFlow"; owner = "YosysHQ";
repo = "prjtrellis-db"; repo = "prjtrellis-db";
rev = "2cf058e7a3ba36134d21e34823e9b2ecaaceac2c"; rev = "2cf058e7a3ba36134d21e34823e9b2ecaaceac2c";
sha256 = "1hjaw5jkwiaiznm2z0smy88m2cdz63cd51z4nibajfih7ikvkj6g"; sha256 = "1hjaw5jkwiaiznm2z0smy88m2cdz63cd51z4nibajfih7ikvkj6g";

View File

@ -6,6 +6,7 @@ let
src = fetchFromGitHub { src = fetchFromGitHub {
owner = "OpenMW"; owner = "OpenMW";
repo = "osg"; repo = "osg";
# commit does not exist on any branch on the target repository
rev = "1556cd7966ebc1c80b6626988d2b25fb43a744cf"; rev = "1556cd7966ebc1c80b6626988d2b25fb43a744cf";
sha256 = "0d74hijzmj82nx3jkv5qmr3pkgvplra0b8fbjx1y3vmzxamb0axd"; sha256 = "0d74hijzmj82nx3jkv5qmr3pkgvplra0b8fbjx1y3vmzxamb0axd";
}; };

View File

@ -123,6 +123,7 @@ in {
src = fetchFromGitHub { src = fetchFromGitHub {
owner = "IceReaper"; owner = "IceReaper";
repo = "OpenRA" ; repo = "OpenRA" ;
# commit does not exist on any branch on the target repository
rev = "4e8eab4ca00d1910203c8a103dfd2c002714daa8"; rev = "4e8eab4ca00d1910203c8a103dfd2c002714daa8";
sha256 = "1yyqparf93x8yzy1f46gsymgkj5jls25v2yc7ighr3f7mi3igdvq"; sha256 = "1yyqparf93x8yzy1f46gsymgkj5jls25v2yc7ighr3f7mi3igdvq";
name = "engine"; name = "engine";

View File

@ -13,13 +13,15 @@ in stdenv.mkDerivation {
src = fetchFromGitHub { src = fetchFromGitHub {
owner = "Davidebyzero"; owner = "Davidebyzero";
repo = "Snipes"; repo = "Snipes";
rev = "343e14104b7848eb1f882401888e685b7918ef9f"; rev = "594af45108e07aa4159c3babc9b5e53609c3fd6e";
sha256 = "1rl70d5miak34warbwfv27z11vln4lvf7maqqc78z0gdc5zivdv2"; sha256 = "0gmh38swm74jmljy0bq27ipqzb4h8y9rzwc1j6harbd9qqz5knac";
}; };
postPatch = '' postPatch = ''
substitute config-sample.h config.h \ substitute config-sample.h config.h \
--replace SnipesConsole.ttf $out/share/snipes/SnipesConsole.ttf --replace SnipesConsole.ttf $out/share/snipes/SnipesConsole.ttf
substituteInPlace GNUmakefile \
--replace 'CFLAGS=-Werror -Wall' 'CFLAGS=-Wall'
''; '';
enableParallelBuilding = true; enableParallelBuilding = true;

View File

@ -925,8 +925,8 @@ in with lib.licenses;
src = fetchFromGitHub { src = fetchFromGitHub {
owner = "snes9xgit"; owner = "snes9xgit";
repo = core; repo = core;
rev = "6db918cfe32b157239da44096091c212fdfb3b60"; rev = "bd9246ddd75a5e9f78d6189c8c57754d843630f7";
sha256 = "0y3jhy50qdhhfglybys9m0fgk9r24ksdcgv5iqpyxy5a4cjvhv8j"; sha256 = "10fm7ah3aha9lf4k9hgw0dlhdvshzpig2d0ylcb12gf9zz0i22ns";
}; };
description = "Port of SNES9x git to libretro"; description = "Port of SNES9x git to libretro";
license = "Non-commercial"; license = "Non-commercial";

View File

@ -7,8 +7,8 @@ stdenv.mkDerivation rec {
src = fetchFromGitHub { src = fetchFromGitHub {
owner = "nix-community"; owner = "nix-community";
repo = "acpi_call"; repo = "acpi_call";
rev = "3d7c9fe5ed3fc5ed5bafd39d54b1fdc7a09ce710"; rev = "fe4cd0124099b88b61f83006023bc0d95e742e75";
sha256 = "09kp8zl392h99wjwzqrdw2xcfnsc944hzmfwi8n1y7m2slpdybv3"; sha256 = "1rksbg78i7y2wzam9p6kbhx8rmkaiq0kqg8nj7k0j6d25m79289s";
}; };
hardeningDisable = [ "pic" ]; hardeningDisable = [ "pic" ];

View File

@ -7,6 +7,7 @@ buildLinux (args // {
src = fetchFromGitHub { src = fetchFromGitHub {
owner = "koverstreet"; owner = "koverstreet";
repo = "bcachefs"; repo = "bcachefs";
# commit does not exist on any branch on the target repository
rev = "6a505b63ed3003faf5000f19fd08bbd477d93fbc"; rev = "6a505b63ed3003faf5000f19fd08bbd477d93fbc";
sha256 = "1rf34gzv9npafp1c3i6lymk3b0gnqp4rb0wl33pw6yrpgnsry3cc"; sha256 = "1rf34gzv9npafp1c3i6lymk3b0gnqp4rb0wl33pw6yrpgnsry3cc";
}; };

View File

@ -12,6 +12,7 @@ in stdenv.mkDerivation rec {
src = fetchFromGitHub { src = fetchFromGitHub {
owner = "rtlwifi-linux"; owner = "rtlwifi-linux";
repo = "rtlwifi_new"; repo = "rtlwifi_new";
# commit does not exist on any branch on the target repository
rev = "a108e3de87c2ed30b71c3c4595b79ab7a2f9e348"; rev = "a108e3de87c2ed30b71c3c4595b79ab7a2f9e348";
sha256 = "15kjs9i9vvmn1cdzccd5cljf3m45r4ssm65klkj2fdkf3kljj38k"; sha256 = "15kjs9i9vvmn1cdzccd5cljf3m45r4ssm65klkj2fdkf3kljj38k";
}; };

View File

@ -8,8 +8,8 @@
, libtirpc , libtirpc
, nfs-utils , nfs-utils
, gawk, gnugrep, gnused, systemd , gawk, gnugrep, gnused, systemd
, smartmontools, sysstat, sudo , smartmontools, enableMail ? false
, pkg-config , sysstat, sudo, pkg-config
# Kernel dependencies # Kernel dependencies
, kernel ? null , kernel ? null
@ -18,6 +18,8 @@
with lib; with lib;
let let
smartmon = smartmontools.override { inherit enableMail; };
buildKernel = any (n: n == configFile) [ "kernel" "all" ]; buildKernel = any (n: n == configFile) [ "kernel" "all" ];
buildUser = any (n: n == configFile) [ "user" "all" ]; buildUser = any (n: n == configFile) [ "user" "all" ];
@ -148,7 +150,7 @@ let
''; '';
postFixup = let postFixup = let
path = "PATH=${makeBinPath [ coreutils gawk gnused gnugrep util-linux smartmontools sysstat ]}:$PATH"; path = "PATH=${makeBinPath [ coreutils gawk gnused gnugrep util-linux smartmon sysstat ]}:$PATH";
in '' in ''
for i in $out/libexec/zfs/zpool.d/*; do for i in $out/libexec/zfs/zpool.d/*; do
sed -i '2i${path}' $i sed -i '2i${path}' $i
@ -157,12 +159,17 @@ let
outputs = [ "out" ] ++ optionals buildUser [ "lib" "dev" ]; outputs = [ "out" ] ++ optionals buildUser [ "lib" "dev" ];
passthru.tests = if isUnstable then passthru = {
[ nixosTests.zfs.unstable ] inherit enableMail;
else [
nixosTests.zfs.installer tests =
nixosTests.zfs.stable if isUnstable then [
]; nixosTests.zfs.unstable
] else [
nixosTests.zfs.installer
nixosTests.zfs.stable
];
};
meta = { meta = {
description = "ZFS Filesystem Linux Kernel module"; description = "ZFS Filesystem Linux Kernel module";

View File

@ -12,16 +12,16 @@ let
in in
rustPlatform.buildRustPackage rec { rustPlatform.buildRustPackage rec {
pname = "fishnet"; pname = "fishnet";
version = "2.2.3"; version = "2.2.4";
src = fetchFromGitHub { src = fetchFromGitHub {
owner = "niklasf"; owner = "niklasf";
repo = pname; repo = pname;
rev = "v${version}"; rev = "v${version}";
sha256 = "159fwjy70n6lvnhdwv65azgi03r5qcc2m2zpzgz0k3r6cy06faxj"; sha256 = "19dh69b6mqx16195w9d20fah4jl8hhbxm84xq4zwsgl4khmw7zqz";
}; };
cargoSha256 = "1bfs8dy08799r6d63sb33zwcxas3gzp7jvcxv3w8n64gffan8f2n"; cargoSha256 = "0zl2fnmqncyjd52wkn6dddx9lm9ywpw7swy895yq299z2bbbkv3h";
preBuild = '' preBuild = ''
rmdir ./assets rmdir ./assets

View File

@ -2,11 +2,11 @@
stdenv.mkDerivation rec { stdenv.mkDerivation rec {
pname = "oil"; pname = "oil";
version = "0.8.6"; version = "0.8.7";
src = fetchurl { src = fetchurl {
url = "https://www.oilshell.org/download/oil-${version}.tar.xz"; url = "https://www.oilshell.org/download/oil-${version}.tar.xz";
sha256 = "sha256-fX1miI8yXzn/T9cbbZ/7E6/tLs3RXsX3PgfC7sBxIjU="; sha256 = "sha256-KcXu1u/MvvbCLb5a7D09NvfJPaeo0c8Z/Czuk7XR23M=";
}; };
postPatch = '' postPatch = ''

View File

@ -1,20 +1,19 @@
{ lib, stdenv { lib
, stdenv
, fetchFromGitHub , fetchFromGitHub
, upx , upx
}: }:
let stdenv.mkDerivation rec {
version = "20202807";
pname = "hdl-dump"; pname = "hdl-dump";
in stdenv.mkDerivation { version = "20202807";
inherit pname version;
# Using AkuHAK's repo because playstation2's repo is outdated # Using AkuHAK's repo because playstation2's repo is outdated
src = fetchFromGitHub { src = fetchFromGitHub {
owner = "AKuHAK"; owner = "AKuHAK";
repo = pname; repo = pname;
rev = "be37e112a44772a1341c867dc3dfee7381ce9e59"; rev = "0c98b235c83c0fca1da93648f05ea5f940a4aee0";
sha256 = "0akxak6hm11h8z6jczxgr795s4a8czspwnhl3swqxp803dvjdx41"; sha256 = "1s3wflqjjlcslpa9n5chr8dbamhmfk88885dzw68apz4vf6g27iq";
}; };
buildInputs = [ upx ]; buildInputs = [ upx ];

View File

@ -30,6 +30,6 @@ stdenv.mkDerivation rec {
homepage = "https://github.com/adurbin/iotools"; homepage = "https://github.com/adurbin/iotools";
license = licenses.gpl2Only; license = licenses.gpl2Only;
maintainers = with maintainers; [ felixsinger ]; maintainers = with maintainers; [ felixsinger ];
platforms = platforms.linux; platforms = [ "x86_64-linux" "i686-linux" ];
}; };
} }

View File

@ -1,5 +1,6 @@
{ lib, stdenv, fetchurl, autoreconfHook { lib, stdenv, fetchurl, autoreconfHook
, mailutils, inetutils , mailutils, enableMail ? true
, inetutils
, IOKit, ApplicationServices }: , IOKit, ApplicationServices }:
let let
@ -26,7 +27,7 @@ in stdenv.mkDerivation rec {
postPatch = "cp -v ${driverdb} drivedb.h"; postPatch = "cp -v ${driverdb} drivedb.h";
configureFlags = [ configureFlags = [
"--with-scriptpath=${lib.makeBinPath [ mailutils inetutils ]}" "--with-scriptpath=${lib.makeBinPath ([ inetutils ] ++ lib.optional enableMail mailutils)}"
]; ];
nativeBuildInputs = [ autoreconfHook ]; nativeBuildInputs = [ autoreconfHook ];