1{ lib, rustPlatform, fetchFromGitHub, stdenv }:
2
3rustPlatform.buildRustPackage rec {
4 pname = "texture-synthesis";
5 version = "0.8.2";
6
7 src = fetchFromGitHub {
8 owner = "embarkstudios";
9 repo = pname;
10 rev = version;
11 sha256 = "0n1wbxcnxb7x5xwakxdzq7kg1fn0c48i520j03p7wvm5x97vm5h4";
12 };
13
14 cargoLock = {
15 lockFile = ./Cargo.lock;
16 outputHashes = {
17 "img_hash-2.1.0" = "sha256-Ba26n//bZweYvb5p47U209dHrsDHKHLQ3YEHbKT+hjE=";
18 };
19 };
20
21 # tests fail for unknown reasons on aarch64-darwin
22 doCheck = !(stdenv.isDarwin && stdenv.isAarch64);
23
24 meta = with lib; {
25 description = "Example-based texture synthesis written in Rust";
26 homepage = "https://github.com/embarkstudios/texture-synthesis";
27 license = with licenses; [ mit /* or */ asl20 ];
28 maintainers = with maintainers; [ figsoda ];
29 };
30}