Merge branch 'staging-next' into staging
In python-packages.nix, resolve conflict between50d604314eand187d0371ab.
This commit is contained in:
@@ -1,7 +1,7 @@
|
||||
{ lib, stdenv, buildLinux, fetchFromGitHub, ... } @ args:
|
||||
|
||||
let
|
||||
version = "5.11.10";
|
||||
version = "5.11.12";
|
||||
suffix = "xanmod1-cacule";
|
||||
in
|
||||
buildLinux (args // rec {
|
||||
@@ -12,7 +12,7 @@ in
|
||||
owner = "xanmod";
|
||||
repo = "linux";
|
||||
rev = modDirVersion;
|
||||
sha256 = "sha256-Pn1rX61mA8FEt5G1GppK/YyzXnB+hdm5pWh/4swQ4VE=";
|
||||
sha256 = "sha256-omRZ9oAmW3mauUolPf/lgMFMwUCYU4YaZ+OS75Ag+lM=";
|
||||
extraPostFetch = ''
|
||||
rm $out/.config
|
||||
'';
|
||||
|
||||
@@ -14,8 +14,6 @@ stdenv.mkDerivation rec {
|
||||
sha256 = "sha256-TelZDuCah8KC1Vhzf/tbYXXMv9JtWArdEN9E0PBH9sI=";
|
||||
};
|
||||
|
||||
patches = lib.optional isStatic ./no-shared-lib.patch;
|
||||
|
||||
outputs = [ "out" "dev" "lib" "man" "doc" ]
|
||||
++ lib.optional usePam "pam";
|
||||
|
||||
@@ -31,7 +29,7 @@ stdenv.mkDerivation rec {
|
||||
"PAM_CAP=${if usePam then "yes" else "no"}"
|
||||
"BUILD_CC=$(CC_FOR_BUILD)"
|
||||
"CC:=$(CC)"
|
||||
];
|
||||
] ++ lib.optional isStatic "SHARED=no";
|
||||
|
||||
prePatch = ''
|
||||
# use full path to bash
|
||||
|
||||
@@ -1,22 +0,0 @@
|
||||
diff --git a/libcap/Makefile b/libcap/Makefile
|
||||
index de6a28d..7e4d8ac 100644
|
||||
--- a/libcap/Makefile
|
||||
+++ b/libcap/Makefile
|
||||
@@ -22,7 +22,7 @@ MAJLIBNAME=$(LIBNAME).$(VERSION)
|
||||
MINLIBNAME=$(MAJLIBNAME).$(MINOR)
|
||||
GPERF_OUTPUT = _caps_output.gperf
|
||||
|
||||
-all: $(MINLIBNAME) $(STACAPLIBNAME) pcs $(STAPSXLIBNAME)
|
||||
+all: $(STACAPLIBNAME) pcs $(STAPSXLIBNAME)
|
||||
|
||||
pcs: libcap.pc libpsx.pc
|
||||
|
||||
@@ -93,7 +93,7 @@ cap_test: cap_test.c libcap.h
|
||||
test: cap_test
|
||||
./cap_test
|
||||
|
||||
-install: install-static install-shared
|
||||
+install: install-static
|
||||
|
||||
install-static: install-static-cap install-static-psx
|
||||
|
||||
35
pkgs/os-specific/linux/vendor-reset/default.nix
Normal file
35
pkgs/os-specific/linux/vendor-reset/default.nix
Normal file
@@ -0,0 +1,35 @@
|
||||
{ stdenv, fetchFromGitHub, kernel, lib }:
|
||||
|
||||
stdenv.mkDerivation rec {
|
||||
name = "vendor-reset-${version}-${kernel.version}";
|
||||
version = "unstable-2021-02-16";
|
||||
|
||||
src = fetchFromGitHub {
|
||||
owner = "gnif";
|
||||
repo = "vendor-reset";
|
||||
rev = "225a49a40941e350899e456366265cf82b87ad25";
|
||||
sha256 = "sha256-xa7P7+mRk4FVgi+YYCcsFLfyNqPmXvy3xhGoTDVqPxw=";
|
||||
};
|
||||
|
||||
nativeBuildInputs = kernel.moduleBuildDependencies;
|
||||
|
||||
hardeningDisable = [ "pic" ];
|
||||
|
||||
makeFlags = [
|
||||
"KVER=${kernel.modDirVersion}"
|
||||
"KDIR=${kernel.dev}/lib/modules/${kernel.modDirVersion}/build"
|
||||
];
|
||||
|
||||
installPhase = ''
|
||||
install -D vendor-reset.ko -t "$out/lib/modules/${kernel.modDirVersion}/kernel/drivers/misc/"
|
||||
'';
|
||||
|
||||
meta = with lib; {
|
||||
description = "Linux kernel vendor specific hardware reset module";
|
||||
homepage = "https://github.com/gnif/vendor-reset";
|
||||
license = licenses.gpl2Only;
|
||||
maintainers = with maintainers; [ wedens ];
|
||||
platforms = [ "x86_64-linux" ];
|
||||
broken = kernel.kernelOlder "4.19";
|
||||
};
|
||||
}
|
||||
Reference in New Issue
Block a user