2018-10-04 17:20:31 +02:00
|
|
|
{ stdenv, fetchFromGitHub, python3, fetchpatch }:
|
2015-10-14 17:11:22 +02:00
|
|
|
|
|
|
|
stdenv.mkDerivation rec {
|
|
|
|
program = "dex";
|
|
|
|
name = "${program}-${version}";
|
2018-08-26 22:14:17 +02:00
|
|
|
version = "0.8.0";
|
2015-10-14 17:11:22 +02:00
|
|
|
|
|
|
|
src = fetchFromGitHub {
|
|
|
|
owner = "jceb";
|
|
|
|
repo = program;
|
|
|
|
rev = "v${version}";
|
2018-08-26 22:14:17 +02:00
|
|
|
sha256 = "13dkjd1373mbvskrdrp0865llr3zvdr90sc6a6jqswh3crmgmz4k";
|
2015-10-14 17:11:22 +02:00
|
|
|
};
|
|
|
|
|
|
|
|
propagatedBuildInputs = [ python3 ];
|
2018-08-26 22:14:17 +02:00
|
|
|
nativeBuildInputs = [ python3.pkgs.sphinx ];
|
2015-10-14 17:11:22 +02:00
|
|
|
makeFlags = [ "PREFIX=$(out)" "VERSION=$(version)" ];
|
|
|
|
|
2018-10-04 17:20:31 +02:00
|
|
|
patches = [
|
|
|
|
(fetchpatch {
|
|
|
|
url = https://github.com/jceb/dex/commit/107358ddf5e1ca4fa56ef1a7ab161dc3b6adc45a.patch;
|
|
|
|
sha256 = "06dfkfzxp8199by0jc5wim8g8qw38j09dq9p6n9w4zaasla60pjq";
|
|
|
|
})
|
|
|
|
];
|
|
|
|
|
2018-09-12 21:56:37 +02:00
|
|
|
meta = with stdenv.lib; {
|
2015-10-14 17:11:22 +02:00
|
|
|
description = "A program to generate and execute DesktopEntry files of the Application type";
|
|
|
|
homepage = https://github.com/jceb/dex;
|
2018-09-12 21:56:37 +02:00
|
|
|
platforms = platforms.linux;
|
|
|
|
license = licenses.gpl3Plus;
|
2015-10-14 17:11:22 +02:00
|
|
|
};
|
|
|
|
}
|