Commit db5bf85d authored by emaryn's avatar emaryn Committed by Masum Reza
Browse files

wofi-emoji: 1.0.0 -> 1.1.0

parent d7041843
Loading
Loading
Loading
Loading
+10 −9
Original line number Diff line number Diff line
@@ -11,22 +11,23 @@

let
  emojiJSON = fetchurl {
    url = "https://raw.githubusercontent.com/muan/emojilib/v3.0.11/dist/emoji-en-US.json";
    hash = "sha256-WHqCSNgDzc6ZASdVrwPvsU4MtBcYLKDp2D2Hykrq1sI=";
    url = "https://raw.githubusercontent.com/muan/emojilib/v4.0.0/dist/emoji-en-US.json";
    hash = "sha256-IoU9ZPCqvSPX4DmfC+r5MiglhFc41XMRrbJRL9ZNrvs=";
  };
in
stdenv.mkDerivation rec {
  pname = "wofi-emoji";
  version = "1.0.0";
  version = "1.1.0";

  src = fetchFromGitHub {
    owner = "Zeioth";
    repo = "wofi-emoji";
    rev = "v${version}";
    hash = "sha256-wLZK7RcDxxlYuu27WNj+SoRoBiCqk9whp4Fyg0SOoPA=";
    tag = "v${version}";
    hash = "sha256-NHiAAPRbIz0sC5yh9DTDmIU3zDBFIlUsbpW4HAPr5C8=";
  };

  nativeBuildInputs = [ jq ];

  buildInputs = [
    wofi
    wtype
@@ -35,11 +36,11 @@ stdenv.mkDerivation rec {

  postPatch = ''
    substituteInPlace build.sh \
      --replace 'curl ${emojiJSON.url}' 'cat ${emojiJSON}'
      --replace-fail 'curl ${emojiJSON.url}' 'cat ${emojiJSON}'
    substituteInPlace wofi-emoji \
      --replace 'wofi' '${wofi}/bin/wofi' \
      --replace 'wtype' '${wtype}/bin/wtype' \
      --replace 'wl-copy' '${wl-clipboard}/bin/wl-copy'
      --replace-fail 'wofi' '${wofi}/bin/wofi' \
      --replace-fail 'wtype' '${wtype}/bin/wtype' \
      --replace-fail 'wl-copy' '${wl-clipboard}/bin/wl-copy'
  '';

  buildPhase = ''