nixpkgs mirror (for testing) github.com/NixOS/nixpkgs
nix
at devShellTools-shell 36 lines 648 B view raw
1{ 2 lib, 3 stdenv, 4 fetchFromGitHub, 5 git, 6 ronn, 7}: 8 9stdenv.mkDerivation rec { 10 pname = "automirror"; 11 version = "49"; 12 13 src = fetchFromGitHub { 14 owner = "schlomo"; 15 repo = "automirror"; 16 rev = "v${version}"; 17 sha256 = "1syyf7dcm8fbyw31cpgmacg80h7pg036dayaaf0svvdsk0hqlsch"; 18 }; 19 20 patchPhase = "sed -i s#/usr##g Makefile"; 21 22 buildInputs = [ 23 git 24 ronn 25 ]; 26 27 installFlags = [ "DESTDIR=$(out)" ]; 28 29 meta = with lib; { 30 homepage = "https://github.com/schlomo/automirror"; 31 description = "Automatic Display Mirror"; 32 license = licenses.gpl3; 33 platforms = platforms.all; 34 mainProgram = "automirror"; 35 }; 36}