mirror of
https://github.com/NixOS/nixpkgs.git
synced 2024-12-02 20:03:16 +00:00
Merge pull request #322005 from pbsds/fix-gerbolyze-1719161128
gerbolyze: unbreak by downgrading resvg
This commit is contained in:
commit
00cf9e5b9b
@ -43,6 +43,22 @@ let
|
||||
platforms = platforms.linux;
|
||||
};
|
||||
};
|
||||
|
||||
# FIXME: check if this downgrade is still required when bumping gerbolyze
|
||||
# https://github.com/jaseg/gerbolyze/issues/47
|
||||
resvg' = resvg.overrideAttrs (old: rec {
|
||||
version = "0.41.0";
|
||||
src = old.src.override {
|
||||
rev = "v${version}";
|
||||
hash = "sha256-plZiyEiBWeV2mwTsNK5Je8Axs/hcHH8aV2VpOix6QCY=";
|
||||
};
|
||||
cargoDeps = old.cargoDeps.overrideAttrs (lib.const {
|
||||
name = "${old.pname}-${version}-vendor.tar.gz";
|
||||
inherit src;
|
||||
outputHash = "sha256-U7xzb9e9wh9XbLvlYQ0ofIjH8FuSzVcrXnrehQmZgww=";
|
||||
});
|
||||
});
|
||||
|
||||
in python3Packages.buildPythonApplication rec {
|
||||
inherit version src;
|
||||
pname = "gerbolyze";
|
||||
@ -61,7 +77,7 @@ in python3Packages.buildPythonApplication rec {
|
||||
python3Packages.python-slugify
|
||||
python3Packages.lxml
|
||||
python3Packages.gerbonara
|
||||
resvg
|
||||
resvg'
|
||||
svg-flatten
|
||||
];
|
||||
|
||||
@ -79,7 +95,7 @@ in python3Packages.buildPythonApplication rec {
|
||||
|
||||
pythonImportsCheck = [ "gerbolyze" ];
|
||||
|
||||
nativeCheckInputs = [ python3Packages.pytestCheckHook resvg svg-flatten ];
|
||||
nativeCheckInputs = [ python3Packages.pytestCheckHook resvg' svg-flatten ];
|
||||
|
||||
meta = with lib; {
|
||||
description = "Directly render SVG overlays into Gerber and Excellon files";
|
||||
|
Loading…
Reference in New Issue
Block a user