mirror of
https://github.com/nix-community/nix-on-droid.git
synced 2025-11-08 11:36:07 +01:00
27 lines
641 B
Nix
27 lines
641 B
Nix
# Copyright (c) 2019-2020, see AUTHORS. Licensed under MIT License, see LICENSE.
|
|
|
|
{ callPackage, fetchFromGitHub, tallocStatic }:
|
|
|
|
let
|
|
pkgs = callPackage ./pkgs.nix { };
|
|
in
|
|
|
|
pkgs.crossStatic.stdenv.mkDerivation {
|
|
pname = "proot-termux";
|
|
version = "unstable-2019-09-05";
|
|
|
|
src = fetchFromGitHub {
|
|
repo = "proot";
|
|
owner = "termux";
|
|
rev = "3ea655b1ae40bfa2ee612d45bf1e7ad97c4559f8";
|
|
sha256 = "05y30ifbp4sn1pzy8wlifc5d9n2lrgspqzdjix1kxjj9j9947qgd";
|
|
};
|
|
|
|
buildInputs = [ tallocStatic ];
|
|
|
|
makeFlags = [ "-Csrc CFLAGS=-D__ANDROID__" ];
|
|
|
|
installPhase = ''
|
|
install -D -m 0755 src/proot $out/bin/proot-static
|
|
'';
|
|
}
|