Unverified Commit d87a8075 authored by Steven Keuchel's avatar Steven Keuchel
Browse files

mtdutils: apply nixfmt

parent 9f2b9d88
Loading
Loading
Loading
Loading
+29 −7
Original line number Diff line number Diff line
{ lib, stdenv, fetchgit, autoreconfHook, pkg-config, cmocka, acl, libuuid, lzo, zlib, zstd }:
{
  lib,
  stdenv,
  fetchgit,
  autoreconfHook,
  pkg-config,
  cmocka,
  acl,
  libuuid,
  lzo,
  zlib,
  zstd,
}:

stdenv.mkDerivation rec {
  pname = "mtd-utils";
@@ -10,8 +22,17 @@ stdenv.mkDerivation rec {
    hash = "sha256-uYXzZnVL5PkyDAntH8YsocwmQ8tf1f0Vl78SdE2B+Oc=";
  };

  nativeBuildInputs = [ autoreconfHook pkg-config ] ++ lib.optional doCheck cmocka;
  buildInputs = [ acl libuuid lzo zlib zstd ];
  nativeBuildInputs = [
    autoreconfHook
    pkg-config
  ] ++ lib.optional doCheck cmocka;
  buildInputs = [
    acl
    libuuid
    lzo
    zlib
    zstd
  ];

  enableParallelBuilding = true;

@@ -20,13 +41,14 @@ stdenv.mkDerivation rec {
    (lib.enableFeature doCheck "tests")
  ];

  makeFlags = [
    "AR:=$(AR)"
  ];
  makeFlags = [ "AR:=$(AR)" ];

  doCheck = stdenv.hostPlatform == stdenv.buildPlatform;

  outputs = [ "out" "dev" ];
  outputs = [
    "out"
    "dev"
  ];

  postInstall = ''
    mkdir -p $dev/lib