Unverified Commit e2dec02c authored by Gustavo Coutinho de Souza's avatar Gustavo Coutinho de Souza
Browse files

hareThirdParty.hare-toml: 0.1.0 -> 0.1.0-unstable-2023-12-27

parent 41f9a903
Loading
Loading
Loading
Loading
+3 −19
Original line number Diff line number Diff line
@@ -3,36 +3,20 @@
, scdoc
, lib
, fetchFromGitea
, fetchpatch
, nix-update-script
}:
stdenv.mkDerivation (finalAttrs: {
  pname = "hare-toml";
  version = "0.1.0";
  version = "0.1.0-unstable-2023-12-27";

  src = fetchFromGitea {
    domain = "codeberg.org";
    owner = "lunacb";
    repo = "hare-toml";
    rev = "v${finalAttrs.version}";
    hash = "sha256-JKK5CcDmAW7FH7AzFwgsr9i13eRSXDUokWfZix7f4yY=";
    rev = "022d0a8d59e5518029f72724a46e6133b934774c";
    hash = "sha256-DsVcbh1zn8GNKzzb+1o6bfgiVigrxHw/5Xm3uuUhRy0=";
  };

  patches = [
    # Remove `abort()` calls from never returning expressions.
    (fetchpatch {
      name = "remove-abort-from-never-returning-expressions.patch";
      url = "https://codeberg.org/lunacb/hare-toml/commit/f26e7cdfdccd2e82c9fce7e9fca8644b825b40f1.patch";
      hash = "sha256-DFbrxiaV4lQlFmMzo5GbMubIQ4hU3lXgsJqoyeFWf2g=";
    })
    # Fix make's install target to install the correct files
    (fetchpatch {
      name = "install-correct-files-with-install-target.patch";
      url = "https://codeberg.org/lunacb/hare-toml/commit/b79021911fe7025a8f5ddd97deb2c4d18c67b25e.patch";
      hash = "sha256-IL+faumX6BmdyePXTzsSGgUlgDBqOXXzShupVAa7jlQ=";
    })
  ];

  nativeBuildInputs = [
    scdoc
    hare