nixpkgs/pkgs/by-name/gh/ghciwatch/package.nix

Ignoring revisions in .git-blame-ignore-revs. Click here to bypass and see the normal blame view.

41 lines
1.0 KiB
Nix
Raw Normal View History

2024-05-01 13:14:23 +00:00
{ lib
, rustPlatform
, fetchFromGitHub
, nix-update-script
, stdenv
, darwin
}:
rustPlatform.buildRustPackage rec {
pname = "ghciwatch";
2024-06-17 00:45:09 +00:00
version = "1.0.0";
2024-05-01 13:14:23 +00:00
src = fetchFromGitHub {
owner = "MercuryTechnologies";
repo = "ghciwatch";
rev = "v${version}";
2024-06-17 00:45:09 +00:00
hash = "sha256-SV2QRFXXXwWZGd2pe+7aK+p3X+EviDrykqceZ+24t4I=";
2024-05-01 13:14:23 +00:00
};
2024-06-17 00:45:09 +00:00
cargoHash = "sha256-/N1R8/qRIt0AiIzTKt/vPlSLxPdKU+oeuE4eZTjwJlA=";
2024-05-01 13:14:23 +00:00
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 { };
}