flake: improve checking whether thesis type is set
This commit is contained in:
parent
36ad5c4a39
commit
4c2786df8a
11
flake.nix
11
flake.nix
@ -17,8 +17,15 @@
|
||||
supportedSystems = ["aarch64-linux" "x86_64-linux" "x86_64-darwin"];
|
||||
forAllSystems = nixpkgs.lib.genAttrs supportedSystems;
|
||||
|
||||
thesisType = ""; # ms, bc
|
||||
throw "Set thesis type!"
|
||||
# ms, bc
|
||||
thesis = "";
|
||||
|
||||
checkThesisType = {type}:
|
||||
if builtins.stringLength type == 0
|
||||
then "unknown"
|
||||
else type;
|
||||
thesisType = checkThesisType {type = thesis;};
|
||||
|
||||
documentName = "thesis";
|
||||
pname = thesisType + "_" + documentName;
|
||||
version = "0.0.1";
|
||||
|
Reference in New Issue
Block a user