{ pkgs ? import {}, }: pkgs.rustPlatform.buildRustPackage rec { name = "cmd_cachier"; version = "${version}"; src = fetchGit { url = "https://github.com/inyourfoss/cmd_cachier.git"; rev = "${commithash}"; }; cargoLock = { # Needs to be in build directory lockFile = ./Cargo.lock; }; postPatch = '' ln -s ${./Cargo.lock} Cargo.lock ''; nativeBuildInputs = [ pkgs.installShellFiles ]; #buildInputs = [ ]; # installPhase = '' # mkdir -p $out/usr/share/man/man1 # cp $src/man/$name.1 $out/usr/share/man/man1/$name.1 # ''; postInstall = '' mkdir -p $out/man/man1 cp $src/man/man1/$name.1 $out/man/man1/ ''; }