Initial setup
This commit is contained in:
parent
001462e8c3
commit
5d897adb87
25
.github/workflows/build.yml
vendored
25
.github/workflows/build.yml
vendored
|
@ -6,33 +6,16 @@ on:
|
||||||
- main
|
- main
|
||||||
- master
|
- master
|
||||||
schedule:
|
schedule:
|
||||||
# rebuild everyday at 2:51
|
# rebuild everyday at 1:15
|
||||||
# TIP: Choose a random time here so not all repositories are build at once:
|
- cron: '05 1 * * *'
|
||||||
# https://www.random.org/clock-times/?num=1&earliest=01%3A00&latest=08%3A00&interval=5&format=html&rnd=new
|
|
||||||
- cron: '51 2 * * *'
|
|
||||||
jobs:
|
jobs:
|
||||||
tests:
|
tests:
|
||||||
strategy:
|
strategy:
|
||||||
matrix:
|
matrix:
|
||||||
# Set this to notify the global nur package registry that changes are
|
|
||||||
# available.
|
|
||||||
#
|
|
||||||
# The repo name as used in
|
|
||||||
# https://github.com/nix-community/NUR/blob/master/repos.json
|
|
||||||
nurRepo:
|
nurRepo:
|
||||||
- <YOUR_REPO_NAME>
|
- qenya
|
||||||
# Set this to cache your build results in cachix for faster builds
|
|
||||||
# in CI and for everyone who uses your cache.
|
|
||||||
#
|
|
||||||
# Format: Your cachix cache host name without the ".cachix.org" suffix.
|
|
||||||
# Example: mycache (for mycache.cachix.org)
|
|
||||||
#
|
|
||||||
# For this to work, you also need to set the CACHIX_SIGNING_KEY or
|
|
||||||
# CACHIX_AUTH_TOKEN secret in your repository secrets settings in
|
|
||||||
# Github found at
|
|
||||||
# https://github.com/<your_githubname>/nur-packages/settings/secrets
|
|
||||||
cachixName:
|
cachixName:
|
||||||
- <YOUR_CACHIX_NAME>
|
- qenya
|
||||||
nixPath:
|
nixPath:
|
||||||
- nixpkgs=https://github.com/NixOS/nixpkgs/archive/refs/heads/nixpkgs-unstable.tar.gz
|
- nixpkgs=https://github.com/NixOS/nixpkgs/archive/refs/heads/nixpkgs-unstable.tar.gz
|
||||||
- nixpkgs=https://github.com/NixOS/nixpkgs/archive/refs/heads/nixos-unstable.tar.gz
|
- nixpkgs=https://github.com/NixOS/nixpkgs/archive/refs/heads/nixos-unstable.tar.gz
|
||||||
|
|
33
README.md
33
README.md
|
@ -1,37 +1,8 @@
|
||||||
# nur-packages-template
|
|
||||||
|
|
||||||
**A template for [NUR](https://github.com/nix-community/NUR) repositories**
|
|
||||||
|
|
||||||
## Setup
|
|
||||||
|
|
||||||
1. Click on [Use this template](https://github.com/nix-community/nur-packages-template/generate) to start a repo based on this template. (Do _not_ fork it.)
|
|
||||||
2. Add your packages to the [pkgs](./pkgs) directory and to
|
|
||||||
[default.nix](./default.nix)
|
|
||||||
* Remember to mark the broken packages as `broken = true;` in the `meta`
|
|
||||||
attribute, or travis (and consequently caching) will fail!
|
|
||||||
* Library functions, modules and overlays go in the respective directories
|
|
||||||
3. Choose your CI: Depending on your preference you can use github actions (recommended) or [Travis ci](https://travis-ci.com).
|
|
||||||
- Github actions: Change your NUR repo name and optionally add a cachix name in [.github/workflows/build.yml](./.github/workflows/build.yml) and change the cron timer
|
|
||||||
to a random value as described in the file
|
|
||||||
- Travis ci: Change your NUR repo name and optionally your cachix repo name in
|
|
||||||
[.travis.yml](./.travis.yml). Than enable travis in your repo. You can add a cron job in the repository settings on travis to keep your cachix cache fresh
|
|
||||||
5. Change your travis and cachix names on the README template section and delete
|
|
||||||
the rest
|
|
||||||
6. [Add yourself to NUR](https://github.com/nix-community/NUR#how-to-add-your-own-repository)
|
|
||||||
|
|
||||||
## README template
|
|
||||||
|
|
||||||
# nur-packages
|
# nur-packages
|
||||||
|
|
||||||
**My personal [NUR](https://github.com/nix-community/NUR) repository**
|
**My personal [NUR](https://github.com/nix-community/NUR) repository**
|
||||||
|
|
||||||
<!-- Remove this if you don't use github actions -->
|

|
||||||

|
|
||||||
|
|
||||||
<!--
|
[](https://qenya.cachix.org)
|
||||||
Uncomment this if you use travis:
|
|
||||||
|
|
||||||
[](https://travis-ci.com/<YOUR_TRAVIS_USERNAME>/nur-packages)
|
|
||||||
-->
|
|
||||||
[](https://<YOUR_CACHIX_CACHE_NAME>.cachix.org)
|
|
||||||
|
|
||||||
|
|
Loading…
Reference in a new issue