Skip to content

Commit

Permalink
remove old packages-explorer
Browse files Browse the repository at this point in the history
  • Loading branch information
garbas committed Jun 4, 2020
1 parent 11748ab commit 651d425
Show file tree
Hide file tree
Showing 37 changed files with 13 additions and 7,130 deletions.
13 changes: 1 addition & 12 deletions Makefile
Expand Up @@ -12,7 +12,6 @@ HTML = index.html download.html news.html learn.html community.html \
teams/nixos_release.html teams/infrastructure.html teams/nixcon.html \
teams/discourse.html \
guides/contributing.html \
nixos/packages.html nixos/options.html \
404.html


Expand Down Expand Up @@ -62,9 +61,7 @@ $(NIXPKGS_MANUAL_OUT): $(NIXPKGS_MANUAL_IN) bootstrapify-docbook.sh bootstrapify
ln -sfn manual.html $(NIXPKGS_MANUAL_OUT)/index.html


all: $(HTML) favicon.png favicon.ico robots.txt $(subst .png,-small.png,$(filter-out %-small.png,$(wildcard nixos/screenshots/*))) \
nixos/packages-explorer.js \
nixpkgs/packages-channels.json
all: $(HTML) favicon.png favicon.ico robots.txt $(subst .png,-small.png,$(filter-out %-small.png,$(wildcard nixos/screenshots/*)))


robots.txt: $(HTML)
Expand Down Expand Up @@ -136,14 +133,6 @@ update: blogs.xml nixos-release.tt
endif


# Cute hack, this allows future expansion if desired
# Mainly, this allows tracking NIXOS_SERIES
nixpkgs/packages-channels.json: Makefile
echo '["nixos-$(NIXOS_SERIES)", "nixpkgs-unstable"]' > $@

nixos/packages-explorer.js:
@ln -sfn $(PACKAGES_EXPLORER) $@

all: demo.cast

demo.cast: demo.py demo.scenario
Expand Down
4 changes: 0 additions & 4 deletions flake.nix
Expand Up @@ -18,8 +18,6 @@

packages.x86_64-linux = {

packagesExplorer = import ./packages-explorer nixpkgs;

nixosAmis = writeText "ec2-amis.json"
(builtins.toJSON (
import (released-nixpkgs + "/nixos/modules/virtualisation/ec2-amis.nix")));
Expand Down Expand Up @@ -68,7 +66,6 @@
"NIXOS_MANUAL_IN=${released-nixpkgs.htmlDocs.nixosManual}"
"NIXPKGS_MANUAL_IN=${released-nixpkgs.htmlDocs.nixpkgsManual}"
"NIXOS_AMIS=${packages.x86_64-linux.nixosAmis}"
"PACKAGES_EXPLORER=${packages.x86_64-linux.packagesExplorer}/bundle.js"
"NIX_PILLS_MANUAL_IN=${packages.x86_64-linux.nixPills}/share/doc/nix-pills"
];

Expand All @@ -82,7 +79,6 @@
export NIXOS_MANUAL_IN="${released-nixpkgs.htmlDocs.nixosManual}"
export NIXPKGS_MANUAL_IN="${released-nixpkgs.htmlDocs.nixpkgsManual}"
export NIXOS_AMIS="${packages.x86_64-linux.nixosAmis}"
export PACKAGES_EXPLORER="${packages.x86_64-linux.packagesExplorer}/bundle.js"
export NIX_PILLS_MANUAL_IN="${packages.x86_64-linux.nixPills}/share/doc/nix-pills"
'';
};
Expand Down
12 changes: 12 additions & 0 deletions netlify.toml
@@ -1,3 +1,15 @@
[[redirects]]
from = "/nixos/packages.html"
to = "https://search.nixos.org/packages"
status = 302
force = true

[[redirects]]
from = "/nixos/options.html"
to = "https://search.nixos.org/options"
status = 302
force = true

[[redirects]]
from = "/nixos/wiki.html"
to = "https://nixos.wiki"
Expand Down
12 changes: 0 additions & 12 deletions packages-config.nix

This file was deleted.

299 changes: 0 additions & 299 deletions packages-explorer/.eslintrc.js

This file was deleted.

6 changes: 0 additions & 6 deletions packages-explorer/.gitignore

This file was deleted.

0 comments on commit 651d425

Please sign in to comment.