nixpkgs/pkgs/os-specific/darwin/hexfiend/default.nix

Ignoring revisions in .git-blame-ignore-revs. Click here to bypass and see the normal blame view.

36 lines
986 B
Nix
Raw Normal View History

2023-05-05 18:40:35 +00:00
{ stdenv, lib, fetchurl, undmg }:
let
urlSuffix = version: if lib.versions.patch == 0 then
lib.versions.majorMinor version
else
version
;
in
2023-05-05 18:40:35 +00:00
stdenv.mkDerivation rec {
pname = "hexfiend";
version = "2.17.1";
2023-05-05 18:40:35 +00:00
src = fetchurl {
url = "https://github.com/HexFiend/HexFiend/releases/download/v${version}/Hex_Fiend_${urlSuffix version}.dmg";
hash = "sha256-QpGmpxDpdS+sJtsNtp0VSAd9WJXaZiKTH4yDsDK8FSk=";
2023-05-05 18:40:35 +00:00
};
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;
2023-07-22 08:54:40 +00:00
sourceProvenance = with sourceTypes; [ binaryNativeCode ];
2023-05-05 18:40:35 +00:00
maintainers = with maintainers; [ eliandoran ];
2023-07-22 08:54:40 +00:00
platforms = platforms.darwin;
2023-05-05 18:40:35 +00:00
};
}