-
|
Thanks for the awesome package! If someone tries install jinx in emacs while running NixOS, pkg-config won't find libenchant, even if the with import <nixpkgs> {};
stdenv.mkDerivation {
name = "env";
nativeBuildInputs = [ pkg-config ];
buildInputs = [
enchant
];
}Entering into the nix shell then correctly sets the necessary environment variable for pkg-config, and jinx can be compiled using the script in If you decide that this isn't a problem that the package should address, fair enough. Hopefully this will be useful to other NixOS users who encounter the same issue. |
Beta Was this translation helpful? Give feedback.
Replies: 1 comment 3 replies
-
|
Are you working on an official recipe for Nix? You may want to look at the corresponding Guix recipe in how they solved building and installation. I am not familiar enough to help. |
Beta Was this translation helpful? Give feedback.
Somehow it hadn't occurred to me to check, but it turns out that jinx is already packaged for NixOS (here: https://github.com/NixOS/nixpkgs/blob/master/pkgs/applications/editors/emacs/elisp-packages/melpa-packages.nix). I usually just install emacs on NixOS and do package management in the traditional way, but indeed probably the cleanest solution is to just install packages like jinx using the system package manager. I was hoping to avoid installing only some packages this way, but it seems better than using a hack pdf-tools does. Cheers!