2021-09-19 20:59:04 +00:00
|
|
|
{ fetchFromGitHub, lib, stdenv }:
|
2014-07-08 17:19:15 +00:00
|
|
|
|
|
|
|
stdenv.mkDerivation rec {
|
2019-08-15 12:41:18 +00:00
|
|
|
pname = "symlinks";
|
2018-01-07 09:11:43 +00:00
|
|
|
version = "1.4.3";
|
2014-07-08 17:19:15 +00:00
|
|
|
|
2021-09-19 20:59:04 +00:00
|
|
|
src = fetchFromGitHub {
|
|
|
|
owner = "brandt";
|
|
|
|
repo = "symlinks";
|
|
|
|
rev = "v${version}";
|
|
|
|
sha256 = "EMWd7T/k4v1uvXe2QxhyPoQKUpKIUANE9AOwX461FgU=";
|
2014-07-08 17:19:15 +00:00
|
|
|
};
|
|
|
|
|
2018-01-07 09:11:43 +00:00
|
|
|
buildFlags = [ "CC=${stdenv.cc}/bin/cc" ];
|
|
|
|
|
2014-07-08 17:19:15 +00:00
|
|
|
installPhase = ''
|
2018-01-07 09:11:43 +00:00
|
|
|
mkdir -p $out/bin $out/share/man/man8
|
|
|
|
cp symlinks $out/bin
|
|
|
|
cp symlinks.8 $out/share/man/man8
|
2014-07-08 17:19:15 +00:00
|
|
|
'';
|
|
|
|
|
2021-01-11 07:54:33 +00:00
|
|
|
meta = with lib; {
|
2018-01-07 09:11:43 +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;
|
2014-07-08 17:19:15 +00:00
|
|
|
};
|
|
|
|
}
|