mirror of
https://github.com/ilyakooo0/nix-bundle.git
synced 2024-09-11 15:05:32 +03:00
16 lines
366 B
Nix
16 lines
366 B
Nix
{ stdenv, fetchFromGitHub, writeText, nix, cacert }:
|
|
|
|
stdenv.mkDerivation {
|
|
name = "nix-installer";
|
|
|
|
propagatedBuildInputs = [ nix.out cacert ];
|
|
|
|
buildCommand = ''
|
|
mkdir -p $out/bin/
|
|
substitute ${./install-nix-from-closure.sh} $out/install \
|
|
--subst-var-by nix ${nix.out} \
|
|
--subst-var-by cacert ${cacert}
|
|
chmod +x $out/install
|
|
'';
|
|
}
|