1
0
mirror of https://github.com/kmein/niveum synced 2026-03-16 10:11:08 +01:00

morris: package

This commit is contained in:
2025-12-27 17:09:25 +01:00
parent 624df65fee
commit b82636ff12
2 changed files with 46 additions and 0 deletions

View File

@@ -206,6 +206,7 @@
final.mpvScripts.mpris
];
};
morris = prev.callPackage packages/morris.nix { };
cro = prev.callPackage packages/cro.nix { };
dmenu = prev.writers.writeDashBin "dmenu" ''exec ${final.rofi}/bin/rofi -dmenu "$@"'';
weechatScripts = prev.weechatScripts // {
@@ -498,6 +499,7 @@
man-pdf
mansplain
manual-sort
morris
mpv-iptv
mpv-radio
mpv-tuner

44
packages/morris.nix Normal file
View File

@@ -0,0 +1,44 @@
{
stdenv,
boost,
gtk2,
gettext,
intltool,
fetchurl,
pkg-config,
wrapGAppsHook3,
lib,
}:
stdenv.mkDerivation (finalAttrs: {
pname = "morris";
version = "0.3";
src = fetchurl {
url = "https://nine-mens-morris.net/data/morris-${finalAttrs.version}.tar.bz2";
hash = "sha256-f1kOpYB1oXOAKqwb1ya0jfJA5vqxA+v8MjEZ1zPPutM=";
};
nativeBuildInputs = [
pkg-config
gettext
intltool
wrapGAppsHook3
];
buildInputs = [
boost
gtk2
];
# Help configure find Boost headers
configureFlags = [
"--with-boost=${boost.dev}"
"--with-boost-libdir=${boost.out}/lib"
];
meta = with lib; {
description = "Nine Men's Morris game";
homepage = "https://github.com/farindk/morris";
license = licenses.gpl3Plus;
platforms = platforms.linux;
};
})