apptainer-overriden-nixos,singularity-overriden-nixos: init
This commit is contained in:
parent
71a89291ee
commit
d35f5c2695
|
@ -1,9 +1,9 @@
|
|||
{ callPackage
|
||||
, fetchFromGitHub
|
||||
, nixos
|
||||
, conmon
|
||||
}:
|
||||
|
||||
{
|
||||
let
|
||||
apptainer = callPackage
|
||||
(import ./generic.nix rec {
|
||||
pname = "apptainer";
|
||||
|
@ -67,4 +67,28 @@
|
|||
{
|
||||
defaultToSuid = true;
|
||||
};
|
||||
|
||||
genOverridenNixos = package: packageName: (nixos {
|
||||
programs.singularity = {
|
||||
enable = true;
|
||||
inherit package;
|
||||
};
|
||||
}).config.programs.singularity.packageOverriden.overrideAttrs (oldAttrs: {
|
||||
meta = oldAttrs.meta // {
|
||||
description = "";
|
||||
longDescription = ''
|
||||
This package produces identical store derivations to `pkgs.${packageName}`
|
||||
overriden and installed by the NixOS module `programs.singularity`
|
||||
with default configuration.
|
||||
|
||||
This is for binary substitutes only. Use pkgs.${packageName} instead.
|
||||
'';
|
||||
};
|
||||
});
|
||||
in
|
||||
{
|
||||
inherit apptainer singularity;
|
||||
|
||||
apptainer-overriden-nixos = genOverridenNixos apptainer "apptainer";
|
||||
singularity-overriden-nixos = genOverridenNixos singularity "singularity";
|
||||
}
|
||||
|
|
|
@ -30198,7 +30198,10 @@ with pkgs;
|
|||
|
||||
inherit (callPackage ../applications/virtualization/singularity/packages.nix { })
|
||||
apptainer
|
||||
singularity;
|
||||
singularity
|
||||
apptainer-overriden-nixos
|
||||
singularity-overriden-nixos
|
||||
;
|
||||
|
||||
skate = callPackage ../applications/misc/skate { };
|
||||
|
||||
|
|
Loading…
Reference in a new issue