diff options
author | Jade Lovelace <software@lfcode.ca> | 2024-05-01 22:32:06 -0700 |
---|---|---|
committer | GitHub <noreply@github.com> | 2024-05-01 22:32:06 -0700 |
commit | b82d369e121245106997bd5d03c1cb9a195801b4 (patch) | |
tree | 21149faee48c632af273c8914e8d86c71cd557f0 /pkgs/by-name | |
parent | 0024829c285c89ff24b064c1920e3ca86ea04e86 (diff) | |
parent | 146620937748f5a7bf75c2678a5e4b50842d56f6 (diff) |
Merge pull request #308276 from MangoIV/mangoiv/ghciwatch
ghciwatch: init at 0.5.10
Diffstat (limited to 'pkgs/by-name')
-rw-r--r-- | pkgs/by-name/gh/ghciwatch/package.nix | 40 |
1 files changed, 40 insertions, 0 deletions
diff --git a/pkgs/by-name/gh/ghciwatch/package.nix b/pkgs/by-name/gh/ghciwatch/package.nix new file mode 100644 index 0000000000000..62b11f975f7a4 --- /dev/null +++ b/pkgs/by-name/gh/ghciwatch/package.nix @@ -0,0 +1,40 @@ +{ lib +, rustPlatform +, fetchFromGitHub +, nix-update-script +, stdenv +, darwin +}: + +rustPlatform.buildRustPackage rec { + pname = "ghciwatch"; + version = "0.5.10"; + + src = fetchFromGitHub { + owner = "MercuryTechnologies"; + repo = "ghciwatch"; + rev = "v${version}"; + hash = "sha256-6afUHLPrSWhgN5LA346tAZ1+gROr+i/ZyCNVnyCd5Tc="; + }; + + cargoHash = "sha256-og7S3W+DCBlFIvKLZghLT+msBLnS1o7Rea7v2VPsDYA="; + + 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 { }; +} |