Skip to content

Commit

Permalink
override version detection
Browse files Browse the repository at this point in the history
  • Loading branch information
peterhoeg committed Nov 23, 2022
1 parent 369da48 commit c7a3f1e
Showing 1 changed file with 9 additions and 0 deletions.
9 changes: 9 additions & 0 deletions pkgs/applications/misc/subsurface/default.nix
Original file line number Diff line number Diff line change
Expand Up @@ -2,6 +2,7 @@
, stdenv
, fetchFromGitHub
, autoreconfHook
, writeShellScriptBin
, cmake
, wrapQtAppsHook
, pkg-config
Expand Down Expand Up @@ -93,13 +94,21 @@ let
};
};

get-version = writeShellScriptBin "get-version" ''
echo -n ${version}
'';

in
stdenv.mkDerivation {
pname = "subsurface";
inherit version;

src = subsurfaceSrc;

postPatch = ''
install -m555 -t scripts ${lib.getExe get-version}
'';

buildInputs = [
bluez
curl
Expand Down

0 comments on commit c7a3f1e

Please sign in to comment.