summary refs log blame commit diff
path: root/pkgs/tools/misc/stow/default.nix
blob: 05a8fab58d15e8feac3ddc64ba876f335ee15be1 (plain) (tree)
1
2
3
4
5
6
7
8
9
10
                                              
 
   
                 
                    
  
                     
                               

                  
                                                      
                                                                    

    
                                                                 
 


                 
                                                                                                                           










                                                                      
                                    
                                                    
                                  

    
{ lib, stdenv, fetchurl, perl, perlPackages }:

let
  pname = "stow";
  version = "2.3.1";
in
stdenv.mkDerivation {
  name = "${pname}-${version}";

  src = fetchurl {
    url = "mirror://gnu/stow/stow-${version}.tar.bz2";
    sha256 = "0bs2b90wjkk1camcasy8kn403kazq6c7fj5m5msfl3navbgwz9i6";
  };

  buildInputs = with perlPackages; [ perl IOStringy TestOutput ];

  doCheck = true;

  meta = {
    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.
    '';

    license = lib.licenses.gpl3Plus;
    homepage = "https://www.gnu.org/software/stow/";
    platforms = lib.platforms.all;
  };
}