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:
parent
e2d7169be5
commit
0bda783d23
|
@ -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
|
|
||||||
]);
|
|
||||||
}
|
|
||||||
|
|
Loading…
Reference in a new issue