nrr: format with nixfmt-rfc-style

This commit is contained in:
Ryan Cao 2024-08-14 17:24:39 +08:00
parent 1460e06773
commit cffc27daf0
No known key found for this signature in database
GPG key ID: 48C96B2057D71CB1

View file

@ -1,14 +1,14 @@
{ lib {
, stdenv lib,
, fetchFromGitHub stdenv,
, rustPlatform fetchFromGitHub,
, darwin rustPlatform,
, pkg-config darwin,
, libiconv pkg-config,
, enableLTO ? true libiconv,
, nrxAlias ? true enableLTO ? true,
nrxAlias ? true,
}: }:
rustPlatform.buildRustPackage rec { rustPlatform.buildRustPackage rec {
pname = "nrr"; pname = "nrr";
version = "0.9.4"; version = "0.9.4";
@ -30,9 +30,7 @@ rustPlatform.buildRustPackage rec {
libiconv libiconv
]; ];
nativeBuildInputs = [ nativeBuildInputs = [ pkg-config ];
pkg-config
];
env = lib.optionalAttrs enableLTO { env = lib.optionalAttrs enableLTO {
CARGO_PROFILE_RELEASE_LTO = "fat"; CARGO_PROFILE_RELEASE_LTO = "fat";