Reformat image flake output
This commit is contained in:
parent
b739294638
commit
4a6e3b2454
19
flake.nix
19
flake.nix
@ -58,15 +58,6 @@
|
|||||||
# Return only the bin folder to curb image size
|
# Return only the bin folder to curb image size
|
||||||
compose.justStaticExecutables
|
compose.justStaticExecutables
|
||||||
];
|
];
|
||||||
in {
|
|
||||||
packages = rec {
|
|
||||||
default = yore;
|
|
||||||
inherit yore;
|
|
||||||
yore-meta = pkgs.runCommand "yore-meta" {} ''
|
|
||||||
mkdir -p $out
|
|
||||||
echo -n ${yore.version} > $out/version
|
|
||||||
echo -n git.pbrinkmeier.de/paul/yore:${yore.version} > $out/image-tag
|
|
||||||
'';
|
|
||||||
|
|
||||||
image =
|
image =
|
||||||
pkgs.dockerTools.buildImage {
|
pkgs.dockerTools.buildImage {
|
||||||
@ -74,6 +65,16 @@
|
|||||||
tag = yore.version;
|
tag = yore.version;
|
||||||
config.Cmd = [ "${yore}/bin/yore" ];
|
config.Cmd = [ "${yore}/bin/yore" ];
|
||||||
};
|
};
|
||||||
|
in {
|
||||||
|
packages = rec {
|
||||||
|
default = yore;
|
||||||
|
inherit yore image;
|
||||||
|
yore-meta = pkgs.runCommand "yore-meta" {} ''
|
||||||
|
mkdir -p $out
|
||||||
|
echo -n ${yore.version} > $out/version
|
||||||
|
echo -n ${image.drvAttrs.imageName}:${image.drvAttrs.imageTag} > $out/image-tag
|
||||||
|
'';
|
||||||
|
|
||||||
|
|
||||||
opium_ = opium.packages.${system}.opium;
|
opium_ = opium.packages.${system}.opium;
|
||||||
};
|
};
|
||||||
|
|||||||
Loading…
x
Reference in New Issue
Block a user