cataclysm-dda-git: make it overridable with git revision
'cataclysm-dda-git.overrideAttrs (_: { version = ...; src = fetchFromGitHub { ... }; })' did not update VERSION make flag correctly. With this change, one can override 'cataclysm-dda-git' correctly and more easily: cataclysm-dda-git.override { version = ...; rev = ...; sha256 = ...; }
This commit is contained in:
parent
ecf7b57e12
commit
633f211113
1 changed files with 5 additions and 3 deletions
|
@ -2,6 +2,9 @@
|
|||
, tiles ? true, Cocoa
|
||||
, debug ? false
|
||||
, useXdgDir ? false
|
||||
, version ? "2019-11-22"
|
||||
, rev ? "a6c8ece992bffeae3788425dd4b3b5871e66a9cd"
|
||||
, sha256 ? "0ww2q5gykxm802z1kffmnrfahjlx123j1gfszklpsv0b1fccm1ab"
|
||||
}:
|
||||
|
||||
let
|
||||
|
@ -11,13 +14,12 @@ let
|
|||
|
||||
self = common.overrideAttrs (common: rec {
|
||||
pname = common.pname + "-git";
|
||||
version = "2019-11-22";
|
||||
inherit version;
|
||||
|
||||
src = fetchFromGitHub {
|
||||
owner = "CleverRaven";
|
||||
repo = "Cataclysm-DDA";
|
||||
rev = "a6c8ece992bffeae3788425dd4b3b5871e66a9cd";
|
||||
sha256 = "0ww2q5gykxm802z1kffmnrfahjlx123j1gfszklpsv0b1fccm1ab";
|
||||
inherit rev sha256;
|
||||
};
|
||||
|
||||
makeFlags = common.makeFlags ++ [
|
||||
|
|
Loading…
Reference in a new issue