5ca88bfbb9
GitOrigin-RevId: 9f918d616c5321ad374ae6cb5ea89c9e04bf3e58
40 lines
1 KiB
Nix
40 lines
1 KiB
Nix
{ lib
|
|
, rustPlatform
|
|
, fetchFromGitHub
|
|
, nix-update-script
|
|
, stdenv
|
|
, darwin
|
|
}:
|
|
|
|
rustPlatform.buildRustPackage rec {
|
|
pname = "ghciwatch";
|
|
version = "1.0.1";
|
|
|
|
src = fetchFromGitHub {
|
|
owner = "MercuryTechnologies";
|
|
repo = "ghciwatch";
|
|
rev = "v${version}";
|
|
hash = "sha256-ywjbi+5xBrwgvgwAatNMs160ij52X8gbJ1PaLmZgTnY=";
|
|
};
|
|
|
|
cargoHash = "sha256-bE2cNgmq1TxtEDmLuyJVJpaj0Gbt73fnD1j/X42OL/w=";
|
|
|
|
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 { };
|
|
}
|