Save commit in shell variable
This commit is contained in:
parent
11ed3dc731
commit
88a4e239a1
@ -80,6 +80,7 @@
|
||||
build = nixosconf.config.system.build;
|
||||
in syspkgs.mkShell {
|
||||
pname = "lagarto-hun-shell";
|
||||
COMMIT = if self ? rev then self.rev else "dirty";
|
||||
TOPLEVEL = build.toplevel;
|
||||
OPENSBI = syspkgs.opensbi;
|
||||
KERNEL = build.kernel;
|
||||
@ -88,6 +89,7 @@
|
||||
UBOOT_ENV = syspkgs.uboot-env;
|
||||
shellHook = ''
|
||||
echo "Here are the current system pieces:"
|
||||
echo " COMMIT = $COMMIT"
|
||||
echo " TOPLEVEL = $TOPLEVEL"
|
||||
echo " KERNEL = $KERNEL"
|
||||
echo " OPENSBI = $OPENSBI"
|
||||
@ -104,6 +106,7 @@
|
||||
build = nixosconf.config.system.build;
|
||||
in syspkgs.mkShell rec {
|
||||
pname = "lagarto-ox-shell";
|
||||
COMMIT = if self ? rev then self.rev else "dirty";
|
||||
TOPLEVEL = build.toplevel;
|
||||
OPENSBI = syspkgs.opensbi;
|
||||
KERNEL = build.kernel;
|
||||
@ -115,6 +118,7 @@
|
||||
GCROOT = mkRoots syspkgs [ syspkgs.stdenv KERNEL OPENSBI ];
|
||||
shellHook = ''
|
||||
echo "Here are the current system pieces:"
|
||||
echo " COMMIT = $COMMIT"
|
||||
echo " TOPLEVEL = $TOPLEVEL"
|
||||
echo " KERNEL = $KERNEL"
|
||||
echo " OPENSBI = $OPENSBI"
|
||||
|
Loading…
Reference in New Issue
Block a user