2021-10-28 06:52:43 +00:00
|
|
|
{ fetchFromGitHub, lib, stdenv }:
|
2020-04-24 23:36:52 +00:00
|
|
|
|
|
|
|
stdenv.mkDerivation rec {
|
|
|
|
pname = "symlinks";
|
|
|
|
version = "1.4.3";
|
|
|
|
|
2021-10-28 06:52:43 +00:00
|
|
|
src = fetchFromGitHub {
|
|
|
|
owner = "brandt";
|
|
|
|
repo = "symlinks";
|
|
|
|
rev = "v${version}";
|
|
|
|
sha256 = "EMWd7T/k4v1uvXe2QxhyPoQKUpKIUANE9AOwX461FgU=";
|
2020-04-24 23:36:52 +00:00
|
|
|
};
|
|
|
|
|
|
|
|
buildFlags = [ "CC=${stdenv.cc}/bin/cc" ];
|
|
|
|
|
|
|
|
installPhase = ''
|
|
|
|
mkdir -p $out/bin $out/share/man/man8
|
|
|
|
cp symlinks $out/bin
|
|
|
|
cp symlinks.8 $out/share/man/man8
|
|
|
|
'';
|
|
|
|
|
2021-01-15 22:18:51 +00:00
|
|
|
meta = with lib; {
|
2020-04-24 23:36:52 +00: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;
|
|
|
|
};
|
|
|
|
}
|