My Nix Configuration
2
fork

Configure Feed

Select the types of activity you want to include in your feed.

[pkgs] bichon: init at 0.3.7

dish fc00c914 e269f112

+67
+67
packages/bichon/package.nix
··· 1 + { 2 + lib, 3 + fetchFromGitHub, 4 + rustPlatform, 5 + fetchPnpmDeps, 6 + pnpm, 7 + pnpmConfigHook, 8 + nodejs, 9 + openssl, 10 + pkg-config, 11 + }: 12 + rustPlatform.buildRustPackage (finalAttrs: { 13 + pname = "bichon"; 14 + version = "0.3.7"; 15 + 16 + src = fetchFromGitHub { 17 + owner = "rustmailer"; 18 + repo = "bichon"; 19 + tag = finalAttrs.version; 20 + hash = "sha256-0uba/4NMh6ib//rgmYcUk+5qVzBg+yWMaVbCcoM+8jE="; 21 + }; 22 + 23 + cargoHash = "sha256-l11G3x7ZiInptez9KrGNf685eyxwjqePGbQiQxCkwNI="; 24 + 25 + pnpmDeps = fetchPnpmDeps { 26 + inherit (finalAttrs) pname version src; 27 + sourceRoot = "${finalAttrs.src.name}/web"; 28 + fetcherVersion = 3; 29 + hash = "sha256-T7Y9QLO6ruPQ6eRqTq7NeSPkp4oBOjgd/U3PXbYzRuk="; 30 + }; 31 + pnpmRoot = "web"; 32 + 33 + nativeBuildInputs = [ 34 + nodejs 35 + pnpmConfigHook 36 + pnpm 37 + pkg-config 38 + ]; 39 + 40 + buildInputs = [ 41 + openssl 42 + ]; 43 + 44 + env.GIT_HASH = finalAttrs.src.rev; 45 + 46 + preBuild = '' 47 + # Build web frontend before rust build 48 + pushd web 49 + pnpm run build 50 + popd 51 + 52 + # Just sets the GIT_HASH variable for builds, we set it above so we don't need git 53 + rm build.rs 54 + ''; 55 + 56 + # The tests are flaky or something im lazy 57 + doCheck = false; 58 + 59 + meta = { 60 + changelog = "https://github.com/rustmailer/bichon/releases/tag/${finalAttrs.version}"; 61 + description = "Lightweight, high-performance Rust email archiver with WebUI"; 62 + homepage = "https://github.com/rustmailer/bichon"; 63 + maintainers = with lib.maintainers; [ pyrox0 ]; 64 + mainProgram = "bichon"; 65 + platforms = lib.platforms.linux; 66 + }; 67 + })