25 lines
967 B
Makefile
25 lines
967 B
Makefile
%.result: %.urls Statistics
|
|
grep -E '^http://' $< | ./Statistics > $@
|
|
|
|
Statistics: Statistics.hs stack.yaml
|
|
stack build https-everywhere-rules
|
|
stack build foldl
|
|
stack exec -- ghc $< -o $@
|
|
|
|
arch-extra.urls: arch-extra extract-sources.sh
|
|
find $< -name PKGBUILD | ./extract-sources.sh | grep -E '^https?://' | tee $@
|
|
|
|
mirrors.json: nixpkgs
|
|
nix-instantiate --eval --json --strict -E 'import ./$</pkgs/build-support/fetchurl/mirrors.nix' | tee $@
|
|
|
|
expand-mirrors.py: mirrors.json
|
|
|
|
nixpkgs.urls: nixpkgs expand-mirrors.py
|
|
nix-instantiate --eval --json --strict -E '(let pkgs = import ./$< { config.allowBroken = true; config.allowUnfree = true; }; in with pkgs.lib; flatten (mapAttrsToList (_: v: (builtins.tryEval v.src.url or []).value) pkgs))' | jq -r .[] | ./expand-mirrors.py | grep -E '^https?://' | tee $@
|
|
|
|
arch-extra:
|
|
git clone https://git.archlinux.org/svntogit/packages.git $@
|
|
|
|
nixpkgs:
|
|
git clone https://github.com/nixos/nixpkgs
|