mirror of
https://github.com/NixOS/nixpkgs.git
synced 2024-12-28 00:24:18 +00:00
python3Packages.magic: expose version and pname
This commit is contained in:
parent
56dcfcd9b4
commit
83ae8e7fc7
@ -6,9 +6,7 @@
|
||||
}:
|
||||
|
||||
buildPythonPackage {
|
||||
name = pkgs.file.name;
|
||||
|
||||
src = pkgs.file.src;
|
||||
inherit (pkgs.file) pname version src;
|
||||
|
||||
patchPhase = ''
|
||||
substituteInPlace python/magic.py --replace "find_library('magic')" "'${pkgs.file}/lib/libmagic${stdenv.hostPlatform.extensions.sharedLibrary}'"
|
||||
|
Loading…
Reference in New Issue
Block a user