add first draft

This commit is contained in:
2021-11-22 14:03:35 +01:00
parent f951761caf
commit 6ab2188d3f
5 changed files with 159 additions and 1 deletions

View File

@@ -0,0 +1,25 @@
{ 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
'';
}