nixpkgs/pkgs/by-name/xc/xcruiser/package.nix
aleksana 571c71e6f7 treewide: migrate packages to pkgs/by-name, take 1
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.
2024-11-09 20:04:51 +08:00

46 lines
1.4 KiB
Nix

{ lib, stdenv, fetchurl, gccmakedep, imake, libXt, libXaw, libXpm, libXext, copyDesktopItems, makeDesktopItem }:
stdenv.mkDerivation rec {
pname = "xcruiser";
version = "0.30";
src = fetchurl {
url = "mirror://sourceforge/xcruiser/xcruiser/xcruiser-${version}/xcruiser-${version}.tar.gz";
sha256 = "1r8whva38xizqdh7jmn6wcmfmsndc67pkw22wzfzr6rq0vf6hywi";
};
nativeBuildInputs = [ gccmakedep imake copyDesktopItems ];
buildInputs = [ libXt libXaw libXpm libXext ];
makeFlags = [
"BINDIR=${placeholder "out"}/bin"
"CONFDIR=${placeholder "out"}/etc/X11"
"LIBDIR=${placeholder "out"}/lib/X11"
"XAPPLOADDIR=${placeholder "out"}/etc/X11/app-defaults"
];
desktopItems = [
(makeDesktopItem {
name = "XCruiser";
exec = "xcruiser";
desktopName = "XCruiser";
comment = "filesystem visualization utility";
categories = [ "Utility" ];
})
];
meta = with lib; {
description = "Filesystem visualization utility";
longDescription = ''
XCruiser, formerly known as XCruise, is a filesystem visualization utility.
It constructs a virtually 3-D formed universe from a directory
tree and allows you to "cruise" within a visualized filesystem.
'';
homepage = "https://xcruiser.sourceforge.net/";
license = licenses.gpl2;
maintainers = with maintainers; [ ehmry ];
platforms = with platforms; linux;
mainProgram = "xcruiser";
};
}