sqlite_orm: 1.9 -> 1.9.1 (#379250)
[NixPkgs.git] / pkgs / by-name / in / initool / package.nix
blob3700790a8ddaa3378b0c6b287a0a901064199360
2   stdenv,
3   mlton,
4   lib,
5   fetchFromGitHub,
6 }:
8 stdenv.mkDerivation rec {
9   pname = "initool";
10   version = "1.0.0";
12   src = fetchFromGitHub {
13     owner = "dbohdan";
14     repo = pname;
15     rev = "v${version}";
16     hash = "sha256-PROsyYw8xdnn0PX+3OyUPaybQbTmO88G2koeZhBfwjg=";
17   };
19   nativeBuildInputs = [ mlton ];
21   doCheck = true;
23   installPhase = ''
24     runHook preInstall
26     mkdir -p $out/bin
27     cp initool $out/bin/
29     runHook postInstall
30   '';
32   meta = with lib; {
33     inherit (mlton.meta) platforms;
35     description = "Manipulate INI files from the command line";
36     mainProgram = "initool";
37     homepage = "https://github.com/dbohdan/initool";
38     license = licenses.mit;
39     maintainers = with maintainers; [ e1mo ];
40     changelog = "https://github.com/dbohdan/initool/releases/tag/v${version}";
41   };