mirror of
https://github.com/NixOS/nixpkgs.git
synced 2025-01-18 02:44:30 +00:00
571c71e6f7
We are migrating packages that meet below requirements: 1. using `callPackage` 2. called path is a directory 3. overriding set is empty (`{ }`) 4. not containing path expressions other than relative path (to makenixpkgs-vet happy) 5. not referenced by nix files outside of the directory, other than`pkgs/top-level/all-packages.nix` 6. not referencing nix files outside of the directory 7. not referencing `default.nix` (since it's changed to `package.nix`) 8. `outPath` doesn't change after migration The tool is here: https://github.com/Aleksanaa/by-name-migrate.
38 lines
1.0 KiB
Nix
38 lines
1.0 KiB
Nix
{ stdenv, lib, fetchurl, undmg, nix-update-script }:
|
|
|
|
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"
|
|
'';
|
|
|
|
passthru.updateScript = nix-update-script { };
|
|
|
|
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;
|
|
};
|
|
}
|