Something went wrong. Try again.
What happens if I push all of nixpkgs
Something went wrong. Try again.
1.2 kB · 52 lines
Nix
1234567891011121314151617181920212223242526272829303132333435363738394041424344454647484950515253{ stdenv, lib, fetchFromGitLab, gitUpdater, python3Packages,}:
stdenv.mkDerivation (finalAttrs: { pname = "bencodetools"; version = "1.0.1";
src = fetchFromGitLab { owner = "heikkiorsila"; repo = "bencodetools"; rev = "refs/tags/v${finalAttrs.version}"; hash = "sha256-5Y1r6+aVtK22lYr2N+YUPPdUts9PIF9I/Pq/mI+WqQs="; };
postPatch = '' patchShebangs configure '';
enableParallelBuilding = true;
configureFlags = [ (lib.strings.withFeature false "python") ];
# installCheck instead of check due to -install_name'd library on Darwin doInstallCheck = stdenv.buildPlatform.canExecute stdenv.hostPlatform;
installCheckPhase = '' runHook preInstallCheck
./bencodetest
runHook postInstallCheck '';
passthru = { tests.python-module = python3Packages.bencodetools; updateScript = gitUpdater { rev-prefix = "v"; }; };
meta = { description = "Collection of tools for manipulating bencoded data"; homepage = "https://gitlab.com/heikkiorsila/bencodetools"; license = lib.licenses.bsd2; maintainers = with lib.maintainers; [ OPNA2608 ]; mainProgram = "bencat"; platforms = lib.platforms.unix; };})