summaryrefslogtreecommitdiff
path: root/Biz/Bild/Nixpkgs.nix
diff options
context:
space:
mode:
authorBen Sima <ben@bsima.me>2024-04-01 13:30:45 -0400
committerBen Sima <ben@bsima.me>2024-04-01 13:30:45 -0400
commitdb373a8c727cad91d375b40a6c70b11ed73bdafb (patch)
treea7ed24e98242b6e38f44cb0c9884718d248cc613 /Biz/Bild/Nixpkgs.nix
parent5c8ef1bf4dff4fc7c6e66a57673a81477bcc850a (diff)
Add nixfmt to Lint.hs
nixfmt is the soon-to-be official formatter for Nix code, as per the NixOS GitHub group. So I figure I should just adopt it without worrying too much about the specifics of the formatting. I just formatted everything in one go, hence the huge diff, oh well.
Diffstat (limited to 'Biz/Bild/Nixpkgs.nix')
-rw-r--r--Biz/Bild/Nixpkgs.nix18
1 files changed, 10 insertions, 8 deletions
diff --git a/Biz/Bild/Nixpkgs.nix b/Biz/Bild/Nixpkgs.nix
index dff44a0..ecf50b9 100644
--- a/Biz/Bild/Nixpkgs.nix
+++ b/Biz/Bild/Nixpkgs.nix
@@ -13,9 +13,9 @@ in import sources.nixpkgs-stable {
inherit system config;
overlays = [
(_: _: { inherit sources; })
- (_: _: { unstable = import sources.nixpkgs-unstable {
- inherit system config;
- };})
+ (_: _: {
+ unstable = import sources.nixpkgs-unstable { inherit system config; };
+ })
(_: pkgs: {
# Given a generic `builder`, will generate an attrset for all the packages
# pinned by `deps` with `builder` applied to the package. This attrset can
@@ -29,16 +29,18 @@ in import sources.nixpkgs-stable {
# rules. This will fail if build steps have changed, or if no build
# rules are available upstream.
overrideSource = depName:
- pkgs.${depName}.overrideAttrs (old: old // rec {
- version = pkgs.sources.${depName}.version or pkgs.sources.${depName}.rev;
- src = pkgs.sources.${depName};
- });
+ pkgs.${depName}.overrideAttrs (old:
+ old // rec {
+ version =
+ pkgs.sources.${depName}.version or pkgs.sources.${depName}.rev;
+ src = pkgs.sources.${depName};
+ });
})
(_: pkgs:
# override pinned deps with our sources
pkgs.overridePinnedDeps pkgs.overrideSource)
(import ./Deps.nix)
- (_: pkgs: { niv = import pkgs.sources.niv {}; })
+ (_: pkgs: { niv = import pkgs.sources.niv { }; })
];
}