Include .def file in out/dev, make dev-only package
This commit is contained in:
parent
f537f9a2d8
commit
49e9dbff85
|
@ -12,12 +12,19 @@
|
||||||
asm = fox32asm.packages.${sys}.default;
|
asm = fox32asm.packages.${sys}.default;
|
||||||
fox32rom = pkgs.runCommand "fox32rom" {} ''
|
fox32rom = pkgs.runCommand "fox32rom" {} ''
|
||||||
cp -r ${./.}/* ./
|
cp -r ${./.}/* ./
|
||||||
mkdir -p $out/bin
|
mkdir -p $out/{bin,dev}
|
||||||
${asm}/bin/fox32asm ./main.asm $out/bin/fox32.rom
|
${asm}/bin/fox32asm ./main.asm $out/bin/fox32.rom
|
||||||
|
cp ${./fox32rom.def} $out/dev/fox32rom.def
|
||||||
|
'';
|
||||||
|
|
||||||
|
fox32rom-dev = pkgs.runCommand "fox32rom-dev" {} ''
|
||||||
|
mkdir -p $out/dev
|
||||||
|
cp ${./fox32rom.def} $out/dev/fox32rom.def
|
||||||
'';
|
'';
|
||||||
|
|
||||||
in rec {
|
in rec {
|
||||||
packages.fox32rom = fox32rom;
|
packages.fox32rom = fox32rom;
|
||||||
|
packages.fox32rom-dev = fox32rom-dev;
|
||||||
packages.default = fox32rom;
|
packages.default = fox32rom;
|
||||||
|
|
||||||
devShells.default = pkgs.mkShell {
|
devShells.default = pkgs.mkShell {
|
||||||
|
|
Loading…
Reference in New Issue
Block a user