mirror of
https://github.com/MeexReay/pmos-xiaomi-angelican.git
synced 2025-06-24 02:22:58 +03:00
24 lines
696 B
Nix
24 lines
696 B
Nix
{ pkgs ? import (builtins.fetchTarball {
|
|
name = "nixos-unstable-2025-05-18";
|
|
url = "https://github.com/nixos/nixpkgs/archive/10862bc5b70821539abbe4ed885fdd7070675143.tar.gz";
|
|
sha256 = "0m40jd2q7s10z321hqirvd8dz4ipaawqpwpa0g7v8yys5z8hyix0";
|
|
}) {} }:
|
|
pkgs.mkShell {
|
|
buildInputs = with pkgs; [
|
|
pmbootstrap
|
|
android-tools
|
|
git
|
|
less
|
|
];
|
|
|
|
shellHook = ''
|
|
source extract-paths.sh
|
|
if [ ! -L $PMAPORTS/device/testing/linux-xiaomi-angelican ]; then
|
|
ln -s $PWD/linux-xiaomi-angelican $PMAPORTS/device/testing
|
|
fi
|
|
if [ ! -L $PMAPORTS/device/testing/device-xiaomi-angelican ]; then
|
|
ln -s $PWD/device-xiaomi-angelican $PMAPORTS/device/testing
|
|
fi
|
|
'';
|
|
}
|