2023-02-09 11:40:11 +00:00
|
|
|
{ stdenv
|
|
|
|
, mlton
|
|
|
|
, lib
|
|
|
|
, fetchFromGitHub
|
|
|
|
}:
|
|
|
|
|
|
|
|
stdenv.mkDerivation rec {
|
|
|
|
pname = "initool";
|
2024-06-20 14:57:18 +00:00
|
|
|
version = "0.18.0";
|
2023-02-09 11:40:11 +00:00
|
|
|
|
|
|
|
src = fetchFromGitHub {
|
|
|
|
owner = "dbohdan";
|
|
|
|
repo = pname;
|
|
|
|
rev = "v${version}";
|
2024-06-20 14:57:18 +00:00
|
|
|
hash = "sha256-f426yzSYcrhd0MOZc5vDg4T4m/RdWzTz/KPzb65h03U=";
|
2023-02-09 11:40:11 +00:00
|
|
|
};
|
|
|
|
|
|
|
|
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";
|
2024-04-21 15:54:59 +00:00
|
|
|
mainProgram = "initool";
|
2023-02-09 11:40:11 +00:00
|
|
|
homepage = "https://github.com/dbohdan/initool";
|
|
|
|
license = licenses.mit;
|
|
|
|
maintainers = with maintainers; [ e1mo ];
|
|
|
|
changelog = "https://github.com/dbohdan/initool/releases/tag/v${version}";
|
|
|
|
};
|
|
|
|
}
|
|
|
|
|