diff options
author | Michishige Kaito <me@mkaito.com> | 2018-04-12 22:10:24 +0100 |
---|---|---|
committer | Michishige Kaito <me@mkaito.com> | 2018-04-12 22:10:24 +0100 |
commit | 44a7be9496ef7e2e36d1cebd9f6baaa0bcdc2564 (patch) | |
tree | 833f8b25a842f8d890ab33f327ebdb4219f241f2 /pkgs/development/python-modules/alot | |
parent | 766ecbb57ae096b83172b08b7b278dc757afe1a5 (diff) | |
download | nixlib-44a7be9496ef7e2e36d1cebd9f6baaa0bcdc2564.tar nixlib-44a7be9496ef7e2e36d1cebd9f6baaa0bcdc2564.tar.gz nixlib-44a7be9496ef7e2e36d1cebd9f6baaa0bcdc2564.tar.bz2 nixlib-44a7be9496ef7e2e36d1cebd9f6baaa0bcdc2564.tar.lz nixlib-44a7be9496ef7e2e36d1cebd9f6baaa0bcdc2564.tar.xz nixlib-44a7be9496ef7e2e36d1cebd9f6baaa0bcdc2564.tar.zst nixlib-44a7be9496ef7e2e36d1cebd9f6baaa0bcdc2564.zip |
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.
Diffstat (limited to 'pkgs/development/python-modules/alot')
-rw-r--r-- | pkgs/development/python-modules/alot/default.nix | 10 |
1 files changed, 2 insertions, 8 deletions
diff --git a/pkgs/development/python-modules/alot/default.nix b/pkgs/development/python-modules/alot/default.nix index 7abc56c47839..dd06d4dde7a6 100644 --- a/pkgs/development/python-modules/alot/default.nix +++ b/pkgs/development/python-modules/alot/default.nix @@ -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 ''; |