2024-05-01 13:14:23 +00:00
|
|
|
{ lib
|
|
|
|
, rustPlatform
|
|
|
|
, fetchFromGitHub
|
|
|
|
, nix-update-script
|
|
|
|
, stdenv
|
|
|
|
, darwin
|
|
|
|
}:
|
|
|
|
|
|
|
|
rustPlatform.buildRustPackage rec {
|
|
|
|
pname = "ghciwatch";
|
2024-07-28 08:30:37 +00:00
|
|
|
version = "1.0.1";
|
2024-05-01 13:14:23 +00:00
|
|
|
|
|
|
|
src = fetchFromGitHub {
|
|
|
|
owner = "MercuryTechnologies";
|
|
|
|
repo = "ghciwatch";
|
|
|
|
rev = "v${version}";
|
2024-07-28 08:30:37 +00:00
|
|
|
hash = "sha256-ywjbi+5xBrwgvgwAatNMs160ij52X8gbJ1PaLmZgTnY=";
|
2024-05-01 13:14:23 +00:00
|
|
|
};
|
|
|
|
|
2024-07-28 08:30:37 +00:00
|
|
|
cargoHash = "sha256-bE2cNgmq1TxtEDmLuyJVJpaj0Gbt73fnD1j/X42OL/w=";
|
2024-05-01 13:14:23 +00:00
|
|
|
|
2024-09-24 15:50:49 +00:00
|
|
|
buildInputs = lib.optionals stdenv.hostPlatform.isDarwin [
|
2024-05-01 13:14:23 +00:00
|
|
|
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 { };
|
|
|
|
}
|