├── src ├── assets │ ├── .gitkeep │ └── favicon.png ├── app │ ├── pages │ │ ├── package-detail │ │ │ ├── package-detail.component.scss │ │ │ ├── package-detail.component.ts │ │ │ └── package-detail.component.html │ │ └── search-results │ │ │ ├── search-results.component.scss │ │ │ ├── search-results.component.html │ │ │ └── search-results.component.ts │ ├── components │ │ ├── error │ │ │ ├── error.component.html │ │ │ ├── error.component.ts │ │ │ └── error.component.scss │ │ └── loader │ │ │ ├── loader.component.html │ │ │ ├── loader.component.ts │ │ │ └── loader.component.scss │ ├── app-routing.ts │ ├── pipes │ │ ├── format-number.pipe.ts │ │ ├── format-datetime.pipe.ts │ │ └── pseudo-tags.pipe.ts │ ├── app.component.scss │ ├── services │ │ ├── cache.service.ts │ │ ├── database.service.ts │ │ ├── version-comparator.service.ts │ │ └── package-manager.service.ts │ ├── app.component.html │ └── app.component.ts ├── environments │ ├── environment.development.ts │ └── environment.ts ├── styles.scss ├── index.html ├── main.ts └── scss │ └── _nix-search.scss ├── .vscode ├── extensions.json ├── launch.json └── tasks.json ├── tsconfig.app.json ├── tsconfig.spec.json ├── .editorconfig ├── shell.nix ├── .gitignore ├── tsconfig.json ├── README.md ├── package.json ├── angular.json └── serverless.yml /src/assets/.gitkeep: -------------------------------------------------------------------------------- 1 | -------------------------------------------------------------------------------- /src/app/pages/package-detail/package-detail.component.scss: -------------------------------------------------------------------------------- 1 | p { 2 | font-size: 17px; 3 | } 4 | -------------------------------------------------------------------------------- /src/assets/favicon.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/RikudouSage/NixPackageHistoryFrontend/HEAD/src/assets/favicon.png -------------------------------------------------------------------------------- /src/environments/environment.development.ts: -------------------------------------------------------------------------------- 1 | export const environment = { 2 | apiUrl: 'https://127.0.0.1:8000', 3 | }; 4 | -------------------------------------------------------------------------------- /src/environments/environment.ts: -------------------------------------------------------------------------------- 1 | export const environment = { 2 | apiUrl: 'https://api.history.nix-packages.com', 3 | }; 4 | -------------------------------------------------------------------------------- /src/app/pages/search-results/search-results.component.scss: -------------------------------------------------------------------------------- 1 | .search-results > div > :nth-child(2) > li.package:hover { 2 | padding-bottom: 2em; 3 | } 4 | -------------------------------------------------------------------------------- /src/app/components/error/error.component.html: -------------------------------------------------------------------------------- 1 |
4 |This version is found in revision {{packageDetail()!.revision}} (created at {{packageDetail()!.datetime | formatDatetime}}).
11 | 12 |To install using nix-shell, run this command:
nix-shell -p {{packageDetail()!.name}} -I nixpkgs=https://github.com/NixOS/nixpkgs/archive/{{packageDetail()!.revision}}.tar.gz
Put this into a shell.nix file:
22 | { pkgs ? import <nixpkgs> {} }:
23 | pkgs.mkShell {
24 | nativeBuildInputs = with pkgs.buildPackages;
25 | let
26 | custom = import (builtins.fetchTarball https://github.com/nixos/nixpkgs/tarball/{{packageDetail()!.revision}}) {};
27 | in
28 | [
29 | custom.{{packageDetail()!.name}}
30 | ];
31 | }
32 | Afterwards, just run nix-shell.
Import the custom revision at the top of your configuration.nix:
37 | { config, pkgs, ... }:
38 | let
39 | custom = import (builtins.fetchTarball https://github.com/nixos/nixpkgs/tarball/{{packageDetail()!.revision}}) {
40 | config = config.nixpkgs.config;
41 | };
42 | in
43 | {
44 | Then, in your list of packages, add custom.{{packageDetail()!.name}}:
46 | environment.systemPackages = [
47 | custom.{{packageDetail()!.name}}
48 | pkgs.your-other-packages
49 | ];
50 | nix-env
52 | Unless you really know what you're doing, you should not use nix-env to install an old version of a package.
53 | If you're not sure why this might be a bad idea, you probably shouldn't be doing it and you should use nix-shell instead.
54 |
56 | To install using nix-env, run the following command:
57 |
nix-env -iA {{packageDetail()!.name}} -f https://github.com/NixOS/nixpkgs/archive/{{packageDetail()!.revision}}.tar.gz
59 | | Version | 39 |Revision | 40 |Date & time | 41 |
|---|---|---|
| 45 | {{ version.version }} 46 | | 47 |{{ version.revision }} | 48 |{{ version.datetime | formatDatetime }} | 49 |