2023-04-16 12:35:58 +00:00
|
|
|
{ lib
|
|
|
|
, rustPlatform
|
|
|
|
, fetchFromGitHub
|
|
|
|
, stdenv
|
|
|
|
, darwin
|
|
|
|
}:
|
|
|
|
|
|
|
|
rustPlatform.buildRustPackage rec {
|
|
|
|
pname = "dtool";
|
|
|
|
version = "0.12.0";
|
|
|
|
|
|
|
|
src = fetchFromGitHub {
|
|
|
|
owner = "guoxbin";
|
|
|
|
repo = "dtool";
|
|
|
|
rev = "v${version}";
|
|
|
|
hash = "sha256-m4H+ANwEbK6vGW3oIVZqnqvMiAKxNJf2TLIGh/G6AU4=";
|
|
|
|
};
|
|
|
|
|
2024-05-15 10:05:47 +00:00
|
|
|
cargoHash = "sha256-o5Xvc0tnoUgfp5k7EqVuEH9Zyo3C+A+mVqPhMtZCYKw=";
|
2023-04-16 12:35:58 +00:00
|
|
|
|
|
|
|
buildInputs = lib.optionals stdenv.isDarwin [
|
|
|
|
darwin.apple_sdk.frameworks.Security
|
|
|
|
];
|
2024-05-15 10:05:47 +00:00
|
|
|
# FIXME: remove patch when upstream version of rustc-serialize is updated
|
|
|
|
cargoPatches = [ ./rustc-serialize-fix.patch ];
|
2023-04-16 12:35:58 +00:00
|
|
|
|
|
|
|
checkType = "debug";
|
|
|
|
|
|
|
|
meta = with lib; {
|
|
|
|
description = "Command-line tool collection to assist development written in RUST";
|
|
|
|
homepage = "https://github.com/guoxbin/dtool";
|
|
|
|
license = licenses.gpl3Only;
|
|
|
|
maintainers = with maintainers; [ linuxissuper ];
|
2023-11-27 01:17:53 +00:00
|
|
|
mainProgram = "dtool";
|
2023-04-16 12:35:58 +00:00
|
|
|
};
|
|
|
|
}
|