mirror of
https://github.com/kmein/niveum
synced 2026-03-16 10:11:08 +01:00
morris: package
This commit is contained in:
44
packages/morris.nix
Normal file
44
packages/morris.nix
Normal 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;
|
||||
};
|
||||
})
|
||||
Reference in New Issue
Block a user