, Security, protobuf, rustfmt, nixosTests }:
let
pinData = lib.importJSON ./pin.json;
- version = pinData.version;
+ version = pinData.serverVersion;
in rustPlatform.buildRustPackage rec {
inherit version;
pname = "lemmy-server";
};
preConfigure = ''
- echo "pub const VERSION: &str = \"${version}\";" > "crates/utils/src/version.rs"
+ echo 'pub const VERSION: &str = "${version}";' > crates/utils/src/version.rs
'';
cargoSha256 = pinData.serverCargoSha256;
PROTOC_INCLUDE = "${protobuf}/include";
nativeBuildInputs = [ protobuf rustfmt ];
- passthru.updateScript = ./update.sh;
+ passthru.updateScript = ./update.py;
passthru.tests.lemmy-server = nixosTests.lemmy;
doCheck = false;