mirror of
https://github.com/NixOS/nixpkgs.git
synced 2024-12-11 16:23:26 +00:00
41 lines
1.0 KiB
Nix
41 lines
1.0 KiB
Nix
{ lib
|
|
, rustPlatform
|
|
, fetchFromGitHub
|
|
, nix-update-script
|
|
, stdenv
|
|
, darwin
|
|
}:
|
|
|
|
rustPlatform.buildRustPackage rec {
|
|
pname = "ghciwatch";
|
|
version = "1.0.0";
|
|
|
|
src = fetchFromGitHub {
|
|
owner = "MercuryTechnologies";
|
|
repo = "ghciwatch";
|
|
rev = "v${version}";
|
|
hash = "sha256-SV2QRFXXXwWZGd2pe+7aK+p3X+EviDrykqceZ+24t4I=";
|
|
};
|
|
|
|
cargoHash = "sha256-/N1R8/qRIt0AiIzTKt/vPlSLxPdKU+oeuE4eZTjwJlA=";
|
|
|
|
buildInputs = lib.optionals stdenv.isDarwin [
|
|
darwin.apple_sdk.frameworks.CoreFoundation
|
|
darwin.apple_sdk.frameworks.CoreServices
|
|
];
|
|
|
|
# integration tests are not run but the macros need this variable to be set
|
|
GHC_VERSIONS = "";
|
|
checkFlags = "--test \"unit\"";
|
|
|
|
meta = with lib; {
|
|
description = "Ghci-based file watching recompiler for Haskell development";
|
|
homepage = "https://github.com/MercuryTechnologies/ghciwatch";
|
|
license = licenses.mit;
|
|
maintainers = with maintainers; [ mangoiv _9999years ];
|
|
mainProgram = "ghciwatch";
|
|
};
|
|
|
|
passthru.updateScript = nix-update-script { };
|
|
}
|