loxodo: cleanup usage of python2, switch to fetchFromGitHub

authored by

Sandro Jäckel and committed by
Sandro Jäckel
43163844 284818cd

+10 -11
+10 -11
pkgs/applications/misc/loxodo/default.nix
··· 1 - { lib, python27Packages, fetchgit }: 2 - let 3 - py = python27Packages; 4 - python = py.python; 5 - in 6 - py.buildPythonApplication { 1 + { lib, python2, fetchFromGitHub }: 2 + 3 + python2.pkgs.buildPythonApplication { 7 4 pname = "loxodo"; 8 - version = "0.20150124"; 5 + version = "unstable-2015-01-24"; 9 6 10 - src = fetchgit { 11 - url = "https://github.com/sommer/loxodo.git"; 7 + src = fetchFromGitHub { 8 + owner = "sommer"; 9 + repo = "loxodo"; 12 10 rev = "6c56efb4511fd6f645ad0f8eb3deafc8071c5795"; 13 11 sha256 = "1cg0dfcv57ps54f1a0ksib7hgkrbdi9q699w302xyyfyvjcb5dd2"; 14 12 }; 15 13 16 - propagatedBuildInputs = with py; [ wxPython ]; 14 + propagatedBuildInputs = with python2.pkgs; [ wxPython ]; 17 15 18 16 postInstall = '' 19 17 mv $out/bin/loxodo.py $out/bin/loxodo ··· 22 20 [Desktop Entry] 23 21 Type=Application 24 22 Exec=$out/bin/loxodo 25 - Icon=$out/lib/${python.libPrefix}/site-packages/resources/loxodo-icon.png 23 + Icon=$out/lib/${python2.libPrefix}/site-packages/resources/loxodo-icon.png 26 24 Name=Loxodo 27 25 GenericName=Password Vault 28 26 Categories=Application;Other; ··· 34 32 homepage = "https://www.christoph-sommer.de/loxodo/"; 35 33 license = licenses.gpl2Plus; 36 34 platforms = platforms.linux; 35 + maintainers = with maintainers; [ ]; 37 36 }; 38 37 }