Files
quantenzitrone 6b61249106 various: switch to finalAttrs pattern
this shouldn't create any rebuilds
2026-01-30 02:36:22 +01:00

43 lines
858 B
Nix

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