diff --git a/pkgs/by-name/dd/ddhx/dub-lock.json b/pkgs/by-name/dd/ddhx/dub-lock.json new file mode 100644 index 000000000000..18a1e415e562 --- /dev/null +++ b/pkgs/by-name/dd/ddhx/dub-lock.json @@ -0,0 +1,3 @@ +{ + "dependencies": {} +} diff --git a/pkgs/by-name/dd/ddhx/package.nix b/pkgs/by-name/dd/ddhx/package.nix new file mode 100644 index 000000000000..fbc156530902 --- /dev/null +++ b/pkgs/by-name/dd/ddhx/package.nix @@ -0,0 +1,35 @@ +{ + lib, + buildDubPackage, + fetchFromGitHub, +}: +buildDubPackage (finalAttrs: { + pname = "ddhx"; + version = "0.9.1"; + + src = fetchFromGitHub { + owner = "dd86k"; + repo = "ddhx"; + tag = "v${finalAttrs.version}"; + hash = "sha256-AFhxrYncqVnHfro4sUgCT1ZBeL3CUwcwhnGXVuFQ9ak="; + }; + + dubLock = ./dub-lock.json; + + installPhase = '' + runHook preInstall + install -Dm755 ddhx -t $out/bin + runHook postInstall + ''; + + doCheck = true; + + meta = { + description = "Console text-mode hex editor, inspired by GNU nano and vim"; + homepage = "https://github.com/dd86k/ddhx"; + changelog = "https://github.com/dd86k/ddhx/releases/tag/v${finalAttrs.version}"; + license = lib.licenses.mit; + maintainers = [ lib.maintainers.ryand56 ]; + platforms = lib.platforms.unix; + }; +})