Use cabal2nix pre-commit hook

This commit is contained in:
maralorn 2023-09-02 01:51:23 +02:00
parent df08f1eef7
commit b0d267bb65
No known key found for this signature in database
10 changed files with 117 additions and 366 deletions

View File

@ -63,7 +63,11 @@
];
hooks = {
hlint.enable = true;
nixfmt.enable = true;
nixfmt = {
enable = true;
excludes = generated_nix_files;
};
cabal2nix.enable = true;
nil = {
enable = true;
excludes = generated_nix_files;

View File

@ -1,16 +1,5 @@
{
mkDerivation,
base,
containers,
effectful,
effectful-th,
lib,
relude,
req,
say,
string-interpolate,
text,
witch,
{ mkDerivation, base, containers, effectful, effectful-th, lib
, relude, req, say, string-interpolate, text, witch
}:
mkDerivation {
pname = "builders-configurator";
@ -19,16 +8,8 @@ mkDerivation {
isLibrary = false;
isExecutable = true;
executableHaskellDepends = [
base
containers
effectful
effectful-th
relude
req
say
string-interpolate
text
witch
base containers effectful effectful-th relude req say
string-interpolate text witch
];
license = lib.licenses.agpl3Plus;
mainProgram = "builders-configurator";

View File

@ -0,0 +1,23 @@
{ mkDerivation, aeson, async, base, containers, data-default-class
, dhall, frontend, kassandra, lib, network-simple, obelisk-backend
, obelisk-route, password, relude, say, snap-core, standalone, stm
, taskwarrior, uuid, websockets, websockets-snap
}:
mkDerivation {
pname = "backend";
version = "0.1";
src = ./.;
isLibrary = true;
isExecutable = true;
libraryHaskellDepends = [
aeson async base containers data-default-class dhall frontend
kassandra network-simple obelisk-backend obelisk-route password
relude say snap-core standalone stm taskwarrior uuid websockets
websockets-snap
];
executableHaskellDepends = [
base frontend kassandra obelisk-backend
];
license = "unknown";
mainProgram = "backend";
}

View File

@ -0,0 +1,28 @@
{ mkDerivation, aeson, base, dependent-map, dependent-sum-template
, extra, generic-optics, jsaddle, kassandra, lib, mtl
, obelisk-executable-config-lookup, obelisk-frontend
, obelisk-generated-static, obelisk-route, optics, optics-th
, reflex, reflex-dom, relude, scientific, taskwarrior, text, these
, time, unordered-containers, uuid
}:
mkDerivation {
pname = "frontend";
version = "0.1";
src = ./.;
isLibrary = true;
isExecutable = true;
libraryHaskellDepends = [
aeson base dependent-map dependent-sum-template extra
generic-optics jsaddle kassandra mtl
obelisk-executable-config-lookup obelisk-frontend
obelisk-generated-static obelisk-route optics optics-th reflex
reflex-dom relude scientific taskwarrior text these time
unordered-containers uuid
];
executableHaskellDepends = [
base kassandra obelisk-frontend obelisk-generated-static
obelisk-route reflex-dom
];
license = "unknown";
mainProgram = "frontend";
}

View File

@ -1,76 +1,20 @@
{
mkDerivation,
aeson,
ansi-terminal,
async,
base,
clay,
containers,
data-default-class,
extra,
generic-optics,
jsaddle,
jsaddle-dom,
lib,
nonempty-containers,
optics,
optics-th,
password,
patch,
process,
reflex,
reflex-dom,
relude,
say,
scientific,
stm,
string-interpolate,
taskwarrior,
template-haskell,
text,
these,
time,
unordered-containers,
uuid,
witherable,
{ mkDerivation, aeson, ansi-terminal, async, base, clay, containers
, data-default-class, extra, generic-optics, jsaddle, jsaddle-dom
, lib, nonempty-containers, optics, optics-th, password, patch
, process, reflex, reflex-dom, relude, say, scientific, stm
, string-interpolate, taskwarrior, template-haskell, text, these
, time, unordered-containers, uuid, witherable
}:
mkDerivation {
pname = "kassandra";
version = "0.1.0.0";
src = ./.;
libraryHaskellDepends = [
aeson
ansi-terminal
async
base
clay
containers
data-default-class
extra
generic-optics
jsaddle
jsaddle-dom
nonempty-containers
optics
optics-th
password
patch
process
reflex
reflex-dom
relude
say
scientific
stm
string-interpolate
taskwarrior
template-haskell
text
these
time
unordered-containers
uuid
witherable
aeson ansi-terminal async base clay containers data-default-class
extra generic-optics jsaddle jsaddle-dom nonempty-containers optics
optics-th password patch process reflex reflex-dom relude say
scientific stm string-interpolate taskwarrior template-haskell text
these time unordered-containers uuid witherable
];
license = "unknown";
}

View File

@ -1,38 +1,9 @@
{
mkDerivation,
aeson,
base,
bytestring,
containers,
data-default,
deferred-folds,
dhall,
directory,
either,
filepath,
filepattern,
iCalendar,
kassandra,
lib,
network-simple,
nonempty-containers,
password,
paths,
reflex,
reflex-dom,
relude,
say,
stm,
stm-containers,
streamly,
streamly-bytestring,
streamly-core,
taskwarrior,
text,
time,
tz,
unix,
uuid,
{ mkDerivation, aeson, base, bytestring, containers, data-default
, deferred-folds, dhall, directory, either, filepath, filepattern
, iCalendar, kassandra, lib, network-simple, nonempty-containers
, password, paths, reflex, reflex-dom, relude, say, stm
, stm-containers, streamly, streamly-bytestring, streamly-core
, taskwarrior, text, time, tz, unix, uuid
}:
mkDerivation {
pname = "standalone";
@ -41,43 +12,13 @@ mkDerivation {
isLibrary = true;
isExecutable = true;
libraryHaskellDepends = [
aeson
base
bytestring
containers
data-default
deferred-folds
dhall
directory
either
filepath
filepattern
iCalendar
kassandra
network-simple
nonempty-containers
password
paths
reflex
reflex-dom
relude
say
stm
stm-containers
streamly
streamly-bytestring
streamly-core
taskwarrior
text
time
tz
unix
uuid
];
executableHaskellDepends = [
base
kassandra
aeson base bytestring containers data-default deferred-folds dhall
directory either filepath filepattern iCalendar kassandra
network-simple nonempty-containers password paths reflex reflex-dom
relude say stm stm-containers streamly streamly-bytestring
streamly-core taskwarrior text time tz unix uuid
];
executableHaskellDepends = [ base kassandra ];
license = "unknown";
mainProgram = "kassandra2";
}

View File

@ -1,26 +1,7 @@
{
mkDerivation,
aeson-schemas,
async,
base,
clock,
containers,
esqueleto,
exceptions,
graphql-client,
http-client,
lib,
matrix-client,
monad-logger,
mtl,
persistent,
persistent-sqlite,
random,
relude,
resourcet,
time,
typed-process,
yaml,
{ mkDerivation, aeson-schemas, async, base, clock, containers
, esqueleto, exceptions, graphql-client, http-client, lib
, matrix-client, monad-logger, mtl, persistent, persistent-sqlite
, random, relude, resourcet, time, typed-process, yaml
}:
mkDerivation {
pname = "nixpkgs-bot";
@ -29,48 +10,16 @@ mkDerivation {
isLibrary = true;
isExecutable = true;
libraryHaskellDepends = [
aeson-schemas
async
base
clock
containers
esqueleto
exceptions
graphql-client
http-client
matrix-client
monad-logger
mtl
persistent
persistent-sqlite
random
relude
resourcet
time
typed-process
yaml
aeson-schemas async base clock containers esqueleto exceptions
graphql-client http-client matrix-client monad-logger mtl
persistent persistent-sqlite random relude resourcet time
typed-process yaml
];
executableHaskellDepends = [
aeson-schemas
async
base
clock
containers
esqueleto
exceptions
graphql-client
http-client
matrix-client
monad-logger
mtl
persistent
persistent-sqlite
random
relude
resourcet
time
typed-process
yaml
aeson-schemas async base clock containers esqueleto exceptions
graphql-client http-client matrix-client monad-logger mtl
persistent persistent-sqlite random relude resourcet time
typed-process yaml
];
homepage = "https://git.maralorn.de/nixpkgs-bot";
description = "A matrix bot which watches nixpkgs and informs about PR progress";

View File

@ -1,27 +1,7 @@
{
mkDerivation,
base,
containers,
errors,
exceptions,
extra,
feed,
filepath,
filepattern,
lens,
lib,
megaparsec,
notmuch,
optparse-applicative,
purebred-email,
relude,
say,
string-interpolate,
tagsoup,
text,
time,
witch,
wreq,
{ mkDerivation, base, containers, errors, exceptions, extra, feed
, filepath, filepattern, lens, lib, megaparsec, notmuch
, optparse-applicative, purebred-email, relude, say
, string-interpolate, tagsoup, text, time, witch, wreq
}:
mkDerivation {
pname = "rssfeeds";
@ -30,27 +10,9 @@ mkDerivation {
isLibrary = false;
isExecutable = true;
executableHaskellDepends = [
base
containers
errors
exceptions
extra
feed
filepath
filepattern
lens
megaparsec
notmuch
optparse-applicative
purebred-email
relude
say
string-interpolate
tagsoup
text
time
witch
wreq
base containers errors exceptions extra feed filepath filepattern
lens megaparsec notmuch optparse-applicative purebred-email relude
say string-interpolate tagsoup text time witch wreq
];
license = "unknown";
}

View File

@ -1,26 +1,7 @@
{
mkDerivation,
aeson,
aeson-schemas,
async,
base,
bytestring,
directory,
exceptions,
filepath,
fsnotify,
lib,
network,
reflex,
relude,
say,
shh,
stm,
string-interpolate,
taskwarrior,
template-haskell,
time,
uuid,
{ mkDerivation, aeson, aeson-schemas, async, base, bytestring
, directory, exceptions, filepath, fsnotify, lib, network, reflex
, relude, say, shh, stm, string-interpolate, taskwarrior
, template-haskell, time, uuid
}:
mkDerivation {
pname = "status-script";
@ -29,48 +10,14 @@ mkDerivation {
isLibrary = true;
isExecutable = true;
libraryHaskellDepends = [
aeson
aeson-schemas
async
base
bytestring
directory
exceptions
filepath
fsnotify
network
reflex
relude
say
shh
stm
string-interpolate
taskwarrior
template-haskell
time
uuid
aeson aeson-schemas async base bytestring directory exceptions
filepath fsnotify network reflex relude say shh stm
string-interpolate taskwarrior template-haskell time uuid
];
executableHaskellDepends = [
aeson
aeson-schemas
async
base
bytestring
directory
exceptions
filepath
fsnotify
network
reflex
relude
say
shh
stm
string-interpolate
taskwarrior
template-haskell
time
uuid
aeson aeson-schemas async base bytestring directory exceptions
filepath fsnotify network reflex relude say shh stm
string-interpolate taskwarrior template-haskell time uuid
];
license = lib.licenses.agpl3Plus;
mainProgram = "status-script";

View File

@ -1,17 +1,5 @@
{
mkDerivation,
aeson,
ansi-terminal,
base,
daemons,
haskeline,
lib,
process,
relude,
text,
witch,
wizards,
yaml,
{ mkDerivation, aeson, ansi-terminal, base, daemons, haskeline, lib
, process, relude, text, witch, wizards, yaml
}:
mkDerivation {
pname = "wizards-dialog";
@ -20,27 +8,11 @@ mkDerivation {
isLibrary = true;
isExecutable = true;
libraryHaskellDepends = [
ansi-terminal
base
haskeline
process
relude
text
witch
wizards
ansi-terminal base haskeline process relude text witch wizards
];
executableHaskellDepends = [
aeson
ansi-terminal
base
daemons
haskeline
process
relude
text
witch
wizards
yaml
aeson ansi-terminal base daemons haskeline process relude text
witch wizards yaml
];
license = "AGPL";
mainProgram = "hotkeys";