nixpkgs mirror (for testing) github.com/NixOS/nixpkgs
nix

idmail: init at 1.0.1 (#382928)

authored by

Aleksana and committed by
GitHub
87dbb393 f700ae27

+81
+81
pkgs/by-name/id/idmail/package.nix
··· 1 + { 2 + binaryen, 3 + cargo-leptos, 4 + fetchFromGitHub, 5 + lib, 6 + rustc, 7 + makeWrapper, 8 + nix-update-script, 9 + nodePackages, 10 + rustPlatform, 11 + tailwindcss_3, 12 + wasm-bindgen-cli_0_2_100, 13 + }: 14 + let 15 + tailwindcss = tailwindcss_3.overrideAttrs (_prev: { 16 + plugins = [ 17 + nodePackages."@tailwindcss/aspect-ratio" 18 + nodePackages."@tailwindcss/forms" 19 + nodePackages."@tailwindcss/line-clamp" 20 + nodePackages."@tailwindcss/typography" 21 + ]; 22 + }); 23 + in 24 + rustPlatform.buildRustPackage rec { 25 + pname = "idmail"; 26 + version = "1.0.1"; 27 + 28 + src = fetchFromGitHub { 29 + owner = "oddlama"; 30 + repo = "idmail"; 31 + tag = "v${version}"; 32 + hash = "sha256-9rl2UG8DeWd8hVh3N+dqyV5gO0LErok+kZ1vQZnVAe8="; 33 + }; 34 + 35 + useFetchCargoVendor = true; 36 + cargoHash = "sha256-UcS2gAoa2fzPu6hh8I5sXSHHbAmzsecT44Ju2CVsK0Q="; 37 + 38 + RUSTC_BOOTSTRAP = 1; 39 + RUSTFLAGS = "--cfg=web_sys_unstable_apis"; 40 + 41 + nativeBuildInputs = [ 42 + wasm-bindgen-cli_0_2_100 43 + binaryen 44 + cargo-leptos 45 + rustc.llvmPackages.lld 46 + tailwindcss 47 + makeWrapper 48 + ]; 49 + buildPhase = '' 50 + runHook preBuild 51 + 52 + cargo leptos build --release 53 + 54 + runHook postBuild 55 + ''; 56 + 57 + installPhase = '' 58 + runHook preInstall 59 + 60 + mkdir -p $out/bin $out/share 61 + cp target/release/idmail $out/bin 62 + cp -r target/site $out/share 63 + wrapProgram $out/bin/idmail --set LEPTOS_SITE_ROOT $out/share/site 64 + 65 + runHook postInstall 66 + ''; 67 + 68 + passthru.updateScript = nix-update-script { }; 69 + 70 + meta = { 71 + description = "Email alias and account management interface for self-hosted mailservers"; 72 + homepage = "https://github.com/oddlama/idmail"; 73 + changelog = "https://github.com/oddlama/idmail/releases/tag/v${version}"; 74 + license = lib.licenses.mit; 75 + maintainers = with lib.maintainers; [ 76 + oddlama 77 + patrickdag 78 + ]; 79 + mainProgram = "idmail"; 80 + }; 81 + }