taskell: use haskellPackages

This commit is contained in:
Mario Rodas 2020-08-16 23:21:00 -05:00
parent bd6371a93d
commit 8d65ad740c
No known key found for this signature in database
GPG key ID: 325649BCA6D53027
2 changed files with 1 additions and 67 deletions

View file

@ -1,66 +0,0 @@
{ lib, haskellPackages, fetchFromGitHub }:
let
version = "1.10.0";
sha256 = "102iwn6011rypdlx07fzbdll3r5cd204qf96lzwkadvjb7h8clil";
in (haskellPackages.mkDerivation {
pname = "taskell";
inherit version;
src = fetchFromGitHub {
owner = "smallhadroncollider";
repo = "taskell";
rev = version;
inherit sha256;
};
postPatch = ''${haskellPackages.hpack}/bin/hpack'';
# basically justStaticExecutables; TODO: use justStaticExecutables
enableSharedExecutables = false;
enableLibraryProfiling = false;
isExecutable = true;
doHaddock = false;
postFixup = "rm -rf $out/lib $out/nix-support $out/share/doc";
# copied from packages.yaml
libraryHaskellDepends = with haskellPackages; [
classy-prelude
# base <=5
aeson
brick
# bytestring
config-ini
# containers
# directory
file-embed
fold-debounce
http-conduit
http-client
http-types
lens
raw-strings-qq
# mtl
# template-haskell
# text
time
vty
tz
];
executableHaskellDepends = [];
testHaskellDepends = with haskellPackages; [
tasty
tasty-discover
tasty-expected-failure
tasty-hunit
];
description = "Command-line Kanban board/task manager with support for Trello boards and GitHub projects";
homepage = "https://taskell.app";
license = lib.licenses.bsd3;
maintainers = with lib.maintainers; [ matthiasbeyer ];
platforms = [ "x86_64-linux" ];
})

View file

@ -22853,7 +22853,7 @@ in
teamspeak_client = libsForQt512.callPackage ../applications/networking/instant-messengers/teamspeak/client.nix { };
teamspeak_server = callPackage ../applications/networking/instant-messengers/teamspeak/server.nix { };
taskell = callPackage ../applications/misc/taskell { };
taskell = haskell.lib.justStaticExecutables haskellPackages.taskell;
taskjuggler = callPackage ../applications/misc/taskjuggler { };