Unverified Commit 8bb93db5 authored by Pol Dellaiera's avatar Pol Dellaiera Committed by GitHub
Browse files

mtdutils: 2.2.0 -> 2.2.1, patch mount.ubifs (#347005)

parents 89874762 ca009870
Loading
Loading
Loading
Loading
+38 −9
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,
  util-linux,
  zlib,
  zstd,
}:

stdenv.mkDerivation rec {
  pname = "mtd-utils";
  version = "2.2.0";
  version = "2.2.1";

  src = fetchgit {
    url = "git://git.infradead.org/mtd-utils.git";
    rev = "v${version}";
    hash = "sha256-uYXzZnVL5PkyDAntH8YsocwmQ8tf1f0Vl78SdE2B+Oc=";
    hash = "sha256-vGgBOKu+ClmyRZHQkAS8r/YJtZihr/oD/yj8V7DeAQ8=";
  };

  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
    util-linux
    zlib
    zstd
  ];

  postPatch = ''
    substituteInPlace ubifs-utils/mount.ubifs \
      --replace-fail "/bin/mount" "${util-linux}/bin/mount"
  '';

  enableParallelBuilding = true;

@@ -20,13 +48,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
+0 −2
Original line number Diff line number Diff line
@@ -10172,8 +10172,6 @@ with pkgs;
  ms-sys = callPackage ../tools/misc/ms-sys { };
  mtdutils = callPackage ../tools/filesystems/mtdutils { };
  mtools = callPackage ../tools/filesystems/mtools { };
  mtr = callPackage ../tools/networking/mtr { };