mirror of
https://github.com/NixOS/nixpkgs.git
synced 2025-01-25 06:13:54 +00:00
db3868e64c
https://hexfiend.github.io/HexFiend/ReleaseNotes.html Co-authored-by: Pol Dellaiera <pol.dellaiera@protonmail.com>
36 lines
986 B
Nix
36 lines
986 B
Nix
{ stdenv, lib, fetchurl, undmg }:
|
|
|
|
let
|
|
urlSuffix = version: if lib.versions.patch == 0 then
|
|
lib.versions.majorMinor version
|
|
else
|
|
version
|
|
;
|
|
in
|
|
stdenv.mkDerivation rec {
|
|
pname = "hexfiend";
|
|
version = "2.17.1";
|
|
|
|
src = fetchurl {
|
|
url = "https://github.com/HexFiend/HexFiend/releases/download/v${version}/Hex_Fiend_${urlSuffix version}.dmg";
|
|
hash = "sha256-QpGmpxDpdS+sJtsNtp0VSAd9WJXaZiKTH4yDsDK8FSk=";
|
|
};
|
|
|
|
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;
|
|
sourceProvenance = with sourceTypes; [ binaryNativeCode ];
|
|
maintainers = with maintainers; [ eliandoran ];
|
|
platforms = platforms.darwin;
|
|
};
|
|
}
|