Unverified Commit 63f15db5 authored by Mario Rodas's avatar Mario Rodas Committed by GitHub
Browse files

Merge pull request #175881 from marsam/update-entr

entr: 5.1 -> 5.2
parents ba78bf3b 539a971f
Loading
Loading
Loading
Loading
+3 −6
Original line number Diff line number Diff line
{ lib, stdenv, fetchurl, coreutils, ncurses, fetchpatch }:
{ lib, stdenv, fetchurl, coreutils }:

stdenv.mkDerivation rec {
  pname = "entr";
  version = "5.1";
  version = "5.2";

  src = fetchurl {
    url = "https://eradman.com/entrproject/code/${pname}-${version}.tar.gz";
    hash = "sha256-D4f1d7zodkHFJa3bm8xgu6pXn+mB2rdZBD484VVtu5I=";
    hash = "sha256-I34wnUawdSEMDky3ib/Qycd37d9sswNBw/49vMZYw4A=";
  };

  postPatch = ''
    substituteInPlace Makefile.bsd --replace /bin/echo echo
    substituteInPlace entr.c --replace /bin/cat ${coreutils}/bin/cat
    substituteInPlace entr.c --replace /usr/bin/clear ${ncurses.out}/bin/clear
    substituteInPlace entr.1 --replace /bin/cat cat
    substituteInPlace entr.1 --replace /usr/bin/clear clear
  '';
  dontAddPrefix = true;
  doCheck = true;