mirror of
https://github.com/NixOS/nixpkgs.git
synced 2025-01-04 03:53:56 +00:00
571c71e6f7
We are migrating packages that meet below requirements: 1. using `callPackage` 2. called path is a directory 3. overriding set is empty (`{ }`) 4. not containing path expressions other than relative path (to makenixpkgs-vet happy) 5. not referenced by nix files outside of the directory, other than`pkgs/top-level/all-packages.nix` 6. not referencing nix files outside of the directory 7. not referencing `default.nix` (since it's changed to `package.nix`) 8. `outPath` doesn't change after migration The tool is here: https://github.com/Aleksanaa/by-name-migrate.
40 lines
1.4 KiB
Nix
40 lines
1.4 KiB
Nix
{lib, stdenv, fetchurl, fetchpatch, pkg-config, freetype, pango, libpng, libtiff
|
|
, giflib, libjpeg, netpbm}:
|
|
|
|
stdenv.mkDerivation rec {
|
|
pname = "xplanet";
|
|
version = "1.3.1";
|
|
|
|
src = fetchurl {
|
|
url = "mirror://sourceforge/xplanet/${pname}-${version}.tar.gz";
|
|
sha256 = "1rzc1alph03j67lrr66499zl0wqndiipmj99nqgvh9xzm1qdb023";
|
|
};
|
|
|
|
nativeBuildInputs = [ pkg-config ];
|
|
buildInputs = [ freetype pango libpng libtiff giflib libjpeg netpbm ];
|
|
|
|
patches = [
|
|
(fetchpatch {
|
|
name = "giflib6.patch";
|
|
url = "https://raw.githubusercontent.com/archlinux/svntogit-community/ce6f25eb369dc011161613894f01fd0a6ae85a09/trunk/giflib6.patch";
|
|
sha256 = "173l0xkqq0v2bpaff7hhwc7y2aw5cclqw8988k1nalhyfbrjb8bl";
|
|
})
|
|
(fetchpatch {
|
|
name = "xplanet-c++11.patch";
|
|
url = "https://raw.githubusercontent.com/archlinux/svntogit-community/ce6f25eb369dc011161613894f01fd0a6ae85a09/trunk/xplanet-c++11.patch";
|
|
sha256 = "0vldai78ixw49bxch774pps6pq4sp0p33qvkvxywcz7p8kzpg8q2";
|
|
})
|
|
];
|
|
|
|
env.NIX_CFLAGS_COMPILE = lib.optionalString stdenv.cc.isClang "-Wno-error=c++11-narrowing";
|
|
|
|
meta = with lib; {
|
|
description = "Renders an image of the earth or other planets into the X root window";
|
|
mainProgram = "xplanet";
|
|
homepage = "https://xplanet.sourceforge.net";
|
|
license = licenses.gpl2;
|
|
maintainers = with maintainers; [ lassulus sander ];
|
|
platforms = platforms.all;
|
|
};
|
|
}
|