This repository has no description
0

Configure Feed

Select the types of activity you want to include in your feed.

1{ ... }: 2{ 3 perSystem = 4 { pkgs, ... }: 5 let 6 d3 = pkgs.fetchurl { 7 url = "https://cdn.jsdelivr.net/npm/d3@7.9.0/dist/d3.min.js"; 8 hash = "sha256-8glLv2FBs1lyLE/kVOtsSw8OQswQzHr5IfwVj864ZTk="; 9 }; 10 in 11 { 12 # nix itself is deliberately not a runtime input: use the caller's nix, 13 # which matches the flake's lock file and the local store. 14 packages.unmaintained-graph = 15 (pkgs.writeShellApplication { 16 name = "unmaintained-graph"; 17 runtimeInputs = [ pkgs.python3 ]; 18 text = '' 19 export UNMAINTAINED_GRAPH_TEMPLATE=${./graph.html} 20 export UNMAINTAINED_GRAPH_D3=${d3} 21 exec python3 ${./unmaintained_graph.py} "$@" 22 ''; 23 }).overrideAttrs 24 { passthru.usage = builtins.readFile ./usage.kdl; }; 25 }; 26}