mirror of
https://github.com/NixOS/nixpkgs.git
synced 2024-11-29 10:23:29 +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.
51 lines
1.5 KiB
Nix
51 lines
1.5 KiB
Nix
{ lib, stdenv, fetchurl, SDL2, ftgl, pkg-config, libpng, libjpeg, pcre2
|
|
, SDL2_image, freetype, glew, libGLU, libGL, boost, glm, tinyxml
|
|
}:
|
|
|
|
stdenv.mkDerivation rec {
|
|
pname = "gource";
|
|
version = "0.55";
|
|
|
|
src = fetchurl {
|
|
url = "https://github.com/acaudwell/Gource/releases/download/${pname}-${version}/${pname}-${version}.tar.gz";
|
|
hash = "sha256-yCOSEtKLB1CNnkd2GZdoAmgWKPwl6z4E9mcRdwE8AUI=";
|
|
};
|
|
|
|
postPatch = ''
|
|
# remove bundled library
|
|
rm -r src/tinyxml
|
|
'';
|
|
|
|
nativeBuildInputs = [ pkg-config ];
|
|
buildInputs = [
|
|
glew SDL2 ftgl libpng libjpeg pcre2 SDL2_image libGLU libGL
|
|
boost glm freetype tinyxml
|
|
];
|
|
|
|
configureFlags = [
|
|
"--with-boost-libdir=${boost.out}/lib"
|
|
"--with-tinyxml"
|
|
];
|
|
|
|
enableParallelBuilding = true;
|
|
|
|
meta = with lib; {
|
|
homepage = "https://gource.io/";
|
|
description = "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 ];
|
|
mainProgram = "gource";
|
|
};
|
|
}
|