about summary refs log tree commit diff
path: root/nixpkgs/pkgs/tools/misc/automirror/default.nix
blob: dde9c2d02d3add5867db62c2073092218c0fbd34 (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
{stdenv, fetchFromGitHub, git, ronn}:

stdenv.mkDerivation rec {
  pname = "automirror";
  version = "49";

  src = fetchFromGitHub {
    owner = "schlomo";
    repo = "automirror";
    rev = "v${version}";
    sha256 = "1syyf7dcm8fbyw31cpgmacg80h7pg036dayaaf0svvdsk0hqlsch";
  };

  patchPhase = "sed -i s#/usr##g Makefile";

  buildInputs = [ git ronn ];

  installFlags = [ "DESTDIR=$(out)" ];

  meta = with stdenv.lib; {
    homepage = "https://github.com/schlomo/automirror";
    description = "Automatic Display Mirror";
    license = licenses.gpl3;
    platforms = platforms.all;
  };
}