Something went wrong. Try again.
What happens if I push all of nixpkgs
Something went wrong. Try again.
554 B · 28 lines
Nix
1234567891011121314151617181920212223242526272829{ lib, stdenv, buildPythonPackage, pkgs}:
buildPythonPackage { name = pkgs.file.name;
src = pkgs.file.src;
patchPhase = '' substituteInPlace python/magic.py --replace "find_library('magic')" "'${pkgs.file}/lib/libmagic${stdenv.hostPlatform.extensions.sharedLibrary}'" '';
buildInputs = [ pkgs.file ];
preConfigure = "cd python";
# No test suite doCheck = false;
meta = with lib; { description = "A Python wrapper around libmagic"; homepage = "http://www.darwinsys.com/file/"; license = licenses.lgpl2; };
}