mkspiffs: fix version number shown in help, cleanup

* Replace git invocation for the project itself with the version number from the derivation
* Replace git invocation for the submodule with 'unknown' (which is what the Makefile falls back to anyway)
* Remove git as a dependency
* Update sha256 -> hash

+8 -3
+8 -3
pkgs/tools/filesystems/mkspiffs/default.nix
··· 1 - { lib, stdenv, fetchFromGitHub, git }: 1 + { lib, stdenv, fetchFromGitHub }: 2 2 3 3 # Changing the variables CPPFLAGS and BUILD_CONFIG_NAME can be done by 4 4 # overriding the same-named attributes. See ./presets.nix for examples. ··· 12 12 repo = "mkspiffs"; 13 13 rev = version; 14 14 fetchSubmodules = true; 15 - sha256 = "1fgw1jqdlp83gv56mgnxpakky0q6i6f922niis4awvxjind8pbm1"; 15 + hash = "sha256-oa6Lmo2yb66IjtEKkZyJBgM/p7rdvmrKfgNd2rAM/Lk="; 16 16 }; 17 17 18 - nativeBuildInputs = [ git ]; 19 18 buildFlags = [ "dist" ]; 19 + 20 + makeFlags = [ 21 + "VERSION=${version}" 22 + "SPIFFS_VERSION=unknown" 23 + ]; 24 + 20 25 installPhase = '' 21 26 mkdir -p $out/bin 22 27 cp mkspiffs $out/bin