nixpkgs/pkgs/applications/version-management/gource/default.nix
Profpatsch 4a7f99d55d treewide: with stdenv.lib; in meta -> with lib;
Part of: https://github.com/NixOS/nixpkgs/issues/108938

meta = with stdenv.lib;

is a widely used pattern. We want to slowly remove
the `stdenv.lib` indirection and encourage people
to use `lib` directly. Thus let’s start with the meta
field.

This used a rewriting script to mostly automatically
replace all occurances of this pattern, and add the
`lib` argument to the package header if it doesn’t
exist yet.

The script in its current form is available at
https://cs.tvl.fyi/depot@2f807d7f141068d2d60676a89213eaa5353ca6e0/-/blob/users/Profpatsch/nixpkgs-rewriter/default.nix
2021-01-11 10:38:22 +01:00

42 lines
1.4 KiB
Nix

{ lib, stdenv, fetchurl, SDL2, ftgl, pkgconfig, libpng, libjpeg, pcre
, SDL2_image, freetype, glew, libGLU, libGL, boost, glm
}:
stdenv.mkDerivation rec {
version = "0.51";
pname = "gource";
src = fetchurl {
url = "https://github.com/acaudwell/Gource/releases/download/${pname}-${version}/${pname}-${version}.tar.gz";
sha256 = "16p7b1x4r0915w883lp374jcdqqja37fnb7m8vnsfnl2n64gi8qr";
};
nativeBuildInputs = [ pkgconfig ];
buildInputs = [
glew SDL2 ftgl libpng libjpeg pcre SDL2_image libGLU libGL
boost glm freetype
];
configureFlags = [ "--with-boost-libdir=${boost.out}/lib" ];
enableParallelBuilding = true;
meta = with lib; {
homepage = "https://gource.io/";
description = "A Software version control visualization tool";
license = licenses.gpl3Plus;
longDescription = ''
Software projects are displayed by Gource as an animated tree with
the root directory of the project at its centre. Directories
appear as branches with files as leaves. Developers can be seen
working on the tree at the times they contributed to the project.
Currently Gource includes built-in log generation support for Git,
Mercurial and Bazaar and SVN. Gource can also parse logs produced
by several third party tools for CVS repositories.
'';
platforms = platforms.unix;
maintainers = with maintainers; [ pSub ];
};
}