blob: 76ab9f805abed2ab3817214a08f9fbd35b5cb185 (
plain) (
blame)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
|
{ stdenv
, mlton
, lib
, fetchFromGitHub
}:
stdenv.mkDerivation rec {
pname = "initool";
version = "0.14.0";
src = fetchFromGitHub {
owner = "dbohdan";
repo = pname;
rev = "v${version}";
hash = "sha256-qi8K3O6K9ZIKFlNFJ3O9/iKE+8M/mf/8V8qgl1BOaKo=";
};
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";
homepage = "https://github.com/dbohdan/initool";
license = licenses.mit;
maintainers = with maintainers; [ e1mo ];
changelog = "https://github.com/dbohdan/initool/releases/tag/v${version}";
};
}
|