我想修改Nix派生(emacs macport)的定义。我希望更改金属的值,并将“--with-mac- configureFlag”改为它。
我尝试过以下几种方法,但没有成功:
emacsMacport.overrideDerivation
(old: {
configureFlags = [
"LDFLAGS=-L${ncurses.out}/lib"
"--with-xml2=yes"
"--with-gnutls=yes"
"--with-mac"
"--with-modules"
"--enable-mac-app=$$out/Applications"
"--with-mac-metal"
];
})我正在使用home-manager和nix-darwin,我得到了以下异常:
error: A definition for option `home-manager.users.ashk.home.packages.[definition 16-entry 3]' is not of type `package'. Definition values:
- In `/nix/store/mkcwa9i9brbxf81a01whhy53yzk87c9d-source/modules/hosts/zebra/home.nix': <function>
(use '--show-trace' to show detailed location information) 发布于 2021-10-15 20:06:16
当函数应用程序在列表文字中时,您需要将它们括起来。这很奇怪。
从我多年来广泛使用Nix的经验来看,您可能永远不会习惯这一点。
https://stackoverflow.com/questions/69588406
复制相似问题