Skip to content
Merged
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
53 changes: 27 additions & 26 deletions package-sets/top-level/nixos-branding/artifact-builder/package.nix
Original file line number Diff line number Diff line change
@@ -1,38 +1,39 @@
# artifact-builder
{
jura,
nixos-color-palette,
python3,
route159,
runCommandLocal,
testers,
}:
# artifact
{
name,
outputHash,
script,
}:
runCommandLocal name
testers.invalidateFetcherByDrvHash (
{
inherit script;
name,
outputHash,
script,
}:
runCommandLocal name
{
inherit script;

nativeBuildInputs = [
(python3.withPackages (ps: [ ps.nixoslogo ]))
];
nativeBuildInputs = [
(python3.withPackages (ps: [ ps.nixoslogo ]))
];

outputHash = outputHash;
outputHashAlgo = "sha256";
outputHashMode = "recursive";
outputHash = outputHash;
outputHashAlgo = "sha256";
outputHashMode = "recursive";

env = {
NIXOS_ANNOTATIONS_FONT_FILE = "${jura}/share/fonts/truetype/jura/Jura-Regular.ttf";
NIXOS_COLOR_PALETTE_FILE = "${nixos-color-palette}/colors.toml";
NIXOS_LOGOTYPE_FONT_FILE = "${route159}/share/fonts/opentype/route159/Route159-Regular.otf";
};
env = {
NIXOS_ANNOTATIONS_FONT_FILE = "${jura}/share/fonts/truetype/jura/Jura-Regular.ttf";
NIXOS_COLOR_PALETTE_FILE = "${nixos-color-palette}/colors.toml";
NIXOS_LOGOTYPE_FONT_FILE = "${route159}/share/fonts/opentype/route159/Route159-Regular.otf";
};

}
''
python $script
mkdir $out
cp *.svg $out/
''
}
''
python $script
mkdir $out
cp *.svg $out/
''
)