diff options
author | Arnout Engelen <arnout@bzzt.net> | 2020-08-16 12:14:37 +0200 |
---|---|---|
committer | Arnout Engelen <arnout@bzzt.net> | 2020-08-17 08:42:08 +0200 |
commit | 0e725da522e0861c4ad70a63061226d983f2c4b6 (patch) | |
tree | a48789e09835e51a9e4e0a2bcb8cf71d8ac0c32f /pkgs/applications/graphics/qosmic | |
parent | c8003b550a28e320b1b484ae98b2b4bbeb614978 (diff) | |
download | nixpkgs-0e725da522e0861c4ad70a63061226d983f2c4b6.tar nixpkgs-0e725da522e0861c4ad70a63061226d983f2c4b6.tar.gz nixpkgs-0e725da522e0861c4ad70a63061226d983f2c4b6.tar.bz2 nixpkgs-0e725da522e0861c4ad70a63061226d983f2c4b6.tar.lz nixpkgs-0e725da522e0861c4ad70a63061226d983f2c4b6.tar.xz nixpkgs-0e725da522e0861c4ad70a63061226d983f2c4b6.tar.zst nixpkgs-0e725da522e0861c4ad70a63061226d983f2c4b6.zip |
qosmic: init at 1.6.0
Co-Authored-By: Jan Tojnar <jtojnar@gmail.com>
Diffstat (limited to 'pkgs/applications/graphics/qosmic')
-rw-r--r-- | pkgs/applications/graphics/qosmic/default.nix | 70 |
1 files changed, 70 insertions, 0 deletions
diff --git a/pkgs/applications/graphics/qosmic/default.nix b/pkgs/applications/graphics/qosmic/default.nix new file mode 100644 index 00000000000..96823441b6e --- /dev/null +++ b/pkgs/applications/graphics/qosmic/default.nix @@ -0,0 +1,70 @@ +{ mkDerivation +, fetchFromGitHub +, fetchpatch +, qmake +, wrapQtAppsHook +, qtbase +, pkg-config +, lua +, flam3 +, libxml2 +, libpng +, libjpeg +, lib +}: + +mkDerivation rec { + pname = "qosmic"; + version = "1.6.0"; + + src = fetchFromGitHub { + owner = "bitsed"; + repo = "qosmic"; + rev = "v${version}"; + sha256 = "13nw1mkdib14430r21mj352v62vi546vf184vyhxm7yjjygyra1w"; + }; + + patches = [ + # Allow overriding PREFIX (to install to $out, + # written while creating this derivation) + # https://github.com/bitsed/qosmic/pull/39 + (fetchpatch { + name = "allow-overriding-PREFIX.patch"; + url = "https://github.com/bitsed/qosmic/commit/77fb3a577b0710efae2a1d9ed97c26ae16f3a5ba.patch"; + sha256 = "0v9hj9s78cb6bg8ca0wjkbr3c7ml1n51n8h4a70zpzzgzz7rli5b"; + }) + # Fix QButtonGroup include errors with Qt 5.11: + # Will be part of the next post-1.6.0 release + (fetchpatch { + name = "fix-class-QButtonGroup-include-errors-with-Qt-5.11.patch"; + url = "https://github.com/bitsed/qosmic/commit/3f6e1ea8d384a124dbc2d568171a4da798480752.patch"; + sha256 = "0bp6b759plkqs32nvfpkfvf3qqzc9716k3ycwnjvwabbvpg1xwbl"; + }) + ]; + + nativeBuildInputs = [ qmake wrapQtAppsHook pkg-config ]; + + buildInputs = [ + qtbase + lua + flam3 + libxml2 + libpng + libjpeg + ]; + + qmakeFlags = [ + # Use pkg-config to correctly locate library paths + "-config" "link_pkgconfig" + ]; + + meta = with lib; { + description = "A cosmic recursive flame fractal editor"; + homepage = "https://github.com/bitsed/qosmic"; + license = licenses.gpl3Plus; + maintainers = [ maintainers.raboof ]; + # It might be possible to make it work on OSX, + # but this has not been tested. + platforms = platforms.linux; + }; +} |