2021-01-11 08:54:33 +01:00
|
|
|
{ fetchurl, lib, stdenv }:
|
2014-07-08 19:19:15 +02:00
|
|
|
|
|
|
|
stdenv.mkDerivation rec {
|
2019-08-15 14:41:18 +02:00
|
|
|
pname = "symlinks";
|
2018-01-07 10:11:43 +01:00
|
|
|
version = "1.4.3";
|
2014-07-08 19:19:15 +02:00
|
|
|
|
|
|
|
src = fetchurl {
|
2018-01-07 10:11:43 +01:00
|
|
|
url = "https://github.com/brandt/symlinks/archive/v${version}.tar.gz";
|
|
|
|
sha256 = "1cihrd3dap52z1msdhhgda7b7wy1l5ysfvyba8yxb3zjk0l5n417";
|
2014-07-08 19:19:15 +02:00
|
|
|
};
|
|
|
|
|
2018-01-07 10:11:43 +01:00
|
|
|
buildFlags = [ "CC=${stdenv.cc}/bin/cc" ];
|
|
|
|
|
2014-07-08 19:19:15 +02:00
|
|
|
installPhase = ''
|
2018-01-07 10:11:43 +01:00
|
|
|
mkdir -p $out/bin $out/share/man/man8
|
|
|
|
cp symlinks $out/bin
|
|
|
|
cp symlinks.8 $out/share/man/man8
|
2014-07-08 19:19:15 +02:00
|
|
|
'';
|
|
|
|
|
2021-01-11 08:54:33 +01:00
|
|
|
meta = with lib; {
|
2018-01-07 10:11:43 +01:00
|
|
|
description = "Find and remedy problematic symbolic links on a system";
|
|
|
|
homepage = "https://github.com/brandt/symlinks";
|
|
|
|
license = licenses.mit;
|
|
|
|
maintainers = with maintainers; [ goibhniu ckauhaus ];
|
|
|
|
platforms = platforms.unix;
|
2014-07-08 19:19:15 +02:00
|
|
|
};
|
|
|
|
}
|