mirror of
https://github.com/NixOS/nixpkgs.git
synced 2026-10-02 21:10:08 +00:00
37 lines
667 B
Nix
37 lines
667 B
Nix
{
|
|
lib,
|
|
stdenv,
|
|
fetchFromGitHub,
|
|
git,
|
|
ronn,
|
|
}:
|
|
|
|
stdenv.mkDerivation (finalAttrs: {
|
|
pname = "automirror";
|
|
version = "49";
|
|
|
|
src = fetchFromGitHub {
|
|
owner = "schlomo";
|
|
repo = "automirror";
|
|
rev = "v${finalAttrs.version}";
|
|
sha256 = "1syyf7dcm8fbyw31cpgmacg80h7pg036dayaaf0svvdsk0hqlsch";
|
|
};
|
|
|
|
patchPhase = "sed -i s#/usr##g Makefile";
|
|
|
|
buildInputs = [
|
|
git
|
|
ronn
|
|
];
|
|
|
|
installFlags = [ "DESTDIR=$(out)" ];
|
|
|
|
meta = {
|
|
homepage = "https://github.com/schlomo/automirror";
|
|
description = "Automatic Display Mirror";
|
|
license = lib.licenses.gpl3;
|
|
platforms = lib.platforms.all;
|
|
mainProgram = "automirror";
|
|
};
|
|
})
|