nixpkgs/pkgs/development/tools/initool/default.nix
2024-05-24 17:39:36 +00:00

43 lines
820 B
Nix

{ stdenv
, mlton
, lib
, fetchFromGitHub
}:
stdenv.mkDerivation rec {
pname = "initool";
version = "0.17.0";
src = fetchFromGitHub {
owner = "dbohdan";
repo = pname;
rev = "v${version}";
hash = "sha256-9+XmkXQ2oqwDWmzPSUt7jBKZBGhUVtGkNs371p4V0xA=";
};
nativeBuildInputs = [ mlton ];
doCheck = true;
installPhase = ''
runHook preInstall
mkdir -p $out/bin
cp initool $out/bin/
runHook postInstall
'';
meta = with lib; {
inherit (mlton.meta) platforms;
description = "Manipulate INI files from the command line";
mainProgram = "initool";
homepage = "https://github.com/dbohdan/initool";
license = licenses.mit;
maintainers = with maintainers; [ e1mo ];
changelog = "https://github.com/dbohdan/initool/releases/tag/v${version}";
};
}