about summary refs log tree commit diff
path: root/pkgs/by-name/ra
diff options
context:
space:
mode:
authorseth <getchoo@tuta.io>2024-06-11 20:27:05 -0400
committerseth <getchoo@tuta.io>2024-06-12 03:28:22 -0400
commit8a7b6d26b7b294452d84f053ecc6ff6e836411f2 (patch)
tree01eb30644260656a20daf62b2ec82b3003a5b06a /pkgs/by-name/ra
parent1cc5cb9434eb7a6886684bffbcdf766b2db471dd (diff)
rav1e: format with nixfmt
Diffstat (limited to 'pkgs/by-name/ra')
-rw-r--r--pkgs/by-name/ra/rav1e/package.nix47
1 files changed, 26 insertions, 21 deletions
diff --git a/pkgs/by-name/ra/rav1e/package.nix b/pkgs/by-name/ra/rav1e/package.nix
index d2e7695683394..526c4b9b968cc 100644
--- a/pkgs/by-name/ra/rav1e/package.nix
+++ b/pkgs/by-name/ra/rav1e/package.nix
@@ -1,16 +1,17 @@
-{ lib
-, rust
-, stdenv
-, rustPlatform
-, fetchCrate
-, pkg-config
-, cargo-c
-, libgit2
-, nasm
-, zlib
-, libiconv
-, darwin
-, buildPackages
+{
+  lib,
+  rust,
+  stdenv,
+  rustPlatform,
+  fetchCrate,
+  pkg-config,
+  cargo-c,
+  libgit2,
+  nasm,
+  zlib,
+  libiconv,
+  darwin,
+  buildPackages,
 }:
 
 rustPlatform.buildRustPackage rec {
@@ -26,15 +27,19 @@ rustPlatform.buildRustPackage rec {
 
   depsBuildBuild = [ pkg-config ];
 
-  nativeBuildInputs = [ cargo-c libgit2 nasm ];
-
-  buildInputs = [
-    zlib
-  ] ++ lib.optionals stdenv.isDarwin [
-    libiconv
-    darwin.apple_sdk.frameworks.Security
+  nativeBuildInputs = [
+    cargo-c
+    libgit2
+    nasm
   ];
 
+  buildInputs =
+    [ zlib ]
+    ++ lib.optionals stdenv.isDarwin [
+      libiconv
+      darwin.apple_sdk.frameworks.Security
+    ];
+
   # Darwin uses `llvm-strip`, which results in link errors when using `-x` to strip the asm library
   # and linking it with cctools ld64.
   postPatch = lib.optionalString (stdenv.isDarwin && stdenv.isx86_64) ''
@@ -43,7 +48,7 @@ rustPlatform.buildRustPackage rec {
 
   checkType = "debug";
 
-  postBuild =  ''
+  postBuild = ''
     ${rust.envVars.setEnv} cargo cbuild --release --frozen --prefix=${placeholder "out"} --target ${stdenv.hostPlatform.rust.rustcTarget}
   '';