2019-06-29 15:46:31 +01:00
|
|
|
{ stdenv, fetchurl, perl, perlPackages, makeWrapper }:
|
2013-09-05 11:03:02 +01:00
|
|
|
|
2016-05-30 13:39:29 +01:00
|
|
|
let
|
2019-06-29 15:46:31 +01:00
|
|
|
pname = "stow";
|
|
|
|
version = "2.3.0";
|
2016-05-30 13:39:29 +01:00
|
|
|
in
|
2013-09-05 11:03:02 +01:00
|
|
|
stdenv.mkDerivation {
|
2019-06-29 15:46:31 +01:00
|
|
|
name = "${pname}-${version}";
|
2013-09-05 11:03:02 +01:00
|
|
|
|
|
|
|
src = fetchurl {
|
2016-05-30 13:39:29 +01:00
|
|
|
url = "mirror://gnu/stow/stow-${version}.tar.bz2";
|
2019-06-29 15:46:31 +01:00
|
|
|
sha256 = "1fnn83wwx3yaxpqkq8xyya3aiibz19fwrfj30nsiikm7igmwgiv5";
|
2013-09-05 11:03:02 +01:00
|
|
|
};
|
|
|
|
|
2019-06-29 15:46:31 +01:00
|
|
|
nativeBuildInputs = [ makeWrapper ];
|
|
|
|
buildInputs = with perlPackages; [ perl IOStringy TestOutput HashMerge Clone CloneChoose ];
|
|
|
|
|
|
|
|
postFixup = ''
|
|
|
|
wrapProgram "$out"/bin/stow \
|
|
|
|
--set PERL5LIB "$out/lib/perl5/site_perl:${with perlPackages; makePerlPath [
|
|
|
|
HashMerge Clone CloneChoose
|
|
|
|
]}"
|
|
|
|
'';
|
2015-06-26 03:28:04 +01:00
|
|
|
|
2013-09-05 11:03:02 +01:00
|
|
|
doCheck = true;
|
|
|
|
|
|
|
|
meta = {
|
2013-09-26 20:37:49 +01:00
|
|
|
description = "A tool for managing the installation of multiple software packages in the same run-time directory tree";
|
2013-09-05 11:03:02 +01:00
|
|
|
|
|
|
|
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.
|
|
|
|
'';
|
|
|
|
|
2014-06-19 05:19:00 +01:00
|
|
|
license = stdenv.lib.licenses.gpl3Plus;
|
2018-12-01 18:22:13 +00:00
|
|
|
homepage = https://www.gnu.org/software/stow/;
|
2013-09-05 11:03:02 +01:00
|
|
|
|
2019-03-12 22:45:33 +00:00
|
|
|
maintainers = with stdenv.lib.maintainers; [ the-kenny ];
|
2013-09-05 11:03:02 +01:00
|
|
|
platforms = stdenv.lib.platforms.all;
|
|
|
|
};
|
|
|
|
}
|