Skip to content

Commit 01448d4

Browse files
javierdiaz72amesgen
authored andcommitted
Remove unnecessary parts from default.nix
1 parent 4986fa3 commit 01448d4

File tree

1 file changed

+1
-100
lines changed

1 file changed

+1
-100
lines changed

docs/agda-spec/default.nix

Lines changed: 1 addition & 100 deletions
Original file line numberDiff line numberDiff line change
@@ -60,7 +60,7 @@ in
6060
rec {
6161

6262
agdaWithDeps = agdaWithPkgs deps;
63-
agda = agdaWithPkgs (deps ++ [ formalLedger ]);
63+
agda = agdaWithPkgs deps;
6464

6565
latex = texlive.combine {
6666
inherit (texlive)
@@ -73,23 +73,6 @@ rec {
7373
latexmk;
7474
};
7575

76-
formalLedger = customAgda.agdaPackages.mkDerivation {
77-
inherit (locales) LANG LC_ALL LOCALE_ARCHIVE;
78-
pname = "formal-ledger";
79-
version = "0.1";
80-
src = ./src;
81-
meta = { };
82-
buildInputs = deps;
83-
buildPhase = ''
84-
bash typeCheck.sh
85-
'';
86-
postInstall = ''
87-
cp -r latex/ Makefile typecheck.time $out
88-
sh checkTypeChecked.sh
89-
'';
90-
extraExtensions = [ "hs" "cabal" "py" ];
91-
};
92-
9376
mkSpecDerivation = { project, main }: rec {
9477
docs = stdenv.mkDerivation {
9578
inherit (locales) LANG LC_ALL LOCALE_ARCHIVE;
@@ -108,89 +91,7 @@ rec {
10891
dontInstall = true;
10992
};
11093

111-
html = stdenv.mkDerivation {
112-
inherit (locales) LANG LC_ALL LOCALE_ARCHIVE;
113-
pname = "html";
114-
version = "0.1";
115-
src = "${formalLedger}";
116-
meta = { };
117-
buildInputs = [ agdaWithDeps ];
118-
buildPhase = ''
119-
OUT_DIR=$out make "${project}".html
120-
'';
121-
doCheck = true;
122-
checkPhase = ''
123-
test -n "$(find $out/html/ -type f -name '*.html')"
124-
'';
125-
dontInstall = true;
126-
};
127-
128-
hsSrc = stdenv.mkDerivation {
129-
inherit (locales) LANG LC_ALL LOCALE_ARCHIVE;
130-
pname = "hs-src";
131-
version = "0.1";
132-
src = "${formalLedger}";
133-
meta = { };
134-
buildInputs = [ agdaWithDeps ];
135-
buildPhase = ''
136-
OUT_DIR=$out make "${project}".hs
137-
'';
138-
doCheck = true;
139-
checkPhase = ''
140-
test -n "$(find $out/haskell/ -type f -name '*.hs')"
141-
# OUT_DIR=$out make "${project}".hsTest
142-
'';
143-
dontInstall = true;
144-
};
145-
146-
# hsDocs = stdenv.mkDerivation {
147-
# pname = "hs-docs";
148-
# version = "0.1";
149-
# src = "${formalLedger}";
150-
# meta = { };
151-
# buildInputs = [ agdaWithDeps ];
152-
# configurePhase = ''
153-
# export HOME=$TMP
154-
# '';
155-
# buildPhase = ''
156-
# OUT_DIR=$out make "${project}".hsDocs
157-
# '';
158-
# doCheck = true;
159-
# checkPhase = ''
160-
# test -n "$(find $out/haskell/ -type f -name '*.html')"
161-
# '';
162-
# dontInstall = true;
163-
# };
164-
16594
hsExe = haskell.lib.disableLibraryProfiling (haskellPackages.callCabal2nixWithOptions "${project}" "${hsSrc}/haskell/${main}" "--no-haddock" {});
16695

16796
};
168-
169-
mkPdfDerivation = name: version: project: stdenv.mkDerivation {
170-
inherit (locales) LANG LC_ALL LOCALE_ARCHIVE;
171-
pname = name;
172-
version = version;
173-
src = "${formalLedger}";
174-
meta = { };
175-
buildInputs = [ agdaWithDeps latex python3 ];
176-
buildPhase = ''
177-
OUT_DIR=$out make ${project}
178-
'';
179-
doCheck = true;
180-
checkPhase = ''
181-
test -n "$(find $out/pdfs/ -type f -name '*.pdf')"
182-
'';
183-
dontInstall = true;
184-
};
185-
186-
ledger = mkSpecDerivation {
187-
project = "ledger";
188-
main = "Ledger";
189-
} // {
190-
conway = mkPdfDerivation "conway-formal-spec" "0.9" "ledger.conway.docs";
191-
};
192-
midnight = mkSpecDerivation {
193-
project = "midnight";
194-
main = "MidnightExample";
195-
};
19697
}

0 commit comments

Comments
 (0)