swapspace: add passthru.binlore (#332351)

This commit is contained in:
Aleksana 2024-10-28 11:28:02 +08:00 committed by GitHub
commit ad987c21d7
No known key found for this signature in database
GPG Key ID: B5690EEEBB952194

View File

@ -1,4 +1,4 @@
{ lib, stdenv, fetchFromGitHub, autoreconfHook, installShellFiles, util-linux }:
{ lib, stdenv, fetchFromGitHub, autoreconfHook, installShellFiles, util-linux, binlore, swapspace }:
stdenv.mkDerivation rec {
pname = "swapspace";
@ -35,6 +35,12 @@ stdenv.mkDerivation rec {
install --mode=444 -D 'swapspace.service' "$out/etc/systemd/system/swapspace.service"
'';
# Nothing in swapspace --help or swapspaces man page mentions
# anything about swapspace executing its arguments.
passthru.binlore.out = binlore.synthesize swapspace ''
execer cannot bin/swapspace
'';
meta = with lib; {
description = "Dynamic swap manager for Linux";
homepage = "https://github.com/Tookmund/Swapspace";