Use crane to package tcount
diff --git a/packages/tcount.nix b/packages/tcount.nix
new file mode 100644
index 0000000..bb96c12
--- /dev/null
+++ b/packages/tcount.nix
@@ -0,0 +1,28 @@
+{ rustPlatform
+, fetchFromGitHub
+, cmake
+, pkg-config
+, system
+, _tooling
+,
+}: let
+ craneLib = _tooling.crane.lib.${system};
+ rev = "71638e6540e2fc30bd609f8f78131ec10217f906";
+in craneLib.buildPackage {
+ pname = "tcount";
+ version = builtins.substring 0 7 rev;
+
+ src = craneLib.cleanCargoSource (fetchFromGitHub {
+ owner = "RRethy";
+ repo = "tcount";
+ inherit rev;
+ sha256 = "sha256-PrRfk/4wRADNASLmcPIpxs+flAd3S/k1OWBaY3GRJHE=";
+ });
+
+ nativeBuildInputs = [
+ cmake
+ pkg-config
+ ];
+
+ doCheck = false;
+}