Change:
Add to packages <!-- Describe the project a little: -- is a non free package for Python which is available from this . Or it can be made available for VScode via this . Similar for Vim, Command Line, PyCharm, Emacs or Sublime. I tried to add this this to my within a vsocde section: { name = "sourcery.sourcery"; publisher = ""; version = "1.6.0"; sha256 = "0000000000000000000000000000000000000000000000000000"; } But result: Cant install sourcery for vscode: home-manager build switch produces building '/nix/store/ag5i8qpv0wkpayjvnkdi0dnwdmhrqa12-'... trying % Total % Received % Xferd Average Speed Time Time Time Current Dload Upload Total Spent Left Speed 0 0 0 0 0 0 0 0 --:--:-- --:--:-- --:--:-- 0 curl: (22) The requested URL returned error: 400 error: cannot download from any mirror error: builder for '/nix/store/ag5i8qpv0wkpayjvnkdi0dnwdmhrqa12-' failed with exit code 1; last 7 log lines: For full logs, run 'nix log /nix/store/ag5i8qpv0wkpayjvnkdi0dnwdmhrqa12-'. error: 1 dependencies of derivation '/nix/store/z62dqgjxbm3v3p4hj62bf4aa9nv8y1ix-vscode-extension-' failed to build error: 1 dependencies of derivation '/nix/store/y3rmcb7pcc9j03j0408dsn6g5cnzkvw5-' failed to build error: 1 dependencies of derivation '/nix/store/ixfc6bjhprz4n88zk6rsgzs8kas925xi-home-manager-' failed to build error: 1 dependencies of derivation '/nix/store/qfxzn9qqbzpq5mmsk1py6ni9lw70zhgk-home-manager-' failed to build` When I visit the link in browser I get: I note that searching Nix packages for sourcery produces a result for Code Sourcery C++ ABI, which is unrelated, hence the name should be distinctive. Metadata homepage URL: source URL: and and and license: mit platforms: linux, darwin
PR available.

Discussion:
meta.license = lib.licenses.lgpl3Only; }; <ins> sourcery.sourcery = callPackage ./sourcery.sourcery { }; </ins> spywhere.guides = buildVscodeMarketplaceExtension { mktplcRef = { name = "guides";

<ins> { lib, stdenv, vscode-utils, autoPatchelfHook, libxcrypt-legacy, }: vscode-utils.buildVscodeMarketplaceExtension { mktplcRef = { name = "sourcery"; publisher = "sourcery"; version = "1.16.0"; hash = "sha256-SHgS2C+ElTJW4v90Wg0QcsSL2FoSz+SxZQpgq2J4JiU="; }; postPatch = '' pushd sourcery_binaries/install rm -r win ${if stdenv.isLinux then "mac" else "linux"} popd ''; nativeBuildInputs = lib.optionals stdenv.isLinux [ autoPatchelfHook ]; buildInputs = [ stdenv.cc.cc.lib libxcrypt-legacy ]; meta = { changelog = "https://sourcery.ai/changelog/"; description = "A VSCode extension for Sourcery, an AI-powered code review and pair programming tool for Python"; downloadPage = "https://marketplace.visualstudio.com/items?itemName=sourcery.sourcery"; homepage = "https://github.com/sourcery-ai/sourcery-vscode"; license = lib.licenses.unfree; maintainers = with lib.maintainers; [ tomasajt ]; platforms = [ "x86_64-linux" "x86_64-darwin" ]; }; } </ins>

<ins> { lib, stdenv, python3Packages, fetchPypi, autoPatchelfHook, libxcrypt-legacy, }: let platformInfos = { "x86_64-linux" = { platform = "manylinux1_x86_64"; hash = "sha256-gr5z8VYkuCqgmcnyA01/Ez6aX9NrKR4MgA0Bc6IHnfs="; }; "x86_64-darwin" = { platform = "macosx_10_9_universal2"; hash = "sha256-5LsxeozPgInUC1QAxDSlr8NIfmRSl5BN+g9/ZYAxiRE="; }; }; platformInfo = platformInfos.${stdenv.system} or (throw "Unsupported platform ${stdenv.system}"); in python3Packages.buildPythonApplication rec { pname = "sourcery"; version = "1.16.0"; format = "wheel"; src = fetchPypi { inherit pname version format; inherit (platformInfo) platform hash; }; nativeBuildInputs = lib.optionals stdenv.isLinux [ autoPatchelfHook ]; buildInputs = [ libxcrypt-legacy ]; meta = { changelog = "https://sourcery.ai/changelog/"; description = "An AI-powered code review and pair programming tool for Python"; downloadPage = "https://pypi.org/project/sourcery/"; homepage = "https://sourcery.ai"; license = lib.licenses.unfree; mainProgram = "sourcery"; maintainers = with lib.maintainers; [ tomasajt ]; platforms = [ "x86_64-linux" "x86_64-darwin" ]; }; } </ins>