Skip to content
Snippets Groups Projects
Commit f3924e4f authored by Jean-Paul Calderone's avatar Jean-Paul Calderone
Browse files

Merge branch 'update-and-simplify-doc-builder' into 'develop'

build docs with newer nixos

See merge request privatestorage/PrivateStorageio!113
parents 8565b145 3dd14c26
No related branches found
No related tags found
No related merge requests found
...@@ -8,7 +8,7 @@ default: ...@@ -8,7 +8,7 @@ default:
docs: docs:
stage: "build" stage: "build"
script: script:
- "nix-shell --run 'nix-build docs.nix'" - "nix-build docs.nix"
- "cp --recursive --no-preserve=mode result/docs/. docs/build/" - "cp --recursive --no-preserve=mode result/docs/. docs/build/"
artifacts: artifacts:
paths: paths:
......
#!/usr/bin/env python3 #! /usr/bin/env nix-shell
#! nix-shell -i python3 -p python3
from sys import stdin from sys import stdin
from json import load from json import load
......
{ pkgs ? import <nixpkgs> { } }: { pkgs ? import ./stable2105.nix { } }:
let pkgs.callPackage ./privatestorageio.nix { }
# NixOS 19.03 packaged graphviz has trouble rendering our architecture
# overview. Latest from upstream does alright, though. Use that.
make-graphviz = (import (pkgs.path + /pkgs/tools/graphics/graphviz/base.nix) {
rev = "b29d8e369011b832f72e0d250a05a0a15dcb5daa";
sha256 = "1w61filywn9cif2nryf6vd34mxxbvv25q34fd34am1rx70bk08ps";
version = "b29d8e369011b832f72e0d250a05a0a15dcb5daa";
});
graphviz = (pkgs.callPackage make-graphviz { }).overrideAttrs (old: {
patches = [];
});
in
pkgs.callPackage ./privatestorageio.nix { inherit graphviz; }
{ "name": "nixpkgs" { "name": "nixpkgs"
, "url": "https://github.com/PrivateStorageio/nixpkgs/archive/8c7a61c658e32eaccf666e5fe818a996c36a988f.tar.gz" , "url": "https://github.com/PrivateStorageio/nixpkgs/archive/7e71ee63a67bd3e2c190abd982b541603f4f86b0.tar.gz"
, "sha256": "1ln0a8c20qykm57wl901lixny1fcfmzgbavd7pbjk6jbnfij59bl" , "sha256": "1yy89lc0p7hx7x4r2y5ll851mfn4a2lacj5c9v5w139zz17ky743"
} }
let let
nixpkgs = import (builtins.fetchTarball (builtins.fromJSON (builtins.readFile ./nixpkgs.json))) { }; nixpkgs = import (builtins.fetchTarball (builtins.fromJSON (builtins.readFile ./nixpkgs.json))) { };
stable2105 = import (builtins.fetchTarball (builtins.fromJSON (builtins.readFile ./nixpkgs-2105.json))) { }; stable2105 = import ./stable2105.nix { };
in in
{ pkgs ? nixpkgs }: { pkgs ? nixpkgs }:
pkgs.mkShell { pkgs.mkShell {
......
import (builtins.fetchTarball (builtins.fromJSON (builtins.readFile ./nixpkgs-2105.json)))
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Please register or to comment