nixpkgs mirror (for testing) github.com/NixOS/nixpkgs
nix
at 24.05-beta 36 lines 903 B view raw
1{ lib 2, rustPlatform 3, fetchFromGitHub 4, stdenv 5, darwin 6}: 7 8rustPlatform.buildRustPackage rec { 9 pname = "dtool"; 10 version = "0.12.0"; 11 12 src = fetchFromGitHub { 13 owner = "guoxbin"; 14 repo = "dtool"; 15 rev = "v${version}"; 16 hash = "sha256-m4H+ANwEbK6vGW3oIVZqnqvMiAKxNJf2TLIGh/G6AU4="; 17 }; 18 19 cargoHash = "sha256-o5Xvc0tnoUgfp5k7EqVuEH9Zyo3C+A+mVqPhMtZCYKw="; 20 21 buildInputs = lib.optionals stdenv.isDarwin [ 22 darwin.apple_sdk.frameworks.Security 23 ]; 24 # FIXME: remove patch when upstream version of rustc-serialize is updated 25 cargoPatches = [ ./rustc-serialize-fix.patch ]; 26 27 checkType = "debug"; 28 29 meta = with lib; { 30 description = "A command-line tool collection to assist development written in RUST"; 31 homepage = "https://github.com/guoxbin/dtool"; 32 license = licenses.gpl3Only; 33 maintainers = with maintainers; [ linuxissuper ]; 34 mainProgram = "dtool"; 35 }; 36}