-
Notifications
You must be signed in to change notification settings - Fork 18
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
port flake-compat to make flake inputs accessible (#386)
this makes a bunch of changes with regard to readability and reusability: - use more descriptive names in the datetime conversion - extract interesting parts of the business logic into a library the formatting made by Alejandra is terrible... most of these assignments can be one-liners, and it breaks doc comments.
- Loading branch information
1 parent
0576026
commit aae8678
Showing
3 changed files
with
292 additions
and
1 deletion.
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 |
---|---|---|
@@ -0,0 +1,14 @@ | ||
{ | ||
sources ? (import ./flake-compat.nix {root = ./.;}).inputs, | ||
system ? builtins.currentSystem, | ||
pkgs ? | ||
import sources.nixpkgs { | ||
config = {}; | ||
overlays = []; | ||
inherit system; | ||
}, | ||
}: { | ||
shell = pkgs.mkShellNoCC { | ||
packages = []; | ||
}; | ||
} |
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 |
---|---|---|
@@ -0,0 +1,4 @@ | ||
let | ||
lib = import ./lib.nix {lib = {};}; | ||
in | ||
lib.flake-inputs |
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