Commit 888d06d6 authored by Doron Behar's avatar Doron Behar
Browse files
parent 7ed62dc8
Loading
Loading
Loading
Loading
+3 −8
Original line number Diff line number Diff line
@@ -12,7 +12,6 @@

  # buildInputs
  libuuid,
  xdg-utils,

  # passthru.tests
  nixosTests,
@@ -25,24 +24,20 @@
}:
stdenv.mkDerivation (finalAttrs: {
  pname = "taskwarrior";
  version = "3.3.0";
  version = "3.4.1";
  src = fetchFromGitHub {
    owner = "GothenburgBitFactory";
    repo = "taskwarrior";
    tag = "v${finalAttrs.version}";
    hash = "sha256-aKDwRCJ1yopRdsPxnHhgOpSho1i8/dcAurI+XhpSbn4=";
    hash = "sha256-00HiGju4pIswx8Z+M+ATdBSupiMS2xIm2ZnE52k/RwA=";
    fetchSubmodules = true;
  };
  cargoDeps = rustPlatform.fetchCargoVendor {
    name = "${finalAttrs.pname}-${finalAttrs.version}-cargo-deps";
    inherit (finalAttrs) src;
    hash = "sha256-UbJodQBCrmXbw5+ahusBnEcoCYGFHRA6bg5hf9/prmA=";
    hash = "sha256-trc5DIWf68XRBSMjeG/ZchuwFA56wJnLbqm17gE+jYQ=";
  };

  postPatch = ''
    substituteInPlace src/commands/CmdNews.cpp \
      --replace-fail "xdg-open" "${lib.getBin xdg-utils}/bin/xdg-open"
  '';
  # The CMakeLists files used by upstream issue a `cargo install` command to
  # install a rust tool (cxxbridge-cmd) that is supposed to be included in the Cargo.toml's and
  # `Cargo.lock` files of upstream. Setting CARGO_HOME like that helps `cargo