所以我想用一个新的fork替换我的home-manager配置中的pkgs.picom。我该怎么做呢?
我有种感觉是这样的:
let newPicom = pkgs.picom.override.src.url = "https://github.com/ibhagwan/picom";
in
services.picom.package = newPicom; 但了解Nix可能实际上是对self: super:的一些非常长的咒语,等等。
发布于 2021-01-31 02:35:37
覆盖包的源代码的nixos.wiki has an example。
您确实需要提供一个可重现的源。github存储库url是可变的,因此您需要指定修订版。
{ pkgs, ... }:
let newPicom = pkgs.picom.overrideAttrs (old: {
version = "git"; # usually harmless to omit
src = /* put your source here; typically a local path or
a fixed-output derivation produced by
`fetchFromGitHub`.
builtins.fetchGit is also an option. Doesn't run
in parallel but does fetch private sources. */;
});
in {
services.picom.package = newPicom;
}https://stackoverflow.com/questions/65970915
复制相似问题