2024-04-21 15:54:59 +00:00
|
|
|
{ lib
|
|
|
|
, stdenv
|
|
|
|
, fetchurl
|
|
|
|
, perl
|
|
|
|
, perlPackages
|
|
|
|
}:
|
2020-04-24 23:36:52 +00:00
|
|
|
|
2024-04-21 15:54:59 +00:00
|
|
|
stdenv.mkDerivation (finalAttrs: {
|
2020-04-24 23:36:52 +00:00
|
|
|
pname = "stow";
|
2024-04-21 15:54:59 +00:00
|
|
|
version = "2.4.0";
|
2020-04-24 23:36:52 +00:00
|
|
|
|
|
|
|
src = fetchurl {
|
2024-04-21 15:54:59 +00:00
|
|
|
url = "mirror://gnu/stow/stow-${finalAttrs.version}.tar.bz2";
|
|
|
|
hash = "sha256-p7rGc9qiRs9U/7SKET6t0gSmFWMOdrU7X2TYGidbd7M=";
|
2020-04-24 23:36:52 +00:00
|
|
|
};
|
|
|
|
|
|
|
|
buildInputs = with perlPackages; [ perl IOStringy TestOutput ];
|
|
|
|
|
|
|
|
doCheck = true;
|
|
|
|
|
2022-07-18 16:21:45 +00:00
|
|
|
meta = with lib; {
|
2020-04-24 23:36:52 +00:00
|
|
|
description = "A 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.
|
|
|
|
'';
|
|
|
|
|
2022-07-18 16:21:45 +00:00
|
|
|
license = licenses.gpl3Plus;
|
2020-04-24 23:36:52 +00:00
|
|
|
homepage = "https://www.gnu.org/software/stow/";
|
2022-07-18 16:21:45 +00:00
|
|
|
maintainers = with maintainers; [ sarcasticadmin ];
|
|
|
|
platforms = platforms.all;
|
2020-04-24 23:36:52 +00:00
|
|
|
};
|
2024-04-21 15:54:59 +00:00
|
|
|
})
|