Move shellHook to respective Nix expressions
This commit is contained in:
parent
fca01891ba
commit
62614a71d9
|
@ -2,7 +2,8 @@
|
||||||
|
|
||||||
with pkgs;
|
with pkgs;
|
||||||
|
|
||||||
stdenv.mkDerivation rec {
|
let
|
||||||
|
package = stdenv.mkDerivation rec {
|
||||||
name = "StatusImAppImage";
|
name = "StatusImAppImage";
|
||||||
version = "20181208";
|
version = "20181208";
|
||||||
|
|
||||||
|
@ -29,4 +30,10 @@ stdenv.mkDerivation rec {
|
||||||
maintainers = [ stdenv.lib.maintainers.pombeirp ];
|
maintainers = [ stdenv.lib.maintainers.pombeirp ];
|
||||||
platforms = stdenv.lib.platforms.linux;
|
platforms = stdenv.lib.platforms.linux;
|
||||||
};
|
};
|
||||||
|
};
|
||||||
|
|
||||||
|
in package // {
|
||||||
|
shellHook = ''
|
||||||
|
export STATUSREACT_LINUX_BASEIMAGE_PATH="${package}/src"
|
||||||
|
'';
|
||||||
}
|
}
|
|
@ -10,11 +10,8 @@ let
|
||||||
appimagekit = callPackage ./appimagekit { };
|
appimagekit = callPackage ./appimagekit { };
|
||||||
linuxdeployqt = callPackage ./linuxdeployqt { inherit appimagekit; };
|
linuxdeployqt = callPackage ./linuxdeployqt { inherit appimagekit; };
|
||||||
|
|
||||||
in
|
in {
|
||||||
{
|
|
||||||
buildInputs = [ appimagekit linuxdeployqt patchelf baseImage ];
|
buildInputs = [ appimagekit linuxdeployqt patchelf baseImage ];
|
||||||
|
|
||||||
shellHook = ''
|
inherit (baseImage) shellHook;
|
||||||
export STATUSREACT_LINUX_BASEIMAGE_PATH="${baseImage}/src"
|
|
||||||
'';
|
|
||||||
}
|
}
|
||||||
|
|
|
@ -2,7 +2,8 @@
|
||||||
|
|
||||||
with pkgs;
|
with pkgs;
|
||||||
|
|
||||||
stdenv.mkDerivation rec {
|
let
|
||||||
|
package = stdenv.mkDerivation rec {
|
||||||
name = "StatusImAppBundle";
|
name = "StatusImAppBundle";
|
||||||
version = "20181113";
|
version = "20181113";
|
||||||
|
|
||||||
|
@ -29,4 +30,10 @@ stdenv.mkDerivation rec {
|
||||||
maintainers = [ stdenv.lib.maintainers.pombeirp ];
|
maintainers = [ stdenv.lib.maintainers.pombeirp ];
|
||||||
platforms = stdenv.lib.platforms.darwin;
|
platforms = stdenv.lib.platforms.darwin;
|
||||||
};
|
};
|
||||||
|
};
|
||||||
|
|
||||||
|
in package // {
|
||||||
|
shellHook = ''
|
||||||
|
export STATUSREACT_MACOS_BASEIMAGE_PATH="${package}/src"
|
||||||
|
'';
|
||||||
}
|
}
|
|
@ -4,7 +4,8 @@ with pkgs;
|
||||||
|
|
||||||
assert stdenv.isLinux;
|
assert stdenv.isLinux;
|
||||||
|
|
||||||
stdenv.mkDerivation rec {
|
let
|
||||||
|
package = stdenv.mkDerivation rec {
|
||||||
name = "StatusIm-Windows-base-image";
|
name = "StatusIm-Windows-base-image";
|
||||||
version = "20181113";
|
version = "20181113";
|
||||||
|
|
||||||
|
@ -39,4 +40,10 @@ stdenv.mkDerivation rec {
|
||||||
maintainers = [ stdenv.lib.maintainers.pombeirp ];
|
maintainers = [ stdenv.lib.maintainers.pombeirp ];
|
||||||
platforms = stdenv.lib.platforms.linux;
|
platforms = stdenv.lib.platforms.linux;
|
||||||
};
|
};
|
||||||
|
};
|
||||||
|
|
||||||
|
in package // {
|
||||||
|
shellHook = ''
|
||||||
|
export STATUSREACT_WINDOWS_BASEIMAGE_PATH="${package}/src"
|
||||||
|
'';
|
||||||
}
|
}
|
|
@ -18,7 +18,7 @@ in
|
||||||
];
|
];
|
||||||
|
|
||||||
shellHook = ''
|
shellHook = ''
|
||||||
export STATUSREACT_WINDOWS_BASEIMAGE_PATH="${baseImage}/src"
|
${baseImage.shellHook}
|
||||||
unset QT_PATH
|
unset QT_PATH
|
||||||
'';
|
'';
|
||||||
}
|
}
|
||||||
|
|
Loading…
Reference in New Issue