Clone of https://github.com/NixOS/nixpkgs.git (to stress-test knotserver)
at 24.05-beta 42 lines 820 B view raw
1{ stdenv 2, mlton 3, lib 4, fetchFromGitHub 5}: 6 7stdenv.mkDerivation rec { 8 pname = "initool"; 9 version = "0.15.0"; 10 11 src = fetchFromGitHub { 12 owner = "dbohdan"; 13 repo = pname; 14 rev = "v${version}"; 15 hash = "sha256-QUCI3E04ggmFORUTYtwdwVJNnbuLwXI2OGwdg5/Ges4="; 16 }; 17 18 nativeBuildInputs = [ mlton ]; 19 20 doCheck = true; 21 22 installPhase = '' 23 runHook preInstall 24 25 mkdir -p $out/bin 26 cp initool $out/bin/ 27 28 runHook postInstall 29 ''; 30 31 meta = with lib; { 32 inherit (mlton.meta) platforms; 33 34 description = "Manipulate INI files from the command line"; 35 mainProgram = "initool"; 36 homepage = "https://github.com/dbohdan/initool"; 37 license = licenses.mit; 38 maintainers = with maintainers; [ e1mo ]; 39 changelog = "https://github.com/dbohdan/initool/releases/tag/v${version}"; 40 }; 41} 42