mirror of
https://github.com/ilyakooo0/nix-bundle.git
synced 2024-09-11 06:55:53 +03:00
Merge pull request #83 from symphorien/fix-stdenv-lib
remove usage of stdenv.lib
This commit is contained in:
commit
0c6deae1f9
@ -1,4 +1,4 @@
|
||||
{ stdenv, fetchurl, muslPkgs, perl, pathsFromGraph, fetchFromGitHub, coreutils, bash }:
|
||||
{ stdenv, lib, fetchurl, muslPkgs, perl, pathsFromGraph, fetchFromGitHub, coreutils, bash }:
|
||||
|
||||
let
|
||||
AppRun = targets: muslPkgs.stdenv.mkDerivation {
|
||||
@ -8,7 +8,7 @@ let
|
||||
|
||||
buildPhase = ''
|
||||
CC="$CC -O2 -Wall -Wno-deprecated-declarations -Wno-unused-result -static"
|
||||
$CC ${./AppRun.c} -o AppRun -DENV_PATH='"${stdenv.lib.makeBinPath targets}"'
|
||||
$CC ${./AppRun.c} -o AppRun -DENV_PATH='"${lib.makeBinPath targets}"'
|
||||
'';
|
||||
|
||||
installPhase = ''
|
||||
|
@ -1,4 +1,4 @@
|
||||
{ stdenv, fetchurl, fuse, zlib, squashfsTools, glib }:
|
||||
{ stdenv, lib, fetchurl, fuse, zlib, squashfsTools, glib }:
|
||||
|
||||
# This is from some binaries.
|
||||
|
||||
@ -37,7 +37,7 @@ in stdenv.mkDerivation rec {
|
||||
for x in $out/bin/*; do
|
||||
patchelf \
|
||||
--set-interpreter ${dynamicLinker} \
|
||||
--set-rpath ${stdenv.lib.makeLibraryPath [ zlib stdenv.glibc.out fuse glib ]} \
|
||||
--set-rpath ${lib.makeLibraryPath [ zlib stdenv.glibc.out fuse glib ]} \
|
||||
$x
|
||||
done
|
||||
'';
|
||||
|
@ -44,7 +44,7 @@ in rec {
|
||||
};
|
||||
|
||||
# TODO: eventually should this go in nixpkgs?
|
||||
nix-user-chroot = stdenv.lib.makeOverridable stdenv.mkDerivation {
|
||||
nix-user-chroot = lib.makeOverridable stdenv.mkDerivation {
|
||||
name = "nix-user-chroot-2c52b5f";
|
||||
src = ./nix-user-chroot;
|
||||
|
||||
@ -108,7 +108,7 @@ in rec {
|
||||
nix-user-chroot'' = targets: nix-user-chroot.overrideDerivation (o: {
|
||||
buildInputs = o.buildInputs ++ targets;
|
||||
makeFlags = o.makeFlags ++ [
|
||||
''ENV_PATH="${stdenv.lib.makeBinPath targets}"''
|
||||
''ENV_PATH="${lib.makeBinPath targets}"''
|
||||
];
|
||||
}); in { target, extraTargets ? [], run }: nix-bootstrap {
|
||||
inherit target extraTargets run;
|
||||
|
Loading…
Reference in New Issue
Block a user