Unverified Commit 703d9836 authored by Vlad M.'s avatar Vlad M. Committed by GitHub
Browse files

ouch: 0.5.1 -> 0.6.1 (#399938)

parents a9eac9f8 5187ecc7
Loading
Loading
Loading
Loading
+12 −8
Original line number Diff line number Diff line
@@ -5,32 +5,40 @@
  installShellFiles,
  pkg-config,
  bzip2,
  bzip3,
  xz,
  git,
  zlib,
  zstd,
}:

rustPlatform.buildRustPackage rec {
  pname = "ouch";
  version = "0.5.1";
  version = "0.6.1";

  src = fetchFromGitHub {
    owner = "ouch-org";
    repo = "ouch";
    rev = version;
    hash = "sha256-WO1fetu39fcLGcrbzFh+toHpnyxWuDVHtmjuH203hzQ=";
    hash = "sha256-vNeOJOyQsjDUzScA1a/W+SI1Z67HTLiHjwWZZpr1Paw=";
  };

  useFetchCargoVendor = true;
  cargoHash = "sha256-LBigtb8kYAgPb4X+L0a/mzPLPEUk5aEHigZuI4Y8N+k=";
  cargoHash = "sha256-mMoYJ3dLpb1Y3Ocdyxg1brE7xYeZBbtUg0J/2HTK0hE=";

  nativeBuildInputs = [
    installShellFiles
    pkg-config
    rustPlatform.bindgenHook
  ];

  nativeCheckInputs = [
    git
  ];

  buildInputs = [
    bzip2
    bzip3
    xz
    zlib
    zstd
@@ -38,11 +46,6 @@ rustPlatform.buildRustPackage rec {

  buildFeatures = [ "zstd/pkg-config" ];

  preCheck = ''
    substituteInPlace tests/ui.rs \
      --replace 'format!(r"/private{path}")' 'path.to_string()'
  '';

  postInstall = ''
    installManPage artifacts/*.1
    installShellCompletion artifacts/ouch.{bash,fish} --zsh artifacts/_ouch
@@ -58,6 +61,7 @@ rustPlatform.buildRustPackage rec {
    maintainers = with maintainers; [
      figsoda
      psibi
      krovuxdev
    ];
    mainProgram = "ouch";
  };