mirror of
https://github.com/NixOS/nixpkgs.git
synced 2024-11-23 15:33:13 +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.
63 lines
1.3 KiB
Nix
63 lines
1.3 KiB
Nix
{ lib
|
|
, stdenv
|
|
, fetchFromGitHub
|
|
, meson
|
|
, ninja
|
|
, pkg-config
|
|
, cglm
|
|
, gtk3
|
|
, libepoxy
|
|
, libGLU
|
|
}:
|
|
|
|
stdenv.mkDerivation rec {
|
|
pname = "fsv";
|
|
version = "3.0";
|
|
|
|
src = fetchFromGitHub {
|
|
owner = "jabl";
|
|
repo = "fsv";
|
|
rev = "${pname}-${version}";
|
|
hash = "sha256-fxsA3qcBPvK4H5P4juGTe6eg1lkygvzFpNW36B9lsE4=";
|
|
};
|
|
|
|
nativeBuildInputs = [
|
|
meson
|
|
ninja
|
|
pkg-config
|
|
];
|
|
|
|
buildInputs = [
|
|
cglm
|
|
gtk3
|
|
libepoxy
|
|
libGLU
|
|
];
|
|
|
|
installPhase = ''
|
|
runHook preInstall
|
|
|
|
mkdir -p $out/bin
|
|
cp src/fsv $out/bin/fsv
|
|
|
|
runHook postInstall
|
|
'';
|
|
|
|
meta = with lib; {
|
|
description = "File system visualizer in cyberspace";
|
|
longDescription = ''
|
|
fsv (pronounced eff-ess-vee) is a file system visualizer in cyberspace.
|
|
It lays out files and directories in three dimensions, geometrically
|
|
representing the file system hierarchy to allow visual overview
|
|
and analysis. fsv can visualize a modest home directory, a workstation's
|
|
hard drive, or any arbitrarily large collection of files, limited only
|
|
by the host computer's memory and graphics hardware.
|
|
'';
|
|
homepage = "https://github.com/jabl/fsv";
|
|
license = licenses.lgpl2;
|
|
platforms = platforms.linux;
|
|
maintainers = with maintainers; [ rnhmjoj ];
|
|
mainProgram = "fsv";
|
|
};
|
|
}
|