Add flake.nix

This commit is contained in:
Oystein Kristoffer Tveit 2023-11-28 10:30:57 +01:00
parent d1dacc08b7
commit e9866b3b3c
Signed by: oysteikt
GPG Key ID: 9F2F7D8250F35146
2 changed files with 49 additions and 0 deletions

26
flake.lock generated Normal file
View File

@ -0,0 +1,26 @@
{
"nodes": {
"nixpkgs": {
"locked": {
"lastModified": 1701053011,
"narHash": "sha256-8QQ7rFbKFqgKgLoaXVJRh7Ik5LtI3pyBBCfOnNOGkF0=",
"owner": "NixOS",
"repo": "nixpkgs",
"rev": "5b528f99f73c4fad127118a8c1126b5e003b01a9",
"type": "github"
},
"original": {
"id": "nixpkgs",
"ref": "nixos-23.05",
"type": "indirect"
}
},
"root": {
"inputs": {
"nixpkgs": "nixpkgs"
}
}
},
"root": "root",
"version": 7
}

23
flake.nix Normal file
View File

@ -0,0 +1,23 @@
{
inputs.nixpkgs.url = "nixpkgs/nixos-23.05";
outputs = { self, nixpkgs }: {
apps = {
ed_main_program = {
type = "app";
program = ./treewideMainProgram/ed_main_program.sh;
};
list_missing_main_programs = {
type = "app";
program = ./treewideMainProgram/list_missing_main_programs.sh;
};
verify_main_programs = {
type = "app";
program = ./treewideMainProgram/verify_main_programs.sh;
};
fix_hooks = {
type = "app";
program = ./treewidePrePostPhase/fix_hooks.py;
};
};
};
}