mirror of
https://github.com/nix-community/nix-on-droid.git
synced 2025-12-18 15:01:15 +01:00
WIP: BROKEN: okc-agents [no ci]
...can't make okc-agents work even on Termux...
This commit is contained in:
parent
fbdc0a0630
commit
47ff564e29
2 changed files with 2690 additions and 2 deletions
|
|
@ -1,6 +1,6 @@
|
||||||
# Copyright (c) 2019-2024, see AUTHORS. Licensed under MIT License, see LICENSE.
|
# Copyright (c) 2019-2024, see AUTHORS. Licensed under MIT License, see LICENSE.
|
||||||
|
|
||||||
{ config, lib, pkgs, ... }:
|
{ config, lib, pkgs, nixpkgs, ... }:
|
||||||
|
|
||||||
let
|
let
|
||||||
cfg = config.android-integration;
|
cfg = config.android-integration;
|
||||||
|
|
@ -11,6 +11,10 @@ let
|
||||||
pkgs.callPackage (import ../../pkgs/android-integration/termux-tools.nix) {
|
pkgs.callPackage (import ../../pkgs/android-integration/termux-tools.nix) {
|
||||||
inherit termux-am;
|
inherit termux-am;
|
||||||
};
|
};
|
||||||
|
okc-agents =
|
||||||
|
(import (../../pkgs/android-integration/okc-agents.nix) {
|
||||||
|
inherit nixpkgs pkgs;
|
||||||
|
}).rootCrate.build;
|
||||||
in
|
in
|
||||||
{
|
{
|
||||||
|
|
||||||
|
|
@ -113,6 +117,16 @@ in
|
||||||
'';
|
'';
|
||||||
};
|
};
|
||||||
|
|
||||||
|
openkeychain.enable = lib.mkOption {
|
||||||
|
type = lib.types.bool;
|
||||||
|
default = true;
|
||||||
|
example = "true";
|
||||||
|
description = lib.mdDoc ''
|
||||||
|
Provides GPG agent ang SSH agent for OpenKeychain,
|
||||||
|
courtesy of https://github.com/DDoSolitary/okc-agents.
|
||||||
|
'';
|
||||||
|
};
|
||||||
|
|
||||||
};
|
};
|
||||||
|
|
||||||
###### implementation
|
###### implementation
|
||||||
|
|
@ -127,6 +141,7 @@ in
|
||||||
(ifD cfg.termux-wake-lock.enable termux-tools.wake_lock) ++
|
(ifD cfg.termux-wake-lock.enable termux-tools.wake_lock) ++
|
||||||
(ifD cfg.termux-wake-unlock.enable termux-tools.wake_unlock) ++
|
(ifD cfg.termux-wake-unlock.enable termux-tools.wake_unlock) ++
|
||||||
(ifD cfg.xdg-open.enable termux-tools.xdg_open) ++
|
(ifD cfg.xdg-open.enable termux-tools.xdg_open) ++
|
||||||
(ifD cfg.unsupported.enable termux-tools.out);
|
(ifD cfg.unsupported.enable termux-tools.out) ++
|
||||||
|
(ifD cfg.openkeychain.enable okc-agents);
|
||||||
};
|
};
|
||||||
}
|
}
|
||||||
|
|
|
||||||
2673
pkgs/android-integration/okc-agents.nix
Normal file
2673
pkgs/android-integration/okc-agents.nix
Normal file
File diff suppressed because it is too large
Load diff
Loading…
Add table
Add a link
Reference in a new issue