2023-01-20 10:41:00 +00:00
|
|
|
{ lib, rustPlatform, fetchFromGitHub, stdenv }:
|
2021-09-18 10:52:07 +00:00
|
|
|
|
|
|
|
rustPlatform.buildRustPackage rec {
|
|
|
|
pname = "texture-synthesis";
|
|
|
|
version = "0.8.2";
|
|
|
|
|
|
|
|
src = fetchFromGitHub {
|
|
|
|
owner = "embarkstudios";
|
|
|
|
repo = pname;
|
|
|
|
rev = version;
|
|
|
|
sha256 = "0n1wbxcnxb7x5xwakxdzq7kg1fn0c48i520j03p7wvm5x97vm5h4";
|
|
|
|
};
|
|
|
|
|
2023-03-27 19:17:25 +00:00
|
|
|
cargoLock = {
|
|
|
|
lockFile = ./Cargo.lock;
|
|
|
|
outputHashes = {
|
|
|
|
"img_hash-2.1.0" = "sha256-Ba26n//bZweYvb5p47U209dHrsDHKHLQ3YEHbKT+hjE=";
|
|
|
|
};
|
|
|
|
};
|
2021-09-18 10:52:07 +00:00
|
|
|
|
2023-01-20 10:41:00 +00:00
|
|
|
# tests fail for unknown reasons on aarch64-darwin
|
2024-09-26 11:04:55 +00:00
|
|
|
doCheck = !(stdenv.hostPlatform.isDarwin && stdenv.hostPlatform.isAarch64);
|
2023-01-20 10:41:00 +00:00
|
|
|
|
2021-09-18 10:52:07 +00:00
|
|
|
meta = with lib; {
|
|
|
|
description = "Example-based texture synthesis written in Rust";
|
|
|
|
homepage = "https://github.com/embarkstudios/texture-synthesis";
|
|
|
|
license = with licenses; [ mit /* or */ asl20 ];
|
|
|
|
maintainers = with maintainers; [ figsoda ];
|
2024-01-02 11:29:13 +00:00
|
|
|
mainProgram = "texture-synthesis";
|
2021-09-18 10:52:07 +00:00
|
|
|
};
|
|
|
|
}
|