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 KiB
Nix
Raw Normal View History

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