nix-on-droid/nix-on-droid/default.nix
Tobias Happ 355aa408c2 nix-on-droid: remove fallback for default nix < 2.4
Nixpkgs 22.11 has the default nix package with version 2.11.0.
2022-12-04 17:04:17 +01:00

18 lines
455 B
Nix

# Copyright (c) 2019-2022, see AUTHORS. Licensed under MIT License, see LICENSE.
{ bash, coreutils, lib, nix, runCommand }:
runCommand
"nix-on-droid"
{
preferLocalBuild = true;
allowSubstitutes = false;
}
''
install -D -m755 ${./nix-on-droid.sh} $out/bin/nix-on-droid
substituteInPlace $out/bin/nix-on-droid \
--subst-var-by bash "${bash}" \
--subst-var-by coreutils "${coreutils}" \
--subst-var-by nix "${nix}"
''