Merge pull request #278475 from SFrijters/mkspiffs-version
mkspiffs: fix version number shown in help, cleanup
This commit is contained in:
commit
51d0d089e5
1 changed files with 8 additions and 3 deletions
|
@ -1,4 +1,4 @@
|
|||
{ lib, stdenv, fetchFromGitHub, git }:
|
||||
{ lib, stdenv, fetchFromGitHub }:
|
||||
|
||||
# Changing the variables CPPFLAGS and BUILD_CONFIG_NAME can be done by
|
||||
# overriding the same-named attributes. See ./presets.nix for examples.
|
||||
|
@ -12,11 +12,16 @@ stdenv.mkDerivation rec {
|
|||
repo = "mkspiffs";
|
||||
rev = version;
|
||||
fetchSubmodules = true;
|
||||
sha256 = "1fgw1jqdlp83gv56mgnxpakky0q6i6f922niis4awvxjind8pbm1";
|
||||
hash = "sha256-oa6Lmo2yb66IjtEKkZyJBgM/p7rdvmrKfgNd2rAM/Lk=";
|
||||
};
|
||||
|
||||
nativeBuildInputs = [ git ];
|
||||
buildFlags = [ "dist" ];
|
||||
|
||||
makeFlags = [
|
||||
"VERSION=${version}"
|
||||
"SPIFFS_VERSION=unknown"
|
||||
];
|
||||
|
||||
installPhase = ''
|
||||
mkdir -p $out/bin
|
||||
cp mkspiffs $out/bin
|
||||
|
|
Loading…
Reference in a new issue