about summary refs log tree commit diff
path: root/pkgs/development/compilers/ponyc/pony-corral.nix
blob: 81bf2b0aebc5b0a527167a1214864f24d8a3358d (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
{ lib
, stdenv
, fetchFromGitHub
, ponyc
, nix-update-script
}:

stdenv.mkDerivation (finalAttrs: {
  pname = "corral";
  version = "0.8.0";

  src = fetchFromGitHub {
    owner = "ponylang";
    repo = "corral";
    rev = finalAttrs.version;
    hash = "sha256-+pHg5BFHlScC1suad0/3RqKAnxoEVZNUNj1EDLvbsfA=";
  };

  strictDeps = true;

  nativeBuildInputs = [ ponyc ];

  installFlags = [ "prefix=${placeholder "out"}" "install" ];

  passthru.updateScript = nix-update-script { };

  meta = with lib; {
    description = "Corral is a dependency management tool for ponylang (ponyc)";
    homepage = "https://www.ponylang.io";
    changelog = "https://github.com/ponylang/corral/blob/${finalAttrs.version}/CHANGELOG.md";
    license = licenses.bsd2;
    maintainers = with maintainers; [ redvers ];
    inherit (ponyc.meta) platforms;
  };
})