10 rustPlatform.buildRustPackage rec {
14 src = fetchFromGitHub {
18 sha256 = "sha256-1hoMIZ4mfXYF+ec/Eax2fSNBbx+UEY2c/jQCaRi+UqU=";
21 cargoSha256 = "sha256-jGPS9x4DKQCXZkaJu9qIEqoxIu+1WraqfqxGFRV5z7A=";
23 nativeBuildInputs = [ pandoc installShellFiles ];
24 buildInputs = lib.optionals stdenv.isDarwin [ darwin.apple_sdk.frameworks.Security ];
27 patchShebangs --build ./documentation/build.sh
28 ./documentation/build.sh
32 installManPage documentation/fend.1
35 doInstallCheck = true;
37 installCheckPhase = ''
38 [[ "$($out/bin/fend "1 km to m")" = "1000 m" ]]
42 description = "Arbitrary-precision unit-aware calculator";
43 homepage = "https://github.com/printfn/fend";
44 license = licenses.mit;
45 maintainers = with maintainers; [ djanatyn ];