mirror of
https://github.com/NixOS/nixpkgs.git
synced 2024-12-02 11:53:27 +00:00
ff1a94e523
The nixpkgs-unstable channel's programs.sqlite was used to identify packages producing exactly one binary, and these automatically added to their package definitions wherever possible.
43 lines
820 B
Nix
43 lines
820 B
Nix
{ stdenv
|
|
, mlton
|
|
, lib
|
|
, fetchFromGitHub
|
|
}:
|
|
|
|
stdenv.mkDerivation rec {
|
|
pname = "initool";
|
|
version = "0.14.1";
|
|
|
|
src = fetchFromGitHub {
|
|
owner = "dbohdan";
|
|
repo = pname;
|
|
rev = "v${version}";
|
|
hash = "sha256-wb9hJ0R1R7kYt+TWznqfVGKms3hQjzB8TJYpS89da/E=";
|
|
};
|
|
|
|
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}";
|
|
};
|
|
}
|
|
|