-
Notifications
You must be signed in to change notification settings - Fork 2
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
style(nix): Reformat
*.nix
files with nixfmt-rfc-style
See: * https://github.com/NixOS/rfcs/blob/master/rfcs/0166-nix-formatting.md * https://github.com/NixOS/nixfmt * NixOS/nixfmt#153
- Loading branch information
1 parent
43cf928
commit b2f6d0c
Showing
25 changed files
with
1,120 additions
and
1,075 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,10 +1,15 @@ | ||
let | ||
lock = builtins.fromJSON (builtins.readFile ./flake.lock); | ||
inherit (lock.nodes.flake-compat.locked) owner repo rev narHash; | ||
inherit (lock.nodes.flake-compat.locked) | ||
owner | ||
repo | ||
rev | ||
narHash | ||
; | ||
flake-compat = fetchTarball { | ||
url = "https://github.com/${owner}/${repo}/archive/${rev}.tar.gz"; | ||
sha256 = narHash; | ||
}; | ||
thisFlake = import flake-compat {src = ./.;}; | ||
thisFlake = import flake-compat { src = ./.; }; | ||
in | ||
thisFlake.defaultNix | ||
thisFlake.defaultNix |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,13 +1,15 @@ | ||
{lib, ...}: { | ||
getBuildStatus = package: version: system: let | ||
data = import ./../pkgs/${package}/build-status.nix {inherit lib;}; | ||
in | ||
data.${version}.${system} | ||
or { | ||
{ lib, ... }: | ||
{ | ||
getBuildStatus = | ||
package: version: system: | ||
let | ||
data = import ./../pkgs/${package}/build-status.nix { inherit lib; }; | ||
in | ||
data.${version}.${system} or { | ||
# If not build status is found, we assume that the package builds | ||
# successfully with no workarounds. | ||
build = true; | ||
check = true; | ||
skippedTests = []; | ||
skippedTests = [ ]; | ||
}; | ||
} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,5 +1,6 @@ | ||
{...}: { | ||
versionBetween = after: before: version: | ||
((builtins.compareVersions version after) >= 0) | ||
&& ((builtins.compareVersions version before) < 0); | ||
{ ... }: | ||
{ | ||
versionBetween = | ||
after: before: version: | ||
((builtins.compareVersions version after) >= 0) && ((builtins.compareVersions version before) < 0); | ||
} |
Oops, something went wrong.