Something went wrong. Try again.
What happens if I push all of nixpkgs
Something went wrong. Try again.
1.1 kB · 60 lines
Nix
12345678910111213141516171819202122232425262728293031323334353637383940414243444546474849505152535455565758596061{ lib, stdenv, fetchFromGitHub, cmake, buildPackages, pkg-config, icu, catch2_3, enableManpages ? buildPackages.pandoc.compiler.bootstrapAvailable,}:
stdenv.mkDerivation rec { pname = "nuspell"; version = "5.1.6";
src = fetchFromGitHub { owner = "nuspell"; repo = "nuspell"; rev = "v${version}"; hash = "sha256-U/lHSxpKsBnamf4ikE2aIjEPSU5fxjtuSmhZR0jxMAI="; };
nativeBuildInputs = [ cmake pkg-config ] ++ lib.optionals enableManpages [ buildPackages.pandoc ];
buildInputs = [ catch2_3 ];
propagatedBuildInputs = [ icu ];
cmakeFlags = [ "-DBUILD_TESTING=YES" ] ++ lib.optionals (!enableManpages) [ "-DBUILD_DOCS=OFF" ];
doCheck = true;
outputs = [ "out" "lib" "dev" ];
meta = with lib; { description = "Free and open source C++ spell checking library"; mainProgram = "nuspell"; homepage = "https://nuspell.github.io/"; platforms = platforms.all; maintainers = with maintainers; [ fpletz ]; license = licenses.lgpl3Plus; changelog = "https://github.com/nuspell/nuspell/blob/v${version}/CHANGELOG.md"; };}