diff options
| author | Tom Harley | 2021-10-22 12:53:27 +0100 |
|---|---|---|
| committer | Tom Harley | 2021-10-22 12:53:27 +0100 |
| commit | 7ee7bc4c7a32fcc7c45a80d9dc122a4e6d31b2df (patch) | |
| tree | a54180b4e3e8dae6e69169733da8597299c7684a /path-of-building/default.nix | |
| parent | Add Path of Building (diff) | |
| download | magpkgs-7ee7bc4c7a32fcc7c45a80d9dc122a4e6d31b2df.tar.gz magpkgs-7ee7bc4c7a32fcc7c45a80d9dc122a4e6d31b2df.zip | |
Update PoB version
Diffstat (limited to 'path-of-building/default.nix')
| -rw-r--r-- | path-of-building/default.nix | 50 |
1 files changed, 27 insertions, 23 deletions
diff --git a/path-of-building/default.nix b/path-of-building/default.nix index a0dbe11..10fb7bd 100644 --- a/path-of-building/default.nix +++ b/path-of-building/default.nix @@ -10,39 +10,43 @@ let nixpkgs = import <nixpkgs> {}; in let pob-src = stdenv.mkDerivation { name = "path-of-building-community-data"; + # src = fetchurl { + # url = https://github.com/PathOfBuildingCommunity/PathOfBuilding/releases/download/v2.7.0/PathOfBuildingCommunity-Portable-2.7.0.zip; + # sha256 = "0ybw5f07h676hcdimhdbvacj53ky9lr47vvinya4sj7plkkq49ii"; + # }; src = fetchurl { - url = https://github.com/PathOfBuildingCommunity/PathOfBuilding/releases/download/v2.7.0/PathOfBuildingCommunity-Portable-2.7.0.zip; - sha256 = "0ybw5f07h676hcdimhdbvacj53ky9lr47vvinya4sj7plkkq49ii"; - }; - dontUnpack = true; - nativeBuildInputs = [ - unzip - ]; - installPhase = '' + url = https://github.com/PathOfBuildingCommunity/PathOfBuilding/releases/download/v2.9.0/PathOfBuildingCommunity-Portable-2.9.0.zip; + sha256 = "0129zbz5dl5j0gk979n9k395773z74ighsd30b2fb1ympcjnyn87"; + }; + dontUnpack = true; + nativeBuildInputs = [ + unzip + ]; + installPhase = '' unzip $src -d $out - ''; - }; + ''; + }; in stdenv.mkDerivation rec { - pname = "path-of-building-community"; - version = "2.7.0"; + pname = "path-of-building-community"; + version = "2.7.0"; - pob_script = writeTextFile { - name = "pob-script"; - executable = true; + pob_script = writeTextFile { + name = "pob-script"; + executable = true; - text = '' + text = '' #!/bin/sh ${wine}/bin/wine "${pob-src}/Path of Building.exe" - ''; - }; + ''; + }; - dontUnpack = true; + dontUnpack = true; - src = pob_script; + src = pob_script; - installPhase = '' + installPhase = '' mkdir -p $out/bin cp $src $out/bin/pob - ''; - } + ''; +} |
