File tree Expand file tree Collapse file tree 1 file changed +2
-2
lines changed Expand file tree Collapse file tree 1 file changed +2
-2
lines changed Original file line number Diff line number Diff line change 71
71
# FIXME: Should use `git describe` to get the version
72
72
# number or leave it to cmake, but the .git/ directory
73
73
# isn't included in the Nix store.
74
- version = "0.6.3-unknown-" + ( if ( self ? shortRev ) then self . shortRev else "dirty" ) ;
74
+ version = "0.6.3-${ nixpkgs . lib . substring 0 8 self . lastModifiedDate } - ${ self . shortRev or "dirty" } " ;
75
75
src = nixpkgs . lib . cleanSource ./. ;
76
76
patchPhase = let
77
77
ver = builtins . splitVersion version ;
83
83
SET(SUPERTUX_VERSION_MAJOR ${ builtins . elemAt ver 0 } )
84
84
SET(SUPERTUX_VERSION_MINOR ${ builtins . elemAt ver 1 } )
85
85
SET(SUPERTUX_VERSION_PATCH ${ builtins . elemAt ver 2 } )
86
- SET(SUPERTUX_VERSION_TWEAK )
86
+ SET(SUPERTUX_VERSION_TWEAK ${ builtins . elemAt ver 3 } )
87
87
SET(SUPERTUX_VERSION_STRING "v${ version } ")
88
88
SET(SUPERTUX_VERSION_BUILD "${ builtins . elemAt ver 4 } ")
89
89
EOF
You can’t perform that action at this time.
0 commit comments