remove deprecated config
Some checks failed
Gitea Actions CI / Build and deploy (push) Failing after 2m10s
Some checks failed
Gitea Actions CI / Build and deploy (push) Failing after 2m10s
Signed-off-by: Xe Iaso <me@xeiaso.net>
This commit is contained in:
parent
61262b6b2a
commit
e196ab5dbb
53
.drone.yml
53
.drone.yml
@ -1,53 +0,0 @@
|
|||||||
kind: pipeline
|
|
||||||
name: default
|
|
||||||
workspace:
|
|
||||||
base: /tulpanomicon
|
|
||||||
|
|
||||||
steps:
|
|
||||||
- name: build ebook files
|
|
||||||
image: xena/pandoc
|
|
||||||
pull: always
|
|
||||||
commands:
|
|
||||||
- cd src && ./build.sh
|
|
||||||
volumes:
|
|
||||||
- name: book
|
|
||||||
path: /tulpanomicon/book
|
|
||||||
- name: build mdbook
|
|
||||||
image: xena/mdbook
|
|
||||||
pull: always
|
|
||||||
commands:
|
|
||||||
- mdbook build
|
|
||||||
volumes:
|
|
||||||
- name: book
|
|
||||||
path: /tulpanomicon/book
|
|
||||||
- name: build image
|
|
||||||
image: docker:dind
|
|
||||||
volumes:
|
|
||||||
- name: book
|
|
||||||
path: /tulpanomicon/book
|
|
||||||
- name: dockersock
|
|
||||||
path: /var/run/docker.sock
|
|
||||||
commands:
|
|
||||||
- sh -c 'docker build -t xena/tulpanomicon:$DRONE_COMMIT .'
|
|
||||||
- name: auto-release
|
|
||||||
image: xena/gitea-release:latest
|
|
||||||
pull: always
|
|
||||||
settings:
|
|
||||||
auth_username: cadey
|
|
||||||
changelog_path: ./src/CHANGELOG.md
|
|
||||||
gitea_server: https://tulpa.dev
|
|
||||||
gitea_token:
|
|
||||||
from_secret: GITEA_TOKEN
|
|
||||||
when:
|
|
||||||
event:
|
|
||||||
- push
|
|
||||||
branch:
|
|
||||||
- master
|
|
||||||
|
|
||||||
volumes:
|
|
||||||
- name: book
|
|
||||||
temp: {}
|
|
||||||
- name: dockersock
|
|
||||||
host:
|
|
||||||
path: /var/run/docker.sock
|
|
||||||
|
|
62
default.nix
62
default.nix
@ -1,62 +0,0 @@
|
|||||||
{ pkgs ? import <nixpkgs> {
|
|
||||||
overlays = [
|
|
||||||
(overlayFinal: overlayPrev:
|
|
||||||
let
|
|
||||||
packageOverrides = (pythonFinal: pythonPrev: {
|
|
||||||
apsw = pythonPrev.apsw.overridePythonAttrs (oldAttrs: {
|
|
||||||
version = "3.38.1-r1";
|
|
||||||
src = overlayPrev.fetchFromGitHub {
|
|
||||||
owner = "rogerbinns";
|
|
||||||
repo = "apsw";
|
|
||||||
rev = "3.38.1-r1";
|
|
||||||
sha256 = "sha256-pbb6wCu1T1mPlgoydB1Y1AKv+kToGkdVUjiom2vTqf4=";
|
|
||||||
};
|
|
||||||
checkInputs = [ ];
|
|
||||||
# Project uses custom test setup to exclude some tests by default, so using pytest
|
|
||||||
# requires more maintenance
|
|
||||||
# https://github.com/rogerbinns/apsw/issues/335
|
|
||||||
checkPhase = ''
|
|
||||||
python tests.py
|
|
||||||
'';
|
|
||||||
pytestFlagsArray = [ ];
|
|
||||||
disabledTests = [ ];
|
|
||||||
});
|
|
||||||
});
|
|
||||||
python' = overlayPrev.python3.override { inherit packageOverrides; };
|
|
||||||
in {
|
|
||||||
calibre =
|
|
||||||
overlayPrev.calibre.override { python3Packages = python'.pkgs; };
|
|
||||||
})
|
|
||||||
];
|
|
||||||
} }:
|
|
||||||
|
|
||||||
let
|
|
||||||
tex = with pkgs;
|
|
||||||
texlive.combine { inherit (texlive) scheme-medium bitter titlesec; };
|
|
||||||
version = "devel";
|
|
||||||
in pkgs.stdenv.mkDerivation {
|
|
||||||
pname = "tulpanomicon";
|
|
||||||
inherit version;
|
|
||||||
src = ./.;
|
|
||||||
phases = "buildPhase installPhase";
|
|
||||||
buildInputs = with pkgs; [
|
|
||||||
calibre
|
|
||||||
mdbook
|
|
||||||
pandoc
|
|
||||||
tex
|
|
||||||
];
|
|
||||||
|
|
||||||
buildPhase = ''
|
|
||||||
cp -rf $src/src .
|
|
||||||
cp -rf $src/book.toml .
|
|
||||||
mkdir book
|
|
||||||
chmod -R a+w .
|
|
||||||
mdbook build
|
|
||||||
cd ./src && ./build.sh && cd ..
|
|
||||||
'';
|
|
||||||
|
|
||||||
installPhase = ''
|
|
||||||
mkdir -p $out
|
|
||||||
cp -vrf book/* $out
|
|
||||||
'';
|
|
||||||
}
|
|
21
shell.nix
21
shell.nix
@ -1,21 +0,0 @@
|
|||||||
let
|
|
||||||
pkgs = import <nixpkgs> { };
|
|
||||||
nur = import (builtins.fetchTarball
|
|
||||||
"https://github.com/nix-community/NUR/archive/master.tar.gz") {
|
|
||||||
inherit pkgs;
|
|
||||||
};
|
|
||||||
dyson = pkgs.callPackage ./nix/dyson.nix { };
|
|
||||||
tex = with pkgs;
|
|
||||||
texlive.combine { inherit (texlive) scheme-medium bitter titlesec; };
|
|
||||||
in pkgs.mkShell {
|
|
||||||
buildInputs = with pkgs; [
|
|
||||||
calibre
|
|
||||||
dyson
|
|
||||||
kubectl
|
|
||||||
kubectx
|
|
||||||
mdbook
|
|
||||||
nur.repos.mic92.pandoc-bin
|
|
||||||
tex
|
|
||||||
zathura
|
|
||||||
];
|
|
||||||
}
|
|
Loading…
x
Reference in New Issue
Block a user