Unverified Commit 4724275c authored by Aleksana's avatar Aleksana Committed by GitHub
Browse files

hevi: init at 1.1.0 (#392004)

parents 9b82360b 9cc792c8
Loading
Loading
Loading
Loading
+42 −0
Original line number Diff line number Diff line
# generated by zon2nix (https://github.com/nix-community/zon2nix)

{
  linkFarm,
  fetchzip,
  fetchgit,
}:

linkFarm "zig-packages" [
  {
    name = "12204a4669fa6e8ebb1720e3581a24c1a7f538f2f4ee3ebc91a9e36285c89572d761";
    path = fetchgit {
      url = "https://github.com/MFAshby/zig-lsp-kit.git";
      rev = "1c07e3e3305f8dd6355735173321c344fc152d3e";
      hash = "sha256-WBJ7hbc69W3mtzrMLwehcKccSbVe/8Dy9sX4IA4VbcY=";
    };
  }
  {
    name = "1220841471bd4891cbb199d27cc5e7e0fb0a5b7c5388a70bd24fa3eb7285755c396c";
    path = fetchgit {
      url = "https://github.com/kubkon/zig-yaml.git";
      rev = "beddd5da24de91d430ca7028b00986f7745b13e9";
      hash = "sha256-CJms2LjwoYNlbhapFYzvOImuaMH/zikllYeQ2/VlHi0=";
    };
  }
  {
    name = "12209cde192558f8b3dc098ac2330fc2a14fdd211c5433afd33085af75caa9183147";
    path = fetchgit {
      url = "https://github.com/ziglibs/known-folders.git";
      rev = "0ad514dcfb7525e32ae349b9acc0a53976f3a9fa";
      hash = "sha256-X+XkFj56MkYxxN9LUisjnkfCxUfnbkzBWHy9pwg5M+g=";
    };
  }
  {
    name = "1220c198cdaf6cb73fca6603cc5039046ed10de2e9f884cae9224ff826731df1c68d";
    path = fetchgit {
      url = "https://github.com/kristoff-it/ziggy";
      rev = "ae30921d8c98970942d3711553aa66ff907482fe";
      hash = "sha256-dZemnsmM0383HnA7zhykyO/DnG0mx+PVjjr9NiIfu4I=";
    };
  }
]
+39 −0
Original line number Diff line number Diff line
{
  callPackage,
  fetchFromGitHub,
  lib,
  stdenv,
  zig_0_13,
}:

let
  zig = zig_0_13;
in
stdenv.mkDerivation (finalAttrs: {
  pname = "hevi";
  version = "1.1.0";

  src = fetchFromGitHub {
    owner = "Arnau478";
    repo = "hevi";
    tag = "v${finalAttrs.version}";
    hash = "sha256-wnpuM2qlbeDIupDPQPKdWmjAKepCG0+u3uxcLDFB09w=";
  };

  nativeBuildInputs = [
    zig.hook
  ];

  postPatch = ''
    ln -s ${callPackage ./deps.nix { }} $ZIG_GLOBAL_CACHE_DIR/p
  '';

  meta = {
    description = "Hex viewer";
    homepage = "https://github.com/Arnau478/hevi";
    license = lib.licenses.gpl3Only;
    maintainers = [ lib.maintainers.jmbaur ];
    mainProgram = "hevi";
    inherit (zig.meta) platforms;
  };
})