mirror of
https://github.com/vale981/poetry2nix
synced 2025-03-05 17:21:39 -05:00
Add override to make shellcheck-py installable
This commit is contained in:
parent
11f15b8c7d
commit
2f5291f9cd
1 changed files with 19 additions and 0 deletions
|
@ -1504,6 +1504,25 @@ self: super:
|
||||||
}
|
}
|
||||||
);
|
);
|
||||||
|
|
||||||
|
shellcheck-py = super.shellcheck-py.overridePythonAttrs (old: {
|
||||||
|
|
||||||
|
# Make fetching/installing external binaries no-ops
|
||||||
|
preConfigure =
|
||||||
|
let
|
||||||
|
fakeCommand = "type('FakeCommand', (Command,), {'initialize_options': lambda self: None, 'finalize_options': lambda self: None, 'run': lambda self: None})";
|
||||||
|
in
|
||||||
|
''
|
||||||
|
substituteInPlace setup.py \
|
||||||
|
--replace "'fetch_binaries': fetch_binaries," "'fetch_binaries': ${fakeCommand}," \
|
||||||
|
--replace "'install_shellcheck': install_shellcheck," "'install_shellcheck': ${fakeCommand},"
|
||||||
|
'';
|
||||||
|
|
||||||
|
propagatedUserEnvPkgs = (old.propagatedUserEnvPkgs or [ ]) ++ [
|
||||||
|
pkgs.shellcheck
|
||||||
|
];
|
||||||
|
|
||||||
|
});
|
||||||
|
|
||||||
shellingham =
|
shellingham =
|
||||||
if lib.versionAtLeast super.shellingham.version "1.3.2" then
|
if lib.versionAtLeast super.shellingham.version "1.3.2" then
|
||||||
(
|
(
|
||||||
|
|
Loading…
Add table
Reference in a new issue