git.iko.soy/typeable/nixpkgs
on master help sign in
alot: Put included themes where alot will find them

Instead of putthing them in the wrong place and then pointing alog at it via default config, put them in the right place and don't touch the default config.

commit44a7be9496ef7e2e36d1cebd9f6baaa0bcdc2564 authorMichishige Kaito <me@mkaito.com> dateThu 12 Apr 2018, 22:10 (9 years ago) parent766ecbb
1 file changed+2−8
pkgs/development/python-modules/alot/default.nix+2−8
pkgs/development/python-modules/alot/default.nix+2−8
@@ -19,12 +19,6 @@ buildPythonPackage rec {
1919 sha256 = "1y932smng7qx7ybmqw4qh75b0lv9imfs5ak9fd0qhysij8kpmdhi";
2020 };
2121
22− postPatch = ''
23− substituteInPlace alot/defaults/alot.rc.spec \
24− --replace "themes_dir = string(default=None)" \
25− "themes_dir = string(default='$out/share/themes')"
26− '';
27−
2822 nativeBuildInputs = lib.optional withManpage sphinx;
2923
3024 propagatedBuildInputs = [
@@ -50,8 +44,8 @@ buildPythonPackage rec {
5044 cp -r docs/build/man $out/man
5145 ''
5246 + ''
53− mkdir -p $out/share/applications
54− cp -r extra/themes $out/share
47+ mkdir -p $out/share/{applications,alot}
48+ cp -r extra/themes $out/share/alot
5549
5650 sed "s,/usr/bin,$out/bin,g" extra/alot.desktop > $out/share/applications/alot.desktop
5751 '';