diff options
author | Sandro <sandro.jaeckel@gmail.com> | 2023-07-03 16:00:30 +0200 |
---|---|---|
committer | GitHub <noreply@github.com> | 2023-07-03 16:00:30 +0200 |
commit | ce8744e3f5d55c4e23c5f01df32b12644e37337b (patch) | |
tree | 579b493abd65864cc427684a3c808bc5fd16ff7b /pkgs/os-specific | |
parent | 3b89d838f97dace96c15dc8f46fdb8fa75737c4d (diff) | |
parent | 6e3e0b14d7e4c6eba75bc72967ab098473eed9db (diff) |
Merge pull request #230168 from eliandoran/dev/hexfiend
Diffstat (limited to 'pkgs/os-specific')
-rw-r--r-- | pkgs/os-specific/darwin/hexfiend/default.nix | 27 |
1 files changed, 27 insertions, 0 deletions
diff --git a/pkgs/os-specific/darwin/hexfiend/default.nix b/pkgs/os-specific/darwin/hexfiend/default.nix new file mode 100644 index 0000000000000..c35de6666fbe5 --- /dev/null +++ b/pkgs/os-specific/darwin/hexfiend/default.nix @@ -0,0 +1,27 @@ +{ stdenv, lib, fetchurl, undmg }: + +stdenv.mkDerivation rec { + pname = "hexfiend"; + version = "2.16.0"; + + src = fetchurl { + url = "https://github.com/HexFiend/HexFiend/releases/download/v${version}/Hex_Fiend_${lib.versions.majorMinor version}.dmg"; + sha256 = "sha256-jO57bW5TyuQ0mjKKsSwDoGLp2TZ1d+m159flVGaVrLc="; + }; + + sourceRoot = "Hex Fiend.app"; + nativeBuildInputs = [ undmg ]; + installPhase = '' + mkdir -p "$out/Applications/Hex Fiend.app" + cp -R . "$out/Applications/Hex Fiend.app" + ''; + + meta = with lib; { + description = "Open-source macOS hex editor"; + homepage = "http://hexfiend.com/"; + changelog = "https://hexfiend.github.io/HexFiend/ReleaseNotes.html"; + license = licenses.bsd2; + maintainers = with maintainers; [ eliandoran ]; + platforms = [ "x86_64-darwin" ]; + }; +} |