···11{ lib, mkCoqDerivation, coq, version ? null }:
2233-with lib; mkCoqDerivation {
33+mkCoqDerivation {
44 pname = "StructTact";
55 owner = "uwplse";
66 inherit version;
77- defaultVersion = with versions; switch coq.coq-version [
77+ defaultVersion = with lib.versions; lib.switch coq.coq-version [
88 { case = range "8.6" "8.16"; out = "20210328"; }
99 { case = range "8.5" "8.13"; out = "20181102"; }
1010 ] null;
+2-4
pkgs/development/coq-modules/VST/default.nix
···11{ lib, mkCoqDerivation, coq, compcert, ITree, version ? null }:
2233-with lib;
44-53# A few modules that are not built and installed by default
64# but that may be useful to some users.
75# They depend on ITree.
···119 "powerlater.v"
1210 ]
1311 # floyd/printf.v is broken in VST 2.9
1414- ++ optional (!versions.isGe "8.13" coq.coq-version) "printf.v"
1212+ ++ lib.optional (!lib.versions.isGe "8.13" coq.coq-version) "printf.v"
1513 ++ [
1614 "quickprogram.v"
1715 ];
···2422 owner = "PrincetonUniversity";
2523 repo = "VST";
2624 inherit version;
2727- defaultVersion = with versions; switch coq.coq-version [
2525+ defaultVersion = with lib.versions; lib.switch coq.coq-version [
2826 { case = range "8.15" "8.16"; out = "2.11.1"; }
2927 { case = range "8.14" "8.16"; out = "2.10"; }
3028 { case = range "8.13" "8.15"; out = "2.9"; }