3
0
Fork 0
forked from mirrors/nixpkgs
nixpkgs/pkgs/tools/misc/automirror/default.nix
volth 46420bbaa3 treewide: name -> pname (easy cases) (#66585)
treewide replacement of

stdenv.mkDerivation rec {
  name = "*-${version}";
  version = "*";

to pname
2019-08-15 13:41:18 +01:00

27 lines
589 B
Nix

{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;
};
}