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