This commit is contained in:
parent
6978e1ad5b
commit
69d4d7a147
2 changed files with 27 additions and 0 deletions
26
hmModules/reinstall-magisk-on-lineage/default.nix
Normal file
26
hmModules/reinstall-magisk-on-lineage/default.nix
Normal file
|
@ -0,0 +1,26 @@
|
|||
{pkgs, ...}: let
|
||||
reinstall-magisk-on-lineage = pkgs.stdenv.mkDerivation {
|
||||
name = "reinstall-magisk-on-lineage";
|
||||
version = "git";
|
||||
src = pkgs.fetchFromGitHub {
|
||||
owner = "NicolasWebDev";
|
||||
repo = "reinstall-magisk-on-lineageos";
|
||||
rev = "1ca911ed555d4badd705c6c71750b78be8962b0b";
|
||||
hash = "sha256-95LzcWL4efR77i8UlzIT+7wQXp+91K2sUwcjmHvTf+Q=";
|
||||
};
|
||||
propagatedBuildInputs = with pkgs; [
|
||||
android-tools
|
||||
jq
|
||||
];
|
||||
installPhase = ''
|
||||
mkdir -p $out/bin
|
||||
cp reinstall-magisk-on-lineageos $out/bin/reinstall-magisk-on-lineageos
|
||||
'';
|
||||
patchPhase = ''
|
||||
substituteInPlace reinstall-magisk-on-lineageos \
|
||||
--replace-fail "paste_yours_here" "\"\$1\""
|
||||
'';
|
||||
};
|
||||
in {
|
||||
home.packages = [reinstall-magisk-on-lineage];
|
||||
}
|
|
@ -80,6 +80,7 @@
|
|||
"teams"
|
||||
"obs-studio"
|
||||
"calibre"
|
||||
"reinstall-magisk-on-lineage"
|
||||
];
|
||||
extraGroups = [];
|
||||
backupPaths = [];
|
||||
|
|
Loading…
Add table
Reference in a new issue