mirror of
https://gitlab.com/TECHNOFAB/nixtest.git
synced 2026-05-04 18:29:33 +02:00
Compare commits
5 commits
89dbdc0a00
...
a5b92e88c7
| Author | SHA1 | Date | |
|---|---|---|---|
|
|
a5b92e88c7 | ||
|
|
ddee2c6199 | ||
| 143921cad9 | |||
| e91a9774e8 | |||
| cee15f3677 |
6 changed files with 230 additions and 48 deletions
112
CHANGELOG.md
Normal file
112
CHANGELOG.md
Normal file
|
|
@ -0,0 +1,112 @@
|
||||||
|
# Changelog
|
||||||
|
All notable changes to this project will be documented in this file. See [conventional commits](https://www.conventionalcommits.org/) for commit guidelines.
|
||||||
|
|
||||||
|
- - -
|
||||||
|
## [v1.3.0](https://gitlab.com/TECHNOFAB/nixtest/compare/dab1e2ef6f49d91174216aed8216aa98f9a071ed..v1.3.0) - 2026-04-02
|
||||||
|
#### Features
|
||||||
|
- add support for running NixOS VM tests more easily - ([c64e0cc](https://gitlab.com/TECHNOFAB/nixtest/commit/c64e0cce0c5ba9d77597f20f002d1375deb8e577)) - [@TECHNOFAB](https://gitlab.com/TECHNOFAB)
|
||||||
|
#### Bug Fixes
|
||||||
|
- (**deps**) update module github.com/rs/zerolog to v1.35.0 - ([58d6539](https://gitlab.com/TECHNOFAB/nixtest/commit/58d6539addaf872d5a9002b05b9ab547d205aea9)) - Renovate Bot
|
||||||
|
- (**deps**) update module github.com/jedib0t/go-pretty/v6 to v6.7.8 - ([98250aa](https://gitlab.com/TECHNOFAB/nixtest/commit/98250aa7e7cb94633af7da483aad43098aa0109c)) - Renovate Bot
|
||||||
|
- (**deps**) update module github.com/sergi/go-diff to v1.4.0 - ([b098895](https://gitlab.com/TECHNOFAB/nixtest/commit/b0988954c70ef059dc6501b09b4d116567442a16)) - Renovate Bot
|
||||||
|
- (**deps**) update module github.com/jedib0t/go-pretty/v6 to v6.7.7 - ([056851d](https://gitlab.com/TECHNOFAB/nixtest/commit/056851d6c6303517f79207bed1d7c64d1e584cb6)) - Renovate Bot
|
||||||
|
- (**deps**) update module github.com/spf13/pflag to v1.0.10 - ([be32005](https://gitlab.com/TECHNOFAB/nixtest/commit/be32005bc74bf9bfd5856cc4c2e33bdf2bce3090)) - Renovate Bot
|
||||||
|
- (**deps**) update module github.com/stretchr/testify to v1.11.1 - ([dab1e2e](https://gitlab.com/TECHNOFAB/nixtest/commit/dab1e2ef6f49d91174216aed8216aa98f9a071ed)) - Renovate Bot
|
||||||
|
- (**scriptHelpers**) remove \n from echo & fix not_contains failing shell - ([fe5d9f4](https://gitlab.com/TECHNOFAB/nixtest/commit/fe5d9f421e6afd23cc60a960d82bda226415c2be)) - [@TECHNOFAB](https://gitlab.com/TECHNOFAB)
|
||||||
|
#### Miscellaneous Chores
|
||||||
|
- (**deps**) lock file maintenance - ([e25fb0c](https://gitlab.com/TECHNOFAB/nixtest/commit/e25fb0c609811d15a529be8446c0f627a22cf452)) - Renovate Bot
|
||||||
|
- (**flakes**) pin input versions/tags - ([cee15f3](https://gitlab.com/TECHNOFAB/nixtest/commit/cee15f367744de3fe9944d7fe2d6546b7708e816)) - [@TECHNOFAB](https://gitlab.com/TECHNOFAB)
|
||||||
|
- add devtools like cocogitto & lefthook - ([e91a977](https://gitlab.com/TECHNOFAB/nixtest/commit/e91a9774e84419fec276f049b7bb64379f4f87bc)) - [@TECHNOFAB](https://gitlab.com/TECHNOFAB)
|
||||||
|
- remove colored diff since its buggy anyways - ([43f4f33](https://gitlab.com/TECHNOFAB/nixtest/commit/43f4f33838f21a0d5424f2b13b5a6cb71b24aa65)) - [@TECHNOFAB](https://gitlab.com/TECHNOFAB)
|
||||||
|
|
||||||
|
- - -
|
||||||
|
|
||||||
|
|
||||||
|
## [v1.2.1](https://gitlab.com/TECHNOFAB/nixtest/compare/v1.2.0..v1.2.1) - 2026-04-02
|
||||||
|
#### Documentation
|
||||||
|
- set _file so "declared in" works correctly - ([5a7053a](https://gitlab.com/TECHNOFAB/nixtest/commit/5a7053afcbb211b9cf8fe87f7892bb9f6b76b678)) - [@TECHNOFAB](https://gitlab.com/TECHNOFAB)
|
||||||
|
- update nixmkdocs, use svg for logo and favicon, add module docs - ([c9618a4](https://gitlab.com/TECHNOFAB/nixtest/commit/c9618a4d9b03939ff2673e52aad97b57acd0f45a)) - [@TECHNOFAB](https://gitlab.com/TECHNOFAB)
|
||||||
|
#### Tests
|
||||||
|
- set SSL_CERT_FILE and NIX_SSL_CERT_FILE so test works in pure mode - ([56d22f4](https://gitlab.com/TECHNOFAB/nixtest/commit/56d22f4aa1c3f281a0cd26acd7aa2ed426ef6fe5)) - [@TECHNOFAB](https://gitlab.com/TECHNOFAB)
|
||||||
|
#### Refactoring
|
||||||
|
- replace flake-parts, devenv etc. with rensa - ([0414493](https://gitlab.com/TECHNOFAB/nixtest/commit/041449396326a11ec8f88354f7dbd3204016de1d)) - [@TECHNOFAB](https://gitlab.com/TECHNOFAB)
|
||||||
|
#### Miscellaneous Chores
|
||||||
|
- rename module to uppercase - ([318b903](https://gitlab.com/TECHNOFAB/nixtest/commit/318b903d122b7628181f2ae277a882e2328b1d1d)) - [@TECHNOFAB](https://gitlab.com/TECHNOFAB)
|
||||||
|
|
||||||
|
- - -
|
||||||
|
|
||||||
|
## [v1.2.0](https://gitlab.com/TECHNOFAB/nixtest/compare/v1.1.0..v1.2.0) - 2026-04-02
|
||||||
|
#### Features
|
||||||
|
- run script tests in temp dirs for slightly better sandboxing - ([5741109](https://gitlab.com/TECHNOFAB/nixtest/commit/5741109cc9ec2b6d41b56abd3f5bc51ed7a9a228)) - [@TECHNOFAB](https://gitlab.com/TECHNOFAB)
|
||||||
|
#### Bug Fixes
|
||||||
|
- (**README**) fix badge - ([d7e4902](https://gitlab.com/TECHNOFAB/nixtest/commit/d7e4902fede9e03073207a3f3f1ca34c9d0e1c70)) - [@TECHNOFAB](https://gitlab.com/TECHNOFAB)
|
||||||
|
- support passing string as dir for autodiscovery - ([0272a8b](https://gitlab.com/TECHNOFAB/nixtest/commit/0272a8b0dc8f64c0b590f7007291b9010a0eef44)) - [@TECHNOFAB](https://gitlab.com/TECHNOFAB)
|
||||||
|
#### Miscellaneous Chores
|
||||||
|
- (**flake**) enable go hardening workaround - ([22b43c9](https://gitlab.com/TECHNOFAB/nixtest/commit/22b43c9fe83be73c3f0648bbb54bc3c1cf7f96df)) - [@TECHNOFAB](https://gitlab.com/TECHNOFAB)
|
||||||
|
-  default to pure mode, rename --pure flag to --impure for switching - ([c9298b9](https://gitlab.com/TECHNOFAB/nixtest/commit/c9298b91f42a2f02842da6c41d34db342d4b3de6)) - [@TECHNOFAB](https://gitlab.com/TECHNOFAB)
|
||||||
|
- clean up module a bit - ([b2fb77e](https://gitlab.com/TECHNOFAB/nixtest/commit/b2fb77ecc9d48556801d3bfba3b547b754f2aedc)) - [@TECHNOFAB](https://gitlab.com/TECHNOFAB)
|
||||||
|
|
||||||
|
- - -
|
||||||
|
|
||||||
|
## [v1.1.0](https://gitlab.com/TECHNOFAB/nixtest/compare/v1.0.0..v1.1.0) - 2026-04-02
|
||||||
|
#### Features
|
||||||
|
- add test helpers - ([bed029f](https://gitlab.com/TECHNOFAB/nixtest/commit/bed029f4a90b886bb85aef76264e5af40d0d3938)) - [@TECHNOFAB](https://gitlab.com/TECHNOFAB)
|
||||||
|
- switch to module system to evaluate suites & tests - ([98141a1](https://gitlab.com/TECHNOFAB/nixtest/commit/98141a1f5c0c1b48837cbc363cbb8ebf74b5d044)) - [@TECHNOFAB](https://gitlab.com/TECHNOFAB)
|
||||||
|
#### Documentation
|
||||||
|
- document new lib functions & usage - ([bc36c39](https://gitlab.com/TECHNOFAB/nixtest/commit/bc36c39b0929bdfaab0908d8bd852c2114e3383f)) - [@TECHNOFAB](https://gitlab.com/TECHNOFAB)
|
||||||
|
- update cli help - ([e8da91a](https://gitlab.com/TECHNOFAB/nixtest/commit/e8da91ad27f4e73d22d095c8b0ca607bd50880d9)) - [@TECHNOFAB](https://gitlab.com/TECHNOFAB)
|
||||||
|
- add images & fix typo - ([6ee3811](https://gitlab.com/TECHNOFAB/nixtest/commit/6ee3811b568f6e840a964a8851719638234cd03c)) - [@TECHNOFAB](https://gitlab.com/TECHNOFAB)
|
||||||
|
#### Tests
|
||||||
|
- nest sample tests as fixtures in real tests - ([006537e](https://gitlab.com/TECHNOFAB/nixtest/commit/006537e6abbcb6d6b78dd1c76e1c937b01378abd)) - [@TECHNOFAB](https://gitlab.com/TECHNOFAB)
|
||||||
|
#### Continuous Integration
|
||||||
|
- remove flakeModule test job - ([3f1b631](https://gitlab.com/TECHNOFAB/nixtest/commit/3f1b6317b4c43ab0e17c194f02c6a8ec138360fe)) - [@TECHNOFAB](https://gitlab.com/TECHNOFAB)
|
||||||
|
#### Miscellaneous Chores
|
||||||
|
- (**cli**) handle help command manually to exit 0 - ([4a8ccdf](https://gitlab.com/TECHNOFAB/nixtest/commit/4a8ccdf34cff2c91bab5fa906f6ed4e6b0e928de)) - [@TECHNOFAB](https://gitlab.com/TECHNOFAB)
|
||||||
|
- (**module**) remove "set -x" addition in script tests - ([001b575](https://gitlab.com/TECHNOFAB/nixtest/commit/001b575f31f45409b953371a56509ed3f2035f08)) - [@TECHNOFAB](https://gitlab.com/TECHNOFAB)
|
||||||
|
- (**testHelpers**) remove string context in toJsonFile - ([116f905](https://gitlab.com/TECHNOFAB/nixtest/commit/116f905b6c1df01f7c2dddef4f662abd0fcb5d42)) - [@TECHNOFAB](https://gitlab.com/TECHNOFAB)
|
||||||
|
- add more helpers & add pos to test suite - ([4a55db9](https://gitlab.com/TECHNOFAB/nixtest/commit/4a55db97979b8b06ebd68b4b0772fcb76d79d2fa)) - [@TECHNOFAB](https://gitlab.com/TECHNOFAB)
|
||||||
|
- merge branch 'main' into feat/module-system - ([3bb1764](https://gitlab.com/TECHNOFAB/nixtest/commit/3bb1764013f37da0667d12a565a67abf76546e49)) - [@TECHNOFAB](https://gitlab.com/TECHNOFAB)
|
||||||
|
- add LICENSE - ([b732e11](https://gitlab.com/TECHNOFAB/nixtest/commit/b732e118dfcd8b2f9b8b2302ee96ad0644f9923f)) - [@TECHNOFAB](https://gitlab.com/TECHNOFAB)
|
||||||
|
|
||||||
|
- - -
|
||||||
|
|
||||||
|
## [v1.0.0](https://gitlab.com/TECHNOFAB/nixtest/compare/c1c19c324d67dbcd482ed9cd3dac05f74a042a98..v1.0.0) - 2026-04-02
|
||||||
|
#### Features
|
||||||
|
- add pure mode which unsets env variables before script tests - ([3ff5b35](https://gitlab.com/TECHNOFAB/nixtest/commit/3ff5b358d506473ace2311cd25fb95be0c048997)) - [@TECHNOFAB](https://gitlab.com/TECHNOFAB)
|
||||||
|
- sort suites and tests alphabetically in the console summary - ([7bb5c65](https://gitlab.com/TECHNOFAB/nixtest/commit/7bb5c65259ab606de337959c308f9de3b7eefbc0)) - [@TECHNOFAB](https://gitlab.com/TECHNOFAB)
|
||||||
|
- add "script" test type - ([b50a1c6](https://gitlab.com/TECHNOFAB/nixtest/commit/b50a1c61a6b4338bbaed4da2dcdf8eadc7c56f84)) - [@TECHNOFAB](https://gitlab.com/TECHNOFAB)
|
||||||
|
- add support for pretty/nix format - ([e029fae](https://gitlab.com/TECHNOFAB/nixtest/commit/e029fae0b86b8b6ee39368f7870585809c050b8f)) - [@TECHNOFAB](https://gitlab.com/TECHNOFAB)
|
||||||
|
- general improvements and add junit "error" and "skipped" support - ([0a1bbae](https://gitlab.com/TECHNOFAB/nixtest/commit/0a1bbae2c30e3ba8e3b02de223e199c5dfd56572)) - [@TECHNOFAB](https://gitlab.com/TECHNOFAB)
|
||||||
|
- remove nix store path prefix if used in flakeModule - ([482f15c](https://gitlab.com/TECHNOFAB/nixtest/commit/482f15c486380455c909b309b94e0b26b5faa362)) - [@TECHNOFAB](https://gitlab.com/TECHNOFAB)
|
||||||
|
#### Bug Fixes
|
||||||
|
- (**flake**) add missing lib - ([0b78315](https://gitlab.com/TECHNOFAB/nixtest/commit/0b783157bb59a2f9db4a9f5d810be2fdfe37fb15)) - [@TECHNOFAB](https://gitlab.com/TECHNOFAB)
|
||||||
|
- (**lib**) discard string context so derivations are not built instantly - ([5ae5c2d](https://gitlab.com/TECHNOFAB/nixtest/commit/5ae5c2dd4508f4476a0c50fb6668af8fde151cb6)) - [@TECHNOFAB](https://gitlab.com/TECHNOFAB)
|
||||||
|
- (**package**) use filesets so nixtest doesnt get rebuilt all the time - ([25de506](https://gitlab.com/TECHNOFAB/nixtest/commit/25de5061ad1b53b03cf02ddd13deb3ce920e0545)) - [@TECHNOFAB](https://gitlab.com/TECHNOFAB)
|
||||||
|
- handle final newline in messages correctly - ([5436abf](https://gitlab.com/TECHNOFAB/nixtest/commit/5436abf377ce739958f5fa74e71004bf78a0c744)) - [@TECHNOFAB](https://gitlab.com/TECHNOFAB)
|
||||||
|
- display multi-line diffs with correct colors - ([2b7c215](https://gitlab.com/TECHNOFAB/nixtest/commit/2b7c215ffa8568f04ccfcd8995a21428a158cdb5)) - [@TECHNOFAB](https://gitlab.com/TECHNOFAB)
|
||||||
|
- handle error instead of including it in diff - ([d0e47e3](https://gitlab.com/TECHNOFAB/nixtest/commit/d0e47e305dc637ea4cf0565dfab3cc115d597377)) - [@TECHNOFAB](https://gitlab.com/TECHNOFAB)
|
||||||
|
- pretty print expected aswell when format is "pretty" - ([9068477](https://gitlab.com/TECHNOFAB/nixtest/commit/90684776508b6f7270892b83959ccfc84fa86649)) - [@TECHNOFAB](https://gitlab.com/TECHNOFAB)
|
||||||
|
- handle nix build errors gracefully - ([6e17ec8](https://gitlab.com/TECHNOFAB/nixtest/commit/6e17ec8838ef1768e1d4aeebc4c79a2094c5cc7b)) - [@TECHNOFAB](https://gitlab.com/TECHNOFAB)
|
||||||
|
- allow snapshots to use actualDrv aswell - ([abac8aa](https://gitlab.com/TECHNOFAB/nixtest/commit/abac8aaf3e978e02e309235eeb8bd9443d561b18)) - [@TECHNOFAB](https://gitlab.com/TECHNOFAB)
|
||||||
|
#### Documentation
|
||||||
|
- add documentation - ([fd58344](https://gitlab.com/TECHNOFAB/nixtest/commit/fd58344ca7173f7d66a19489657e1c21bb00efa9)) - [@TECHNOFAB](https://gitlab.com/TECHNOFAB)
|
||||||
|
#### Tests
|
||||||
|
- add drv test - ([27696c0](https://gitlab.com/TECHNOFAB/nixtest/commit/27696c02bc17b7ebe7c6c7eae15756e3ce976ee2)) - [@TECHNOFAB](https://gitlab.com/TECHNOFAB)
|
||||||
|
#### Refactoring
|
||||||
|
- split into packages and add tests - ([11117e0](https://gitlab.com/TECHNOFAB/nixtest/commit/11117e0c0ef23963e9a385f9cb424ba5f0f04884)) - [@TECHNOFAB](https://gitlab.com/TECHNOFAB)
|
||||||
|
- improve junit report to not include escape sequences - ([3a974f2](https://gitlab.com/TECHNOFAB/nixtest/commit/3a974f218afddff5132e61524d14613d964a90f7)) - [@TECHNOFAB](https://gitlab.com/TECHNOFAB)
|
||||||
|
- rename variable to derivation to be more descriptive - ([4afa8a7](https://gitlab.com/TECHNOFAB/nixtest/commit/4afa8a7957ef5c4cc1d928c46896288fdb9f3931)) - [@TECHNOFAB](https://gitlab.com/TECHNOFAB)
|
||||||
|
#### Miscellaneous Chores
|
||||||
|
- (**lib**) add assertion for script to not be null when type=="script" - ([c2ca17d](https://gitlab.com/TECHNOFAB/nixtest/commit/c2ca17dfc514228b86a7d503c65c2e384d02b671)) - [@TECHNOFAB](https://gitlab.com/TECHNOFAB)
|
||||||
|
- use set -x to show which line of "script" failed the test - ([f59d927](https://gitlab.com/TECHNOFAB/nixtest/commit/f59d92791bea66b0e969e96d8a702cb841f1f1b0)) - [@TECHNOFAB](https://gitlab.com/TECHNOFAB)
|
||||||
|
- display "script" output on failure without diffing - ([c1ad61b](https://gitlab.com/TECHNOFAB/nixtest/commit/c1ad61b3674b9b258deb4fab2d2dc3820f5ffde5)) - [@TECHNOFAB](https://gitlab.com/TECHNOFAB)
|
||||||
|
- use git-like patch/diff in junit output - ([8b5ac90](https://gitlab.com/TECHNOFAB/nixtest/commit/8b5ac904dbf2a3c6d08b8d7b8973b9d3fe4ad777)) - [@TECHNOFAB](https://gitlab.com/TECHNOFAB)
|
||||||
|
- allow setting pos for entire suite & remove column from pos - ([4aaaf32](https://gitlab.com/TECHNOFAB/nixtest/commit/4aaaf32621b644d9e1f8127a9c887aa0a6b1a7e6)) - [@TECHNOFAB](https://gitlab.com/TECHNOFAB)
|
||||||
|
- add CI to dogfood - ([4772c78](https://gitlab.com/TECHNOFAB/nixtest/commit/4772c789d9f210fe9be720fe284fce18f18027bc)) - [@TECHNOFAB](https://gitlab.com/TECHNOFAB)
|
||||||
|
- initial prototype - ([c1c19c3](https://gitlab.com/TECHNOFAB/nixtest/commit/c1c19c324d67dbcd482ed9cd3dac05f74a042a98)) - [@TECHNOFAB](https://gitlab.com/TECHNOFAB)
|
||||||
|
|
||||||
|
- - -
|
||||||
|
|
||||||
|
Changelog generated by [cocogitto](https://github.com/cocogitto/cocogitto).
|
||||||
|
|
||||||
|
|
||||||
19
flake.lock
generated
19
flake.lock
generated
|
|
@ -2,11 +2,11 @@
|
||||||
"nodes": {
|
"nodes": {
|
||||||
"nixpkgs": {
|
"nixpkgs": {
|
||||||
"locked": {
|
"locked": {
|
||||||
"lastModified": 1767116409,
|
"lastModified": 1777578337,
|
||||||
"narHash": "sha256-5vKw92l1GyTnjoLzEagJy5V5mDFck72LiQWZSOnSicw=",
|
"narHash": "sha256-Ad49moKWeXtKBJNy2ebiTQUEgdLyvGmTeykAQ9xM+Z4=",
|
||||||
"owner": "NixOS",
|
"owner": "NixOS",
|
||||||
"repo": "nixpkgs",
|
"repo": "nixpkgs",
|
||||||
"rev": "cad22e7d996aea55ecab064e84834289143e44a0",
|
"rev": "15f4ee454b1dce334612fa6843b3e05cf546efab",
|
||||||
"type": "github"
|
"type": "github"
|
||||||
},
|
},
|
||||||
"original": {
|
"original": {
|
||||||
|
|
@ -18,11 +18,11 @@
|
||||||
},
|
},
|
||||||
"nixpkgs-lib": {
|
"nixpkgs-lib": {
|
||||||
"locked": {
|
"locked": {
|
||||||
"lastModified": 1754184128,
|
"lastModified": 1766884708,
|
||||||
"narHash": "sha256-AjhoyBL4eSyXf01Bmc6DiuaMrJRNdWopmdnMY0Pa/M0=",
|
"narHash": "sha256-x8nyRwtD0HMeYtX60xuIuZJbwwoI7/UKAdCiATnQNz0=",
|
||||||
"owner": "nix-community",
|
"owner": "nix-community",
|
||||||
"repo": "nixpkgs.lib",
|
"repo": "nixpkgs.lib",
|
||||||
"rev": "02e72200e6d56494f4a7c0da8118760736e41b60",
|
"rev": "15177f81ad356040b4460a676838154cbf7f6213",
|
||||||
"type": "github"
|
"type": "github"
|
||||||
},
|
},
|
||||||
"original": {
|
"original": {
|
||||||
|
|
@ -37,16 +37,17 @@
|
||||||
},
|
},
|
||||||
"locked": {
|
"locked": {
|
||||||
"dir": "lib",
|
"dir": "lib",
|
||||||
"lastModified": 1766497301,
|
"lastModified": 1775132170,
|
||||||
"narHash": "sha256-W7WeOXMUZROMtbU1qQNWy/yai+k8gG09YACFQ7ImpsQ=",
|
"narHash": "sha256-ZhXcliu8E1KXlaviFnMHQpb/VSIbsALSFZoeb9Z6bhc=",
|
||||||
"owner": "rensa-nix",
|
"owner": "rensa-nix",
|
||||||
"repo": "core",
|
"repo": "core",
|
||||||
"rev": "e08c48b5db1052bfb8b8dad764e05decc1af893e",
|
"rev": "bfdb2c1aa85cd4af286b0833b046e13a96d64d6a",
|
||||||
"type": "gitlab"
|
"type": "gitlab"
|
||||||
},
|
},
|
||||||
"original": {
|
"original": {
|
||||||
"dir": "lib",
|
"dir": "lib",
|
||||||
"owner": "rensa-nix",
|
"owner": "rensa-nix",
|
||||||
|
"ref": "v0.2.0",
|
||||||
"repo": "core",
|
"repo": "core",
|
||||||
"type": "gitlab"
|
"type": "gitlab"
|
||||||
}
|
}
|
||||||
|
|
|
||||||
10
flake.nix
10
flake.nix
|
|
@ -1,7 +1,7 @@
|
||||||
{
|
{
|
||||||
inputs = {
|
inputs = {
|
||||||
nixpkgs.url = "github:NixOS/nixpkgs/nixos-unstable";
|
nixpkgs.url = "github:NixOS/nixpkgs/nixos-unstable";
|
||||||
ren.url = "gitlab:rensa-nix/core?dir=lib";
|
ren.url = "gitlab:rensa-nix/core/v0.2.0?dir=lib";
|
||||||
};
|
};
|
||||||
|
|
||||||
outputs = {
|
outputs = {
|
||||||
|
|
@ -18,14 +18,6 @@
|
||||||
// {
|
// {
|
||||||
pkgs = import i.nixpkgs {inherit system;};
|
pkgs = import i.nixpkgs {inherit system;};
|
||||||
};
|
};
|
||||||
cellBlocks = with ren.blocks; [
|
|
||||||
(simple "devShells")
|
|
||||||
(simple "ci")
|
|
||||||
(simple "tests")
|
|
||||||
(simple "packages")
|
|
||||||
(simple "docs")
|
|
||||||
(simple "soonix")
|
|
||||||
];
|
|
||||||
}
|
}
|
||||||
{
|
{
|
||||||
packages = ren.select self [
|
packages = ren.select self [
|
||||||
|
|
|
||||||
|
|
@ -3,31 +3,85 @@
|
||||||
cell,
|
cell,
|
||||||
...
|
...
|
||||||
}: let
|
}: let
|
||||||
inherit (inputs) pkgs devshell treefmt;
|
inherit (inputs) pkgs devshell treefmt devtools-lib;
|
||||||
inherit (cell) soonix;
|
inherit (cell) soonix;
|
||||||
|
treefmtWrapper = treefmt.mkWrapper pkgs {
|
||||||
|
projectRootFile = "flake.nix";
|
||||||
|
programs = {
|
||||||
|
alejandra.enable = true;
|
||||||
|
mdformat.enable = true;
|
||||||
|
gofmt.enable = true;
|
||||||
|
};
|
||||||
|
settings.formatter.mdformat = {
|
||||||
|
excludes = ["CHANGELOG.md" "LICENSE.md"];
|
||||||
|
command = let
|
||||||
|
pkg = pkgs.python3.withPackages (p: [
|
||||||
|
p.mdformat
|
||||||
|
p.mdformat-mkdocs
|
||||||
|
]);
|
||||||
|
in "${pkg}/bin/mdformat";
|
||||||
|
};
|
||||||
|
};
|
||||||
in {
|
in {
|
||||||
default = devshell.mkShell {
|
default = devshell.mkShell {
|
||||||
imports = [soonix.devshellModule];
|
imports = [soonix.devshellModule devtools-lib.devshellModule];
|
||||||
packages = with pkgs; [
|
packages = with pkgs; [
|
||||||
(treefmt.mkWrapper pkgs {
|
treefmtWrapper
|
||||||
programs = {
|
|
||||||
alejandra.enable = true;
|
|
||||||
mdformat.enable = true;
|
|
||||||
gofmt.enable = true;
|
|
||||||
};
|
|
||||||
settings.formatter.mdformat.command = let
|
|
||||||
pkg = pkgs.python3.withPackages (p: [
|
|
||||||
p.mdformat
|
|
||||||
p.mdformat-mkdocs
|
|
||||||
]);
|
|
||||||
in "${pkg}/bin/mdformat";
|
|
||||||
})
|
|
||||||
gcc
|
gcc
|
||||||
go
|
go
|
||||||
gopls
|
gopls
|
||||||
delve
|
delve
|
||||||
|
go-tools
|
||||||
go-junit-report
|
go-junit-report
|
||||||
gocover-cobertura
|
gocover-cobertura
|
||||||
];
|
];
|
||||||
|
lefthook.config = {
|
||||||
|
"pre-commit" = {
|
||||||
|
parallel = true;
|
||||||
|
jobs = [
|
||||||
|
{
|
||||||
|
name = "treefmt";
|
||||||
|
stage_fixed = true;
|
||||||
|
run = "${treefmtWrapper}/bin/treefmt";
|
||||||
|
env.TERM = "dumb";
|
||||||
|
}
|
||||||
|
{
|
||||||
|
name = "soonix";
|
||||||
|
stage_fixed = true;
|
||||||
|
run = "nix run .#soonix:update";
|
||||||
|
}
|
||||||
|
];
|
||||||
|
};
|
||||||
|
"pre-push" = {
|
||||||
|
parallel = true;
|
||||||
|
jobs = [
|
||||||
|
{
|
||||||
|
name = "nix build";
|
||||||
|
run = "nix build .#nixtest";
|
||||||
|
}
|
||||||
|
{
|
||||||
|
name = "go test";
|
||||||
|
run = "go test ./...";
|
||||||
|
}
|
||||||
|
];
|
||||||
|
};
|
||||||
|
};
|
||||||
|
cocogitto.config = {
|
||||||
|
tag_prefix = "v";
|
||||||
|
ignore_merge_commits = true;
|
||||||
|
changelog = {
|
||||||
|
authors = [
|
||||||
|
{
|
||||||
|
username = "TECHNOFAB";
|
||||||
|
signature = "technofab";
|
||||||
|
}
|
||||||
|
];
|
||||||
|
path = "CHANGELOG.md";
|
||||||
|
template = "remote";
|
||||||
|
remote = "gitlab.com";
|
||||||
|
repository = "nixtest";
|
||||||
|
owner = "TECHNOFAB";
|
||||||
|
};
|
||||||
|
};
|
||||||
};
|
};
|
||||||
}
|
}
|
||||||
|
|
|
||||||
46
nix/repo/flake.lock
generated
46
nix/repo/flake.lock
generated
|
|
@ -3,20 +3,39 @@
|
||||||
"devshell-lib": {
|
"devshell-lib": {
|
||||||
"locked": {
|
"locked": {
|
||||||
"dir": "lib",
|
"dir": "lib",
|
||||||
"lastModified": 1767274074,
|
"lastModified": 1767218348,
|
||||||
"narHash": "sha256-h2grM9qoSnYdqN7K8+taeMuWC2umaN/c2FCBu48frlo=",
|
"narHash": "sha256-8MJqwH9sRMuHH+RsB7iqWyWD30TgmpiYKEvegAULggs=",
|
||||||
"owner": "rensa-nix",
|
"owner": "rensa-nix",
|
||||||
"repo": "devshell",
|
"repo": "devshell",
|
||||||
"rev": "5508ced269ee40ff7f5261ee3b5bf5597f7cad5d",
|
"rev": "7a9b7e5d9f162a1fa3edfdc0169cdc29d3a67f8e",
|
||||||
"type": "gitlab"
|
"type": "gitlab"
|
||||||
},
|
},
|
||||||
"original": {
|
"original": {
|
||||||
"dir": "lib",
|
"dir": "lib",
|
||||||
"owner": "rensa-nix",
|
"owner": "rensa-nix",
|
||||||
|
"ref": "v0.1.0",
|
||||||
"repo": "devshell",
|
"repo": "devshell",
|
||||||
"type": "gitlab"
|
"type": "gitlab"
|
||||||
}
|
}
|
||||||
},
|
},
|
||||||
|
"devtools-lib": {
|
||||||
|
"locked": {
|
||||||
|
"dir": "lib",
|
||||||
|
"lastModified": 1767214272,
|
||||||
|
"narHash": "sha256-gvW7flZ60xdv3Z3Ksec5jcRjW2sqRHsGoJdwsNWQVPk=",
|
||||||
|
"owner": "rensa-nix",
|
||||||
|
"repo": "devtools",
|
||||||
|
"rev": "f40e59c32c48cdbf4cbc621c2f0f11e7bb80dbd3",
|
||||||
|
"type": "gitlab"
|
||||||
|
},
|
||||||
|
"original": {
|
||||||
|
"dir": "lib",
|
||||||
|
"owner": "rensa-nix",
|
||||||
|
"ref": "v0.1.0",
|
||||||
|
"repo": "devtools",
|
||||||
|
"type": "gitlab"
|
||||||
|
}
|
||||||
|
},
|
||||||
"nix-gitlab-ci-lib": {
|
"nix-gitlab-ci-lib": {
|
||||||
"locked": {
|
"locked": {
|
||||||
"dir": "lib",
|
"dir": "lib",
|
||||||
|
|
@ -38,16 +57,17 @@
|
||||||
"nixmkdocs-lib": {
|
"nixmkdocs-lib": {
|
||||||
"locked": {
|
"locked": {
|
||||||
"dir": "lib",
|
"dir": "lib",
|
||||||
"lastModified": 1766404754,
|
"lastModified": 1767549915,
|
||||||
"narHash": "sha256-EjBe6x6BT8ckPirMWhSf1GfaFxORYxR/Uu71FvSAm60=",
|
"narHash": "sha256-by3r2qddlyzylup5fzSaDwtoy3eFHNKb65IuIq6bsAs=",
|
||||||
"owner": "TECHNOFAB",
|
"owner": "TECHNOFAB",
|
||||||
"repo": "nixmkdocs",
|
"repo": "nixmkdocs",
|
||||||
"rev": "cfa9606eeeb9288e2799896d7d42b3d3860f9ccb",
|
"rev": "f3b2f4b19178e97c5580367be0f97e61a085db6d",
|
||||||
"type": "gitlab"
|
"type": "gitlab"
|
||||||
},
|
},
|
||||||
"original": {
|
"original": {
|
||||||
"dir": "lib",
|
"dir": "lib",
|
||||||
"owner": "TECHNOFAB",
|
"owner": "TECHNOFAB",
|
||||||
|
"ref": "v1.1.0",
|
||||||
"repo": "nixmkdocs",
|
"repo": "nixmkdocs",
|
||||||
"type": "gitlab"
|
"type": "gitlab"
|
||||||
}
|
}
|
||||||
|
|
@ -55,6 +75,7 @@
|
||||||
"root": {
|
"root": {
|
||||||
"inputs": {
|
"inputs": {
|
||||||
"devshell-lib": "devshell-lib",
|
"devshell-lib": "devshell-lib",
|
||||||
|
"devtools-lib": "devtools-lib",
|
||||||
"nix-gitlab-ci-lib": "nix-gitlab-ci-lib",
|
"nix-gitlab-ci-lib": "nix-gitlab-ci-lib",
|
||||||
"nixmkdocs-lib": "nixmkdocs-lib",
|
"nixmkdocs-lib": "nixmkdocs-lib",
|
||||||
"soonix-lib": "soonix-lib",
|
"soonix-lib": "soonix-lib",
|
||||||
|
|
@ -64,16 +85,17 @@
|
||||||
"soonix-lib": {
|
"soonix-lib": {
|
||||||
"locked": {
|
"locked": {
|
||||||
"dir": "lib",
|
"dir": "lib",
|
||||||
"lastModified": 1767274116,
|
"lastModified": 1769607658,
|
||||||
"narHash": "sha256-8+VeMokZHjOLs6fRUTj/9uxbMlHKDl384Tk6K8Qjm4k=",
|
"narHash": "sha256-gF9/QmmaNRgqkC5cqSGgwWvGXj9Mj4qMDkvvF/5BlSA=",
|
||||||
"owner": "TECHNOFAB",
|
"owner": "TECHNOFAB",
|
||||||
"repo": "soonix",
|
"repo": "soonix",
|
||||||
"rev": "56f281eea45bdcf29674adfa7962f14e490a6051",
|
"rev": "19a88a0c2681bbc85bc2cbe4f2860316d50fe957",
|
||||||
"type": "gitlab"
|
"type": "gitlab"
|
||||||
},
|
},
|
||||||
"original": {
|
"original": {
|
||||||
"dir": "lib",
|
"dir": "lib",
|
||||||
"owner": "TECHNOFAB",
|
"owner": "TECHNOFAB",
|
||||||
|
"ref": "v0.2.0",
|
||||||
"repo": "soonix",
|
"repo": "soonix",
|
||||||
"type": "gitlab"
|
"type": "gitlab"
|
||||||
}
|
}
|
||||||
|
|
@ -81,11 +103,11 @@
|
||||||
"treefmt-nix": {
|
"treefmt-nix": {
|
||||||
"flake": false,
|
"flake": false,
|
||||||
"locked": {
|
"locked": {
|
||||||
"lastModified": 1767122417,
|
"lastModified": 1775636079,
|
||||||
"narHash": "sha256-yOt/FTB7oSEKQH9EZMFMeuldK1HGpQs2eAzdS9hNS/o=",
|
"narHash": "sha256-pc20NRoMdiar8oPQceQT47UUZMBTiMdUuWrYu2obUP0=",
|
||||||
"owner": "numtide",
|
"owner": "numtide",
|
||||||
"repo": "treefmt-nix",
|
"repo": "treefmt-nix",
|
||||||
"rev": "dec15f37015ac2e774c84d0952d57fcdf169b54d",
|
"rev": "790751ff7fd3801feeaf96d7dc416a8d581265ba",
|
||||||
"type": "github"
|
"type": "github"
|
||||||
},
|
},
|
||||||
"original": {
|
"original": {
|
||||||
|
|
|
||||||
|
|
@ -1,9 +1,10 @@
|
||||||
{
|
{
|
||||||
inputs = {
|
inputs = {
|
||||||
devshell-lib.url = "gitlab:rensa-nix/devshell?dir=lib";
|
devshell-lib.url = "gitlab:rensa-nix/devshell/v0.1.0?dir=lib";
|
||||||
soonix-lib.url = "gitlab:TECHNOFAB/soonix?dir=lib";
|
devtools-lib.url = "gitlab:rensa-nix/devtools/v0.1.0?dir=lib";
|
||||||
|
soonix-lib.url = "gitlab:TECHNOFAB/soonix/v0.2.0?dir=lib";
|
||||||
nix-gitlab-ci-lib.url = "gitlab:TECHNOFAB/nix-gitlab-ci/3.1.2?dir=lib";
|
nix-gitlab-ci-lib.url = "gitlab:TECHNOFAB/nix-gitlab-ci/3.1.2?dir=lib";
|
||||||
nixmkdocs-lib.url = "gitlab:TECHNOFAB/nixmkdocs?dir=lib";
|
nixmkdocs-lib.url = "gitlab:TECHNOFAB/nixmkdocs/v1.1.0?dir=lib";
|
||||||
treefmt-nix = {
|
treefmt-nix = {
|
||||||
url = "github:numtide/treefmt-nix";
|
url = "github:numtide/treefmt-nix";
|
||||||
flake = false;
|
flake = false;
|
||||||
|
|
|
||||||
Loading…
Add table
Add a link
Reference in a new issue