From 44a7be9496ef7e2e36d1cebd9f6baaa0bcdc2564 Mon Sep 17 00:00:00 2001 From: Michishige Kaito Date: Thu, 12 Apr 2018 22:10:24 +0100 Subject: 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. --- pkgs/development/python-modules/alot/default.nix | 10 ++-------- 1 file changed, 2 insertions(+), 8 deletions(-) (limited to 'pkgs/development/python-modules') 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 ''; -- cgit 1.4.1