1
0
Fork 0
mirror of https://github.com/NixOS/nixos-artwork synced 2024-10-18 00:06:24 -04:00

matrix: Add -A archive output

This commit is contained in:
Samuel Dionne-Riel 2021-05-21 20:27:00 -04:00
parent e2d7169be5
commit 0bda783d23

View file

@ -46,25 +46,35 @@ let
</fontconfig> </fontconfig>
'' ''
) {}; ) {};
in
# Yes, you can callPackage something else than a path! archive = pkgs.runCommandNoCC "${build.name}-archive.tar.bz2" {} ''
pkgs.callPackage ( cp -r --no-preserve=mode ${build} nixos-artwork-matrix-icons
tar cvjf $out nixos-artwork-matrix-icons
'';
{ runCommandNoCC, inkscape, encode-sans, FONTCONFIG_FILE, ruby }: # Yes, you can callPackage something else than a path!
runCommandNoCC "nixos-artwork-matrix-icons" { build = pkgs.callPackage (
nativeBuildInputs = [
inkscape { runCommandNoCC, inkscape, encode-sans, FONTCONFIG_FILE, ruby }:
ruby runCommandNoCC "nixos-artwork-matrix-icons" {
]; nativeBuildInputs = [
inkscape
ruby
];
inherit FONTCONFIG_FILE;
passthru = {
inherit archive;
};
} ''
ruby ${./build.rb} ${./icons.src.svg}
''
) {
inherit FONTCONFIG_FILE; inherit FONTCONFIG_FILE;
} '' ruby = pkgs.ruby.withPackages(p: [
ruby ${./build.rb} ${./icons.src.svg} p.nokogiri
'' ]);
};
) { in
inherit FONTCONFIG_FILE; build
ruby = pkgs.ruby.withPackages(p: [
p.nokogiri
]);
}