about summary refs log tree commit diff
path: root/nixpkgs/pkgs/tools/system/symlinks/default.nix
blob: 8d1213c0afefac58a1d7d964dd0cd8860a3ff63f (plain) (blame)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
{ fetchFromGitHub, lib, stdenv }:

stdenv.mkDerivation rec {
  pname = "symlinks";
  version = "1.4.3";

  src = fetchFromGitHub {
    owner = "brandt";
    repo = "symlinks";
    rev = "v${version}";
    sha256 = "EMWd7T/k4v1uvXe2QxhyPoQKUpKIUANE9AOwX461FgU=";
  };

  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
  '';

  meta = with lib; {
    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;
  };
}