forked from mirrors/nixpkgs
18f3e11880
Meson no longer propagates it so we need to re-add it.
38 lines
1.1 KiB
Nix
38 lines
1.1 KiB
Nix
{ stdenv, fetchurl, meson, ninja, pkgconfig, wrapGAppsHook, python3
|
|
, gettext, gnome3, glib, gtk3, libgnome-games-support, gdk_pixbuf }:
|
|
|
|
let
|
|
pname = "atomix";
|
|
version = "3.29.3";
|
|
in stdenv.mkDerivation rec {
|
|
name = "${pname}-${version}";
|
|
|
|
src = fetchurl {
|
|
url = "mirror://gnome/sources/${pname}/${stdenv.lib.versions.majorMinor version}/${name}.tar.xz";
|
|
sha256 = "1k8bvwywpvw5f13pw40brk6c3rz2mdz9cd4zhcawg7qdm77dvcvb";
|
|
};
|
|
|
|
nativeBuildInputs = [ meson ninja pkgconfig gettext wrapGAppsHook python3 ];
|
|
buildInputs = [ glib gtk3 gdk_pixbuf libgnome-games-support gnome3.defaultIconTheme ];
|
|
|
|
postPatch = ''
|
|
chmod +x meson_post_install.py
|
|
patchShebangs meson_post_install.py
|
|
'';
|
|
|
|
passthru = {
|
|
updateScript = gnome3.updateScript {
|
|
packageName = pname;
|
|
attrPath = "gnome3.${pname}";
|
|
};
|
|
};
|
|
|
|
meta = with stdenv.lib; {
|
|
description = "Puzzle game where you move atoms to build a molecule";
|
|
homepage = https://wiki.gnome.org/Apps/Atomix;
|
|
license = licenses.gpl2Plus;
|
|
maintainers = gnome3.maintainers;
|
|
platforms = platforms.linux;
|
|
};
|
|
}
|