Skip to content

Commit 9aeb2cb

Browse files
committed
git add backend/ted2srt.nix
1 parent 8a1296e commit 9aeb2cb

File tree

4 files changed

+41
-3
lines changed

4 files changed

+41
-3
lines changed

.circleci/config.yml

+1-1
Original file line numberDiff line numberDiff line change
@@ -36,7 +36,7 @@ jobs:
3636
working_directory: backend
3737
command: |
3838
source ~/.profile
39-
nix-shell --run "nix-build -j2 --cores 2"
39+
nix-build -j2 --cores 2
4040
cp -r result/bin bin
4141
4242
- persist_to_workspace:

.gitignore

-1
Original file line numberDiff line numberDiff line change
@@ -5,7 +5,6 @@
55
.env
66
.stack-work/
77
ted2srt.cabal
8-
ted2srt.nix
98

109
.DS_Store
1110

backend/scripts/build.sh backend/scripts/cabal2nix.sh

-1
Original file line numberDiff line numberDiff line change
@@ -2,4 +2,3 @@ hpack
22
cabal2nix --no-haddock . > ted2srt.nix
33
sed -i '0,/}/ s/}/, postgresql_11}/' ted2srt.nix
44
sed -i '0,/.*libraryToolDepends.*/ s/.*libraryToolDepends.*/ librarySystemDepends = [ postgresql_11 ];\n&/' ted2srt.nix
5-
nix-build

backend/ted2srt.nix

+40
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,40 @@
1+
{ mkDerivation, aeson, base, base64-bytestring, bytestring, conduit
2+
, conduit-extra, containers, cryptonite, cryptonite-conduit
3+
, directory, either, hedis, hpack, html-conduit, http-conduit
4+
, http-types, load-env, lucid, memory, monad-logger, mtl, network
5+
, persistent, persistent-postgresql, persistent-template
6+
, raw-strings-qq, regex-posix, rio, servant-lucid, servant-server
7+
, stdenv, system-filepath, text, time, transformers
8+
, unordered-containers, vector, wai, wai-extra, warp, xml-conduit
9+
, postgresql_11}:
10+
mkDerivation {
11+
pname = "ted2srt";
12+
version = "3.20200412";
13+
src = ./.;
14+
isLibrary = true;
15+
isExecutable = true;
16+
libraryHaskellDepends = [
17+
aeson base base64-bytestring bytestring conduit conduit-extra
18+
containers cryptonite cryptonite-conduit directory either hedis
19+
html-conduit http-conduit http-types load-env lucid memory
20+
monad-logger mtl network persistent persistent-postgresql
21+
persistent-template raw-strings-qq regex-posix rio servant-lucid
22+
servant-server system-filepath text time transformers
23+
unordered-containers vector wai xml-conduit
24+
];
25+
librarySystemDepends = [ postgresql_11 ];
26+
libraryToolDepends = [ hpack ];
27+
executableHaskellDepends = [
28+
aeson base base64-bytestring bytestring conduit conduit-extra
29+
containers cryptonite cryptonite-conduit directory either hedis
30+
html-conduit http-conduit http-types load-env lucid memory
31+
monad-logger mtl network persistent persistent-postgresql
32+
persistent-template raw-strings-qq regex-posix rio servant-lucid
33+
servant-server system-filepath text time transformers
34+
unordered-containers vector wai wai-extra warp xml-conduit
35+
];
36+
doHaddock = false;
37+
prePatch = "hpack";
38+
license = "unknown";
39+
hydraPlatforms = stdenv.lib.platforms.none;
40+
}

0 commit comments

Comments
 (0)