Commit 61b03131 authored by Jörg Thalheim's avatar Jörg Thalheim
Browse files

hwinfo: write version info to file

This is more robust i.e. when we added another make command
parent 4d1e8c93
Loading
Loading
Loading
Loading
+2 −1
Original line number Diff line number Diff line
@@ -39,6 +39,8 @@ stdenv.mkDerivation (finalAttrs: {
  ];

  postPatch = ''
    # used by the build system
    echo ${finalAttrs.version} > VERSION
    # Replace /usr paths with Nix store paths
    substituteInPlace Makefile \
      --replace-fail "/sbin" "/bin" \
@@ -60,7 +62,6 @@ stdenv.mkDerivation (finalAttrs: {

  makeFlags = [
    "LIBDIR=/lib"
    "HWINFO_VERSION=${finalAttrs.version}"
  ];

  installFlags = [ "DESTDIR=$(out)" ];