26 lines
512 B
Nix
26 lines
512 B
Nix
{ pkgs ? import <nixpkgs> {}}:
|
|
let
|
|
|
|
buildroot = pkgs.callPackage ../buildroot.nix {};
|
|
|
|
in
|
|
|
|
pkgs.stdenv.mkDerivation {
|
|
name = "buildroot-shell";
|
|
buildInputs = buildroot.makeBuildRoot.paths ++ [
|
|
buildroot.package
|
|
buildroot.makeBuildRoot.command
|
|
];
|
|
hardeningDisable = [ "all" ];
|
|
shellHook = ''
|
|
alias make='makeBuildRoot'
|
|
'';
|
|
phases = [ "nobuildPhase" ];
|
|
nobuildPhase = ''
|
|
echo
|
|
echo "This derivation is not meant to be built, aborting";
|
|
echo
|
|
exit 1
|
|
'';
|
|
}
|