我想使用Nixpkgs overlay将makeFlag添加到Firefox包中,但这似乎不是一件容易的事。
重写w3m起作用...
(import <nixpkgs> {
overlays = [
(self: super: {
w3m = super.w3m.overrideAttrs (oldAttrs: {
# that makeFlag makes no sense for w3m, it's just for demonstration
makeFlags = oldAttrs.makeFlags ++ [ "BUILD_OFFICIAL=1" ];
});
})
];
}).w3m...but没有覆盖火狐浏览器。
(import <nixpkgs> {
overlays = [
(self: super: {
firefox = super.firefox.overrideAttrs (oldAttrs: {
makeFlags = oldAttrs.makeFlags ++ [ "BUILD_OFFICIAL=1" ];
});
})
];
}).firefox$ nix build -f default.nix
error: attribute 'makeFlags' missing, at /path/to/default.nix:5:21
(use '--show-trace' to show detailed location information)发布于 2019-06-21 23:35:31
事实证明,需要覆盖firefox-unwrapped属性:
(import <nixpkgs> {
overlays = [
(self: super: {
firefox-unwrapped = super.firefox-unwrapped.overrideAttrs (oldAttrs: {
makeFlags = oldAttrs.makeFlags ++ [ "BUILD_OFFICIAL=1" ];
});
})
];
}).firefox-unwrapped这样,表达式就会求值。
https://stackoverflow.com/questions/56706513
复制相似问题