-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathflake.nix
34 lines (32 loc) · 847 Bytes
/
flake.nix
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
{
inputs = {
nixpkgs.url = "github:NixOS/nixpkgs/nixpkgs-unstable";
systems.url = "github:nix-systems/default";
};
outputs =
{ self, systems, nixpkgs, ... }@inputs:
let
eachSystem = f: nixpkgs.lib.genAttrs (import systems) (system: f nixpkgs.legacyPackages.${system});
in
{
packages = eachSystem (pkgs: {
fetch-webmentions = pkgs.writeShellApplication {
name = "fetch-webmentions";
runtimeInputs = with pkgs; [
curl
jq
];
text = (builtins.readFile ./fetch-webmentions.sh);
};
});
devShells = eachSystem (pkgs: {
default = pkgs.mkShell {
buildInputs = with pkgs; [
zola
jq
self.packages.${system}.fetch-webmentions
];
};
});
};
}