Commit Graph

71 Commits

Author SHA1 Message Date
Artturin
e0464e4788 treewide: replace stdenv.is with stdenv.hostPlatform.is
In preparation for the deprecation of `stdenv.isX`.

These shorthands are not conducive to cross-compilation because they
hide the platforms.

Darwin might get cross-compilation for which the continued usage of `stdenv.isDarwin` will get in the way

One example of why this is bad and especially affects compiler packages
https://www.github.com/NixOS/nixpkgs/pull/343059

There are too many files to go through manually but a treewide should
get users thinking when they see a `hostPlatform.isX` in a place where it
doesn't make sense.

```
fd --type f "\.nix" | xargs sd --fixed-strings "stdenv.is" "stdenv.hostPlatform.is"
fd --type f "\.nix" | xargs sd --fixed-strings "stdenv'.is" "stdenv'.hostPlatform.is"
fd --type f "\.nix" | xargs sd --fixed-strings "clangStdenv.is" "clangStdenv.hostPlatform.is"
fd --type f "\.nix" | xargs sd --fixed-strings "gccStdenv.is" "gccStdenv.hostPlatform.is"
fd --type f "\.nix" | xargs sd --fixed-strings "stdenvNoCC.is" "stdenvNoCC.hostPlatform.is"
fd --type f "\.nix" | xargs sd --fixed-strings "inherit (stdenv) is" "inherit (stdenv.hostPlatform) is"
fd --type f "\.nix" | xargs sd --fixed-strings "buildStdenv.is" "buildStdenv.hostPlatform.is"
fd --type f "\.nix" | xargs sd --fixed-strings "effectiveStdenv.is" "effectiveStdenv.hostPlatform.is"
fd --type f "\.nix" | xargs sd --fixed-strings "originalStdenv.is" "originalStdenv.hostPlatform.is"
```
2024-09-25 00:04:37 +03:00
Morgan Jones
880bea37bd
dwarf-fortress: fix eval on darwin 2024-07-07 15:39:30 -07:00
Morgan Jones
bbc4836a61
dwarf-therapist: remove texlive build-input 2024-05-05 23:43:16 -07:00
Morgan Jones
c2f77d2e09
dwarf-fortress: 50.12 -> 50.13
- dwarf-fortress: 50.12 -> 50.13
- dfhack: init 50.13-r1.1
- dwarf-therapist: 42.1.5 -> 42.1.6
2024-05-05 21:32:29 -07:00
Morgan Jones
91899502a0
dwarf-fortress: address code review feedback 2024-04-11 20:05:50 -07:00
Morgan Jones
e73e690717
dwarf-fortress: update to 50 2024-04-11 20:05:50 -07:00
Philip Taron
8f49dedbcb Avoid top-level with ...; in pkgs/games/dwarf-fortress/default.nix 2024-03-31 00:42:56 +01:00
Vincenzo Mantova
8ada8e2b25 dwarf-fortress: replace texlive.combine with texliveBasic.withPackages 2023-11-05 11:56:05 +00:00
Naïm Favier
839fdd101c
dwarf-fortress.dfhack: make overridable
Currently, it is quite hard to override anything about dfhack (for
example, to add plugins at build time), because

1. it is not exposed anywhere, so you have to do something like
   `dwarf-fortress.override (oldArgs: { dfhack = oldArgs.dfhack.override...; })`
2. the final `dfhack` derivation is a `buildEnv`, so `overrideAttrs`
   doesn't work as expected.

This fixes 1 by adding `dfhack` to the wrapper's `passthru`, and 2 by
moving `twbt.lib` (which is the only reason for the dfhack `buildEnv`)
into the wrapper.

Also adds an `extraPackages` argument to the wrapper, and copies `*.init`
files from the env to the DF directory so that we can easily add a
`dfhack.init`.

With these changes, I was able to build dfhack with the dfplex plugin.
2022-11-17 00:06:31 +01:00
Sandro Jäckel
bacd02c315
dwarf-fortress: misc cleanup 2022-10-27 18:57:12 +02:00
Sandro Jäckel
cdfd73026a
dwarf-fortress-unfuck: don't overwrite to null on none linux platforms 2022-10-27 18:55:04 +02:00
Sandro Jäckel
8547db919a
treewide: switch `builtins.fromJSON(builtins.readFile ./file.json)` to lib.importJSON ./file.json 2021-11-03 14:43:52 +01:00
Jonathan Ringer
4cc7482b21 dwarf-fortress: 0.47.04 -> 0.47.05 2021-07-11 21:03:43 -07:00
Artturin
cd3ed54f6e dwarf-fortress: refactor 2021-06-30 00:10:57 -07:00
Gabriel Ebner
cdcdeb63b2 dwarf-fortress: use jdk8 2020-09-19 14:06:15 +02:00
Jonathan Ringer
c9f216d5d5 dwarf-fortress: 0.47.02 -> 0.47.04 2020-03-13 14:46:55 -07:00
Jonathan Ringer
d2b745d617 dwarf-fortress: 0.44.12 -> 0.47.02 2020-02-14 12:50:12 -08:00
volth
f3282c8d1e treewide: remove unused variables (#63177)
* treewide: remove unused variables

* making ofborg happy
2019-06-16 19:59:05 +00:00
Nikolay Amiantov
ccbb08ed88 dwarf-fortress-packages.dwarf-therapist-original: expose to package set
Needed for it to be built on Hydra.
2019-06-10 18:52:52 +03:00
Morgan Jones
fe847fcc92 Therapist needs to depend on the DF version, since it uses its MD5 2018-09-09 06:59:58 +00:00
Morgan Jones
7a5521537a Let the user override dfVersion in dwarf-fortress-full 2018-09-09 06:59:58 +00:00
Morgan Jones
4ada74e293 dwarf-fortress: Support multiple unfuck/dfhack/TWBT versions 2018-09-09 06:59:41 +00:00
Herwig Hochleitner
da9da8defd dwarf-fortess: make 0.44.12 the default version
all necessary support packages seem to have caught up

cc  @matthewbauer @Baughn @volth
2018-08-17 12:48:59 +02:00
volth
52f53c69ce pkgs/*: remove unreferenced function arguments 2018-07-21 02:48:04 +00:00
Matthew Bauer
3108f1eeaf Merge remote-tracking branch 'Baughn/nix-df' into dwarf-fortress 2018-07-09 16:24:21 -04:00
Matthew Bauer
812b0ec62e dwarf-fortress: recurse into themes
Now the output of “nix-env” should be:

$ nix-env -qa -f . -A dwarf-fortress-packages
afro-graphics-44.10
autoreiv-44.03
cla-44.xx-v25
dwarf-fortress-0.43.05
dwarf-fortress-0.44.05
dwarf-fortress-0.44.09
dwarf-fortress-0.44.10
dwarf-fortress-0.44.11
dwarf-fortress-0.44.12
dwarf-therapist-40.1.0
gemset-44.10a
ironhand-44.10
jolly-bastion-44.10
legends-browser-1.17.1
mayday-44.10
obsidian-44.10
phoebus-44.10
rally-ho-44.10
soundsense-2016-1_196
spacefox-44.10a
taffer-44.10a
tergel-44.03
wanderlust-44.10
2018-07-09 16:18:17 -04:00
Matthew Bauer
530427c7ab dwarf-fortress: refactors
This will make it easier for people to access old versions.

You can now access attributes like:

- dwarf-fortress_0_44_11
- dwarf-fortress_0_43_05
- etc.
2018-07-09 16:13:52 -04:00
Matthew Bauer
cdd0ac7e54 dwarf-fortress: support older versions as well
game.json now contains a dictionary of old game hashes. I have added
them for the last 3 releases.

- add script to generate hashes

  Makes it much easier to update game.json file.

- add updateScript meta

  This adds some info on the ./update.sh updateScript now available.

- cleanup updateScript

  - Add some more systems
  - Correctly detect source extensions (.zip or .tar.bz2)
  - Proper bash quoting

- fix update.sh

  - correctly detect latest df version
  - append to game.json instead of overwriting it

- update hashes for 44.12
2018-07-09 16:13:53 -04:00
Svein Ove Aas
b0c7245ee5 dwarf-fortress: Add "lazy pack", config flags and some comments. 2018-07-05 20:48:52 +01:00
Svein Ove Aas
5012ce727a dwarf-fortress: Init TWBT at 6.46 2018-07-05 20:21:59 +01:00
Matthew Bauer
ea6b31b496
Merge pull request #43043 from Baughn/nix-df
dwarf-fortress: Fix themes & package Legends Browser
2018-07-04 17:41:06 -04:00
Svein Ove Aas
c8095af0cd dwarf-fortress: Init Legends Browser at 1.17.1 2018-07-04 22:26:23 +01:00
Morgan Jones
8d5b5fa68e Patch dwarf-fortress-unfuck to build in debug (pending upstream fix) 2018-07-01 20:28:59 +00:00
Morgan Jones
9a2898c6d1 bump dwarf-therapist and dfhack versions; fix theme issue 2018-06-30 23:29:29 +00:00
Matthew Bauer
91184d159d dwarf-fortress: move themes to .json file
This will make it easier to automate.
2018-06-06 19:19:29 -04:00
Matthew Bauer
236b89afeb dwarf-fortress: supports darwin 2018-05-10 23:58:12 -05:00
Herwig Hochleitner
bccd410e78 dwarf-fortress-packages.stoneSense: remove vestigial package
To use stonesense, build dwarf-fortress with `enableDFHack=true` and
`enableStoneSense=true`, then type `ssense` into the dfhack console.

This partially reverts commit 85056ee698
2017-12-03 12:22:13 +01:00
Herwig Hochleitner
85056ee698 dwarf-fortress-packages.dfhack: add stoneSense support 2017-10-28 14:55:25 +02:00
Herwig Hochleitner
24ea093806 dwarf-fortress-packages.soundSense: init 2016-1_196 2017-10-28 14:55:20 +02:00
Nikolay Amiantov
8f63cc6d25 dwarf-fortress: remove unused oldAbiStdenv 2016-11-24 03:11:48 +03:00
Nikolay Amiantov
714cf7803c dwarf-fortress.dfhack: enable 64-bit build, fix segfault 2016-11-24 03:10:43 +03:00
Nikolay Amiantov
a6fd30822f dwarf-fortress-packages.dfhack: 0.43.03-r1 -> 0.43.05-alpha2 2016-11-24 01:17:56 +03:00
Nikolay Amiantov
b940a098ec dwarf-fortress-packages.dwarf-fortress-original: 0.42.06 -> 0.43.05 2016-08-14 22:37:08 +03:00
Nikolay Amiantov
0f3da54924 dwarf-fortress-packages.dwarf-fortress-unfuck: 2016-04-22 -> 2016-07-13 2016-08-14 22:37:08 +03:00
Nikolay Amiantov
37d641ff3d dfhack: use protobuf compiled with old ABI 2016-04-14 17:30:40 +03:00
Nikolay Amiantov
414dbc6dd9 dwarf-fortress-packages.dwarf-therapist: 36.0.0 -> 37.0.0 2016-03-04 14:42:37 +03:00
Nikolay Amiantov
99f4f1d7ef dwarf-fortress-packages.cla-theme: init at 20160128 2016-02-10 16:56:41 +03:00
Nikolay Amiantov
d3b642ce9a dwarf-fortress-wrapper: add themes support
Theme can be specified either as a derivation or as a string, in which
case it will be taken by name from a pre-defined set of themes available in
nixpkgs.
2016-01-26 03:06:07 +03:00
Nikolay Amiantov
7fe01a7279 phoebus-theme: update for 0.42.05, make a derivation
Also specify license, see https://github.com/fricy/Phoebus/issues/5
2016-01-26 03:05:50 +03:00
Nikolay Amiantov
fdae86fb4e dwarf-therapist: 31.0.0 -> 36.0.0 2016-01-26 03:05:38 +03:00