From a85bb0897aec7d6d151fb5fb026bf8e3a057a034 Mon Sep 17 00:00:00 2001 From: mystery3525 <30960302+mystery3525@users.noreply.github.com> Date: Mon, 24 Jun 2024 22:51:52 -0400 Subject: [PATCH] Took inspiration from https://github.com/facebook/hhvm/blob/cebd9dd7818e7dfb6908f52e6812506942575d92/hhvm.nix#L76 --- package.nix | 9 ++++++++- 1 file changed, 8 insertions(+), 1 deletion(-) diff --git a/package.nix b/package.nix index 1613f40..7a9d043 100644 --- a/package.nix +++ b/package.nix @@ -52,11 +52,18 @@ let usbutils xdg-user-dirs ]; + versionMatches = + builtins.match '' + .* + readonly[[:blank:]]VERSION="([[:digit:]]+\.[[:digit:]]+\.[[:digit:]]+)" + .* + '' (builtins.readFile ./quickemu); in stdenv.mkDerivation rec { pname = "quickemu"; - version = "4.9.4"; + version = builtins.concatStringsSep "" versionMatches; + src = lib.cleanSource ./.; postPatch = ''