cornelis: init at 2024-04-08#304335
Conversation
|
@malob, I have seen your contributions to the upstream Nix flake. Would you have the capacity to co-maintain the package here? |
|
Result of 1 package built:
|
|
I've been reading some other PRs adding Haskell packages and have learned that cc @sternenseemann is there documentation on how to add non-hackage packages? |
|
I think your derivation can be a lot simpler. This worked for me: { haskellPackages, fetchFromGitHub }:
let
pname = "cornelis";
src = fetchFromGitHub {
owner = "isovector";
repo = pname;
rev = "9d3347e7d8589a28bcdd283001367d60bacf6b05";
hash = "sha256-KaAhKeESwOQ0R0vxeAO/CDPiPimiemoARyr0uIVTQ4w=";
};
in
haskellPackages.callCabal2nix pname src {} |
|
If you're going to add { lib
[...]
, cornelis
[...]
,
}: self: super:
{
[...]
cornelis = buildVimPlugin {
inherit (cornelis) pname version src;
dependencies = with super; [ nvim-hs-vim vim-textobj-user ];
};
[...]
} |
|
Oh yeah, sure, you can list me as a co-maintainer. |
I think your code performs an Import From Derivation, which is disallowed in nixpkgs. So running
Ahhh, that's a great suggestion, thank you. I believe in this case we should set
I'll do that! |
|
Cornelis is now on Hackage. I guess we could wait for the next update to the Haskell package set here and then drop the custom packaging. |
|
I think waiting for |
|
#307204 includes the package from hackage. Once that’s been merged into master, I’ll rebase and remove the custom packaging. |
|
I rebased this on 465ae2d still includes some custom packaging for the top-level package: it sets some |
Description of changes
This PR adds a package containing the binary of Cornelis, which provides editor-integration for Agda in Neovim.
This is a Haskell package, but it is not available on hackage. It therefore includes an update-script to generate the derivation with
cabal2nix.The upstream repository includes a Neovim plugin which should be packaged in a future PR. I personally do not configure Neovim through Nix, so any help with that would be appreciated.
Edit: I packaged a first iteration of the vim plugin.
Things done
nix.conf? (See Nix manual)sandbox = relaxedsandbox = truenix-shell -p nixpkgs-review --run "nixpkgs-review rev HEAD". Note: all changes have to be committed, also see nixpkgs-review usage./result/bin/)Add a 👍 reaction to pull requests you find important.