mirror of
https://github.com/NixOS/nixpkgs.git
synced 2024-11-22 15:03:28 +00:00
4a7f99d55d
Part of: https://github.com/NixOS/nixpkgs/issues/108938 meta = with stdenv.lib; is a widely used pattern. We want to slowly remove the `stdenv.lib` indirection and encourage people to use `lib` directly. Thus let’s start with the meta field. This used a rewriting script to mostly automatically replace all occurances of this pattern, and add the `lib` argument to the package header if it doesn’t exist yet. The script in its current form is available at https://cs.tvl.fyi/depot@2f807d7f141068d2d60676a89213eaa5353ca6e0/-/blob/users/Profpatsch/nixpkgs-rewriter/default.nix
41 lines
1.1 KiB
Nix
41 lines
1.1 KiB
Nix
{ lib, stdenv, fetchFromGitHub, qtbase, openscenegraph, mygui, bullet, ffmpeg_3
|
|
, boost, cmake, SDL2, unshield, openal, libXt, pkg-config }:
|
|
|
|
let
|
|
openscenegraph_ = openscenegraph.overrideDerivation (self: {
|
|
src = fetchFromGitHub {
|
|
owner = "OpenMW";
|
|
repo = "osg";
|
|
rev = "1556cd7966ebc1c80b6626988d2b25fb43a744cf";
|
|
sha256 = "0d74hijzmj82nx3jkv5qmr3pkgvplra0b8fbjx1y3vmzxamb0axd";
|
|
};
|
|
});
|
|
in
|
|
|
|
stdenv.mkDerivation rec {
|
|
version = "0.46.0";
|
|
pname = "openmw";
|
|
|
|
src = fetchFromGitHub {
|
|
owner = "OpenMW";
|
|
repo = "openmw";
|
|
rev = "${pname}-${version}";
|
|
sha256 = "0rm32zsmxvr6b0jjihfj543skhicbw5kg6shjx312clhlm035w2x";
|
|
};
|
|
|
|
nativeBuildInputs = [ cmake pkg-config ];
|
|
buildInputs = [ boost ffmpeg_3 bullet mygui openscenegraph_ SDL2 unshield openal libXt qtbase ];
|
|
|
|
cmakeFlags = [
|
|
"-DDESIRED_QT_VERSION:INT=5"
|
|
];
|
|
|
|
meta = with lib; {
|
|
description = "An unofficial open source engine reimplementation of the game Morrowind";
|
|
homepage = "http://openmw.org";
|
|
license = licenses.gpl3Plus;
|
|
platforms = platforms.linux;
|
|
maintainers = with maintainers; [ abbradar ];
|
|
};
|
|
}
|