{ lib, stdenv, rustPlatform, fetchFromGitHub, openssl, postgresql, libiconv
-, Security, protobuf, rustfmt, nixosTests }:
+, Security, protobuf, rustfmt, nixosTests, lemmy-translations }:
rustPlatform.buildRustPackage rec {
version = "0.18.2";
echo 'pub const VERSION: &str = "${version}";' > crates/utils/src/version.rs
'';
+ preBuild = ''
+ ln -sf ${lemmy-translations} crates/utils/translations
+ '';
+
cargoSha256 = "sha256-2HWz6gYRo4YkXQz4V5COY2vpCu/PD8kKxzDG21YjYbo=";
buildInputs = [ postgresql ]
"type": "github"
}
},
+ "lemmy-translations": {
+ "flake": false,
+ "locked": {
+ "lastModified": 1690314617,
+ "narHash": "sha256-fkv6l6/888XOdxZ8Y0P+Ww/y+8Wh4F8SIStncAmifu8=",
+ "owner": "lemmynet",
+ "repo": "lemmy-translations",
+ "rev": "68d14665d4f854fc20f9117636b5cde7176e91dd",
+ "type": "github"
+ },
+ "original": {
+ "owner": "lemmynet",
+ "repo": "lemmy-translations",
+ "type": "github"
+ }
+ },
"nixpkgs": {
"locked": {
"lastModified": 1690031011,
"root": {
"inputs": {
"flake-utils": "flake-utils",
+ "lemmy-translations": "lemmy-translations",
"nixpkgs": "nixpkgs"
}
},
inputs = {
nixpkgs.url = "nixpkgs/nixos-unstable";
flake-utils.url = "github:numtide/flake-utils";
+ lemmy-translations = {
+ url = "github:lemmynet/lemmy-translations";
+ flake = false;
+ };
};
- outputs = { self, nixpkgs, flake-utils }:
+ outputs = { self, nixpkgs, flake-utils, lemmy-translations }:
flake-utils.lib.eachDefaultSystem (system:
let pkgs = nixpkgs.legacyPackages.${system};
in {
packages = {
lemmy-server = (pkgs.callPackage ./default.nix {
+ inherit lemmy-translations;
libiconv = null;
Security = null;
});