Use nix
This commit is contained in:
parent
a5e703da42
commit
53d8d7af7d
|
@ -19,8 +19,7 @@ steps:
|
|||
- set -e
|
||||
- echo "http://dl-cdn.alpinelinux.org/alpine/edge/testing" >> /etc/apk/repositories
|
||||
- apk add --no-cache git git-lfs jq py3-pip py3-virtualenv unzip wget zola
|
||||
- pip3 install --no-cache-dir pipenv
|
||||
- pipenv install
|
||||
- pip3 install --no-cache-dir mutagen
|
||||
- wget -qO - https://raw.githubusercontent.com/MestreLion/git-tools/master/git-restore-mtime | python3 -
|
||||
- ./vendor.sh
|
||||
- ./build.sh
|
||||
|
|
13
Pipfile
13
Pipfile
|
@ -1,13 +0,0 @@
|
|||
# vim: set ft=toml:
|
||||
[[source]]
|
||||
name = "pypi"
|
||||
url = "https://pypi.org/simple"
|
||||
verify_ssl = true
|
||||
|
||||
[dev-packages]
|
||||
|
||||
[packages]
|
||||
mutagen = "*"
|
||||
|
||||
[requires]
|
||||
python_version = "3.8"
|
29
Pipfile.lock
generated
29
Pipfile.lock
generated
|
@ -1,29 +0,0 @@
|
|||
{
|
||||
"_meta": {
|
||||
"hash": {
|
||||
"sha256": "127455b11ccc0f3968d05e2c6ef0b3532f68d20ac459d08f1aa4550c22ebb866"
|
||||
},
|
||||
"pipfile-spec": 6,
|
||||
"requires": {
|
||||
"python_version": "3.8"
|
||||
},
|
||||
"sources": [
|
||||
{
|
||||
"name": "pypi",
|
||||
"url": "https://pypi.org/simple",
|
||||
"verify_ssl": true
|
||||
}
|
||||
]
|
||||
},
|
||||
"default": {
|
||||
"mutagen": {
|
||||
"hashes": [
|
||||
"sha256:6397602efb3c2d7baebd2166ed85731ae1c1d475abca22090b7141ff5034b3e1",
|
||||
"sha256:9c9f243fcec7f410f138cb12c21c84c64fde4195481a30c9bfb05b5f003adfed"
|
||||
],
|
||||
"index": "pypi",
|
||||
"version": "==1.45.1"
|
||||
}
|
||||
},
|
||||
"develop": {}
|
||||
}
|
2
build.sh
2
build.sh
|
@ -3,6 +3,6 @@ set -e
|
|||
./metadata.py
|
||||
zola build
|
||||
echo "Encoding…"
|
||||
pipenv run ./encode.py
|
||||
./encode.py
|
||||
./metadata.py
|
||||
zola build
|
||||
|
|
13
shell.nix
Normal file
13
shell.nix
Normal file
|
@ -0,0 +1,13 @@
|
|||
{ pkgs ? import <nixpkgs> {}
|
||||
, unstable ? import (fetchTarball https://github.com/NixOS/nixpkgs-channels/archive/nixos-unstable.tar.gz) {}
|
||||
}:
|
||||
|
||||
pkgs.mkShell {
|
||||
nativeBuildInputs = with pkgs; [
|
||||
python38
|
||||
python38Packages.mutagen
|
||||
unstable.zola
|
||||
unzip
|
||||
wget
|
||||
];
|
||||
}
|
Loading…
Reference in a new issue