git-hub: minor clean-up

Move meta out of the way; inherit the GitHub home page from src;
`with platforms; linux` -> `platforms.linux`.

+15 -15
+15 -15
pkgs/applications/version-management/git-and-tools/git-hub/default.nix
··· 1 { stdenv, fetchFromGitHub, docutils, python }: 2 3 let version = "0.9.0"; in 4 - stdenv.mkDerivation { 5 name = "git-hub-${version}"; 6 7 src = fetchFromGitHub { ··· 11 owner = "sociomantic"; 12 }; 13 14 - meta = with stdenv.lib; { 15 - inherit version; 16 - description = "Git command line interface to GitHub"; 17 - longDescription = '' 18 - A simple command line interface to GitHub, enabling most useful GitHub 19 - tasks (like creating and listing pull request or issues) to be accessed 20 - directly through the Git command line. 21 - ''; 22 - homepage = https://github.com/sociomantic/git-hub; 23 - license = licenses.gpl3Plus; 24 - platforms = with platforms; linux; 25 - maintainers = with maintainers; [ nckx ]; 26 - }; 27 - 28 buildInputs = [ python ]; 29 nativeBuildInputs = [ docutils ]; 30 ··· 41 # Remove inert ftdetect vim plugin and a README that's a man page subset: 42 rm -r $out/share/{doc,vim} 43 ''; 44 }
··· 1 { stdenv, fetchFromGitHub, docutils, python }: 2 3 let version = "0.9.0"; in 4 + stdenv.mkDerivation rec { 5 name = "git-hub-${version}"; 6 7 src = fetchFromGitHub { ··· 11 owner = "sociomantic"; 12 }; 13 14 buildInputs = [ python ]; 15 nativeBuildInputs = [ docutils ]; 16 ··· 27 # Remove inert ftdetect vim plugin and a README that's a man page subset: 28 rm -r $out/share/{doc,vim} 29 ''; 30 + 31 + meta = with stdenv.lib; { 32 + inherit version; 33 + inherit (src.meta) homepage; 34 + description = "Git command line interface to GitHub"; 35 + longDescription = '' 36 + A simple command line interface to GitHub, enabling most useful GitHub 37 + tasks (like creating and listing pull request or issues) to be accessed 38 + directly through the Git command line. 39 + ''; 40 + license = licenses.gpl3Plus; 41 + platforms = platforms.linux; 42 + maintainers = with maintainers; [ nckx ]; 43 + }; 44 }