Merge pull request #38871 from mkaito/fix-alot-themes

alot: Put included themes where alot will find them
This commit is contained in:
Yegor Timoshenko 2018-04-12 21:51:43 +00:00 committed by GitHub
commit 47848756fe
No known key found for this signature in database
GPG key ID: 4AEE18F83AFDEB23

View file

@ -19,12 +19,6 @@ buildPythonPackage rec {
sha256 = "1y932smng7qx7ybmqw4qh75b0lv9imfs5ak9fd0qhysij8kpmdhi";
};
postPatch = ''
substituteInPlace alot/defaults/alot.rc.spec \
--replace "themes_dir = string(default=None)" \
"themes_dir = string(default='$out/share/themes')"
'';
nativeBuildInputs = lib.optional withManpage sphinx;
propagatedBuildInputs = [
@ -50,8 +44,8 @@ buildPythonPackage rec {
cp -r docs/build/man $out/man
''
+ ''
mkdir -p $out/share/applications
cp -r extra/themes $out/share
mkdir -p $out/share/{applications,alot}
cp -r extra/themes $out/share/alot
sed "s,/usr/bin,$out/bin,g" extra/alot.desktop > $out/share/applications/alot.desktop
'';