Merge pull request #278475 from SFrijters/mkspiffs-version

mkspiffs: fix version number shown in help, cleanup
This commit is contained in:
Nick Cao 2024-01-04 10:52:27 -05:00 committed by GitHub
commit 51d0d089e5
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23

View File

@ -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