Nixpkgs/Patching Nixpkgs: Difference between revisions
m Fix indenting in code example |
m More indenting tweaks |
||
| Line 30: | Line 30: | ||
<syntaxHighlight lang=nix> | <syntaxHighlight lang=nix> | ||
let | let | ||
pkgs-unstable' = | |||
(import nixpkgs-unstable { | (import nixpkgs-unstable { | ||
system = "x86_64-linux"; | |||
}).applyPatches | }).applyPatches | ||
{ | |||
name = "nixpkgs-unstable-patched"; | |||
src = inputs.nixpkgs-unstable; | |||
patches = [ | |||
(builtins.fetchurl { | |||
url = "https://patch-diff.githubusercontent.com/raw/NixOS/nixpkgs/pull/344917.patch"; | |||
sha256 = "sha256-aws9J5ZNUyz4Z2RqPVEovBTNng4AdhzS03Bqg8jejWQ="; | |||
}) | |||
]; | |||
}; | |||
pkgs-unstable = import pkgs-unstable' { | |||
system = "x86_64-linux"; | |||
}; | |||
# ... | # ... | ||
</syntaxHighlight> | </syntaxHighlight> | ||