mach-nix/debug/build_overrides.nix
DavHau d37c1eb362
Version 2.0.0 (#20)
See Changelog.md for changes.

* adapt data interface for new sdist dependency graph format

* change wording in readme

* wheel support + concept providers

* overlay support WIP

* overlay support

* extras support for nixpkgs

* machnix as overrides

* granular provider settings + custom autoPatchelfHook

* improve overlay generator, remove prefer_new

* unify nixpkgs src

* update interface, bump version and examples

* fixes and updated docs
2020-05-19 09:46:48 +00:00

15 lines
770 B
Nix

let
nixpkgs_commit = builtins.readFile ../mach_nix/nix/NIXPKGS_COMMIT; # nixpkgs version to use python packages from
nixpkgs_tarball_sha256 = builtins.readFile ../mach_nix/nix/NIXPKGS_SHA256;
pkgs = import (builtins.fetchTarball {
name = "nixpkgs";
url = "https://github.com/nixos/nixpkgs/tarball/${builtins.readFile ../mach_nix/nix/NIXPKGS_COMMIT}";
sha256 = "${builtins.readFile ../mach_nix/nix/NIXPKGS_SHA256}";
}) { config = {}; overlays = []; };
python = pkgs.python37;
manylinux1 = [ pkgs.pythonManylinuxPackages.manylinux1 ];
result = import ./overrides.nix;
overrides = result.overrides manylinux1 pkgs.autoPatchelfHook;
py = pkgs.python37.override { packageOverrides = overrides; };
in
py.withPackages (ps: result.select_pkgs ps)