codosseum-org / backend

Backend service for Codosseum
GNU Affero General Public License v3.0
0 stars 0 forks source link

Add very basic Nix support #10

Open bristermitten opened 1 year ago

bristermitten commented 1 year ago

Somewhat opinionated, uses https://devenv.sh for an easy environment on Nix-enabled systems with Java tooling, pre-commit, checkstyle, etc

bristermitten commented 1 year ago

I think the easiest way to get the REUSE check to pass is to make it skip devenv.lock somehow. It's an autogenerated file so copyright isn't really important, but excluding it entirely could break reproducibility

JohnnyJayJay commented 1 year ago

I think the easiest way to get the REUSE check to pass is to make it skip devenv.lock somehow. It's an autogenerated file so copyright isn't really important, but excluding it entirely could break reproducibility

The reuse policy is to add copyright info to all files, even if they're probably not copyrightable. Just declare the lockfile as CC0-1.0 (public domain equivalent) in the .reuse/dep5 file with your name. Making the other config files CC0-1.0 probably makes sense too.

NyCodeGHG commented 1 year ago

i would actually prefer using https://flake.parts and the devenv flake module instead of the "regular" way

bristermitten commented 1 year ago

i would actually prefer using https://flake.parts and the devenv flake module instead of the "regular" way

That's fair. I considered that as an option, but I thought I'd then have to worry about actually building packages, which didn't seem worth the time investment at the moment. Happy to move over to a basic flake-parts stub though, and we can add the rest as we go

bristermitten commented 1 year ago

I think the easiest way to get the REUSE check to pass is to make it skip devenv.lock somehow. It's an autogenerated file so copyright isn't really important, but excluding it entirely could break reproducibility

The reuse policy is to add copyright info to all files, even if they're probably not copyrightable. Just declare the lockfile as CC0-1.0 (public domain equivalent) in the .reuse/dep5 file with your name. Making the other config files CC0-1.0 probably makes sense too.

Ah, didn't realise that was an option. Awesome, will do