Merge pull request #70503 from joachifm/feat/remove-blcr
Remove blcr package & nixos module
This commit is contained in:
commit
2a25b5c3cb
5 changed files with 3 additions and 73 deletions
|
@ -98,7 +98,6 @@
|
|||
./programs/autojump.nix
|
||||
./programs/bash/bash.nix
|
||||
./programs/bcc.nix
|
||||
./programs/blcr.nix
|
||||
./programs/browserpass.nix
|
||||
./programs/captive-browser.nix
|
||||
./programs/ccache.nix
|
||||
|
|
|
@ -1,27 +0,0 @@
|
|||
{ config, lib, ... }:
|
||||
|
||||
let
|
||||
inherit (lib) mkOption mkIf;
|
||||
cfg = config.environment.blcr;
|
||||
blcrPkg = config.boot.kernelPackages.blcr;
|
||||
in
|
||||
|
||||
{
|
||||
###### interface
|
||||
|
||||
options = {
|
||||
environment.blcr.enable = mkOption {
|
||||
default = false;
|
||||
description =
|
||||
"Whether to enable support for the BLCR checkpointing tool.";
|
||||
};
|
||||
};
|
||||
|
||||
###### implementation
|
||||
|
||||
config = mkIf cfg.enable {
|
||||
boot.kernelModules = [ "blcr" "blcr_imports" ];
|
||||
boot.extraModulePackages = [ blcrPkg ];
|
||||
environment.systemPackages = [ blcrPkg ];
|
||||
};
|
||||
}
|
|
@ -275,6 +275,9 @@ with lib;
|
|||
(mkRenamedOptionModule [ "networking" "extraResolvconfConf" ] [ "networking" "resolvconf" "extraConfig" ])
|
||||
(mkRenamedOptionModule [ "networking" "resolvconfOptions" ] [ "networking" "resolvconf" "extraOptions" ])
|
||||
|
||||
# BLCR
|
||||
(mkRemovedOptionModule [ "environment.blcr.enable" ] "The BLCR module has been removed")
|
||||
|
||||
# Redis
|
||||
(mkRemovedOptionModule [ "services" "redis" "user" ] "The redis module now is hardcoded to the redis user.")
|
||||
(mkRemovedOptionModule [ "services" "redis" "dbpath" ] "The redis module now uses /var/lib/redis as data directory.")
|
||||
|
|
|
@ -1,43 +0,0 @@
|
|||
{ stdenv, fetchurl, kernel, perl, makeWrapper }:
|
||||
|
||||
# BLCR version 0.8.6 should works with linux kernel up to version 3.17.x
|
||||
|
||||
assert stdenv.lib.versionOlder "3.18" kernel.version;
|
||||
|
||||
stdenv.mkDerivation {
|
||||
name = "blcr_${kernel.version}-0.8.6pre4";
|
||||
|
||||
src = fetchurl {
|
||||
url = https://upc-bugs.lbl.gov/blcr-dist/blcr-0.8.6_b4.tar.gz;
|
||||
sha256 = "1a3gdhdnmk592jc652szxgfz8rjd8dax5jwxfsypiqx5lgkj3m21";
|
||||
};
|
||||
|
||||
buildInputs = [ perl makeWrapper ];
|
||||
|
||||
hardeningDisable = [ "pic" ];
|
||||
|
||||
preConfigure = ''
|
||||
configureFlagsArray=(
|
||||
--with-linux=${kernel.dev}/lib/modules/${kernel.modDirVersion}/build
|
||||
--with-kmod-dir=$out/lib/modules/${kernel.modDirVersion}
|
||||
--with-system-map=${kernel}/System.map
|
||||
)
|
||||
'';
|
||||
|
||||
postInstall = ''
|
||||
for prog in "$out/bin/"*
|
||||
do
|
||||
wrapProgram "$prog" --prefix LD_LIBRARY_PATH ":" "$out/lib"
|
||||
done
|
||||
'';
|
||||
|
||||
meta = {
|
||||
description = "Berkeley Lab Checkpoint/Restart for Linux (BLCR)";
|
||||
homepage = https://ftg.lbl.gov/projects/CheckpointRestart/;
|
||||
license = stdenv.lib.licenses.gpl2;
|
||||
platforms = stdenv.lib.platforms.linux;
|
||||
maintainers = with stdenv.lib.maintainers; [
|
||||
z77z
|
||||
];
|
||||
};
|
||||
}
|
|
@ -15910,8 +15910,6 @@ in
|
|||
|
||||
ati_drivers_x11 = callPackage ../os-specific/linux/ati-drivers { };
|
||||
|
||||
blcr = if stdenv.lib.versionOlder "3.18" kernel.version then callPackage ../os-specific/linux/blcr { } else null;
|
||||
|
||||
chipsec = callPackage ../tools/security/chipsec {
|
||||
inherit kernel;
|
||||
withDriver = true;
|
||||
|
|
Loading…
Reference in a new issue