nixpkgs/pkgs/by-name/st/stow/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

40 lines
1.2 KiB
Nix

{ lib
, stdenv
, fetchurl
, perlPackages
}:
stdenv.mkDerivation (finalAttrs: {
pname = "stow";
version = "2.4.1";
src = fetchurl {
url = "mirror://gnu/stow/stow-${finalAttrs.version}.tar.bz2";
hash = "sha256-DYWoUTZ355I2l7zkLNuzPStXr5FaveHQZx566Asu8LQ=";
};
nativeBuildInputs = [ perlPackages.perl ];
buildInputs = with perlPackages; [ perl IOStringy TestOutput ];
doCheck = true;
meta = with lib; {
description = "Tool for managing the installation of multiple software packages in the same run-time directory tree";
longDescription = ''
GNU Stow is a symlink farm manager which takes distinct packages
of software and/or data located in separate directories on the
filesystem, and makes them appear to be installed in the same
place. For example, /usr/local/bin could contain symlinks to
files within /usr/local/stow/emacs/bin, /usr/local/stow/perl/bin
etc., and likewise recursively for any other subdirectories such
as .../share, .../man, and so on.
'';
license = licenses.gpl3Plus;
homepage = "https://www.gnu.org/software/stow/";
maintainers = with maintainers; [ sarcasticadmin ];
platforms = platforms.all;
};
})