/ package.nix
package.nix
1 { pkgs, lib, ... }: 2 pkgs.buildGoModule { 3 name = "cleanarr"; 4 src = lib.fileset.toSource { 5 root = ./.; 6 fileset = lib.fileset.intersection ./. ( 7 lib.fileset.unions [ 8 ./go.mod 9 ./go.sum 10 ./main.go 11 ./internal 12 ] 13 ); 14 }; 15 vendorHash = "sha256-y1eIpKBqGfLfYw3eds+TPUbN5/PjDTtY1P334YaiBwg="; 16 meta = { 17 mainProgram = "cleanarr"; 18 description = "Utility tasked to automatically clean radarr and sonarr files over time"; 19 homepage = "https://github.com/hrenard/cleanarr"; 20 license = lib.licenses.gpl3; 21 platforms = lib.platforms.linux; 22 # maintainers = with lib.maintainers; [ hougo ]; 23 }; 24 }