1
0
Fork 0
mirror of https://github.com/emacs-twist/org-babel.git synced 2025-03-13 20:30:04 +00:00

Merge pull request #4 from emacs-twist/run-check

Run check
This commit is contained in:
Akira Komamura 2022-12-02 13:09:42 +09:00 committed by GitHub
commit b448845abb
No known key found for this signature in database
GPG key ID: 4AEE18F83AFDEB23
3 changed files with 84 additions and 0 deletions

View file

@ -22,3 +22,6 @@ jobs:
run: nix-instantiate --eval --strict test/test.nix
- name: Test parameter parsing
run: nix-instantiate --eval --strict test/testParams.nix
- name: Check the derivation
run: nix flake check --override-input org-babel ..
working_directory: test

52
test/flake.lock generated Normal file
View file

@ -0,0 +1,52 @@
{
"nodes": {
"flake-utils": {
"locked": {
"lastModified": 1667395993,
"narHash": "sha256-nuEHfE/LcWyuSWnS8t12N1wc105Qtau+/OdUAjtQ0rA=",
"owner": "numtide",
"repo": "flake-utils",
"rev": "5aed5285a952e0b949eb3ba02c12fa4fcfef535f",
"type": "github"
},
"original": {
"id": "flake-utils",
"type": "indirect"
}
},
"nixpkgs": {
"locked": {
"lastModified": 0,
"narHash": "sha256-Ctij+dOi0ZZIfX5eMhgwugfvB+WZSrvVNAyAuANOsnQ=",
"path": "/nix/store/m2vv0bxfchzrjngx8wi0i7dhzb9q2g50-source",
"type": "path"
},
"original": {
"id": "nixpkgs",
"type": "indirect"
}
},
"org-babel": {
"locked": {
"lastModified": 1669884064,
"narHash": "sha256-Bf6APh6QItrNZN9b+C1herT1Dv3WVJPwgwMWCqxFz2k=",
"type": "git",
"url": "file:///home/akirakomamura/work2/foss/emacs-twist/nix-org-babel"
},
"original": {
"owner": "emacs-twist",
"repo": "org-babel",
"type": "github"
}
},
"root": {
"inputs": {
"flake-utils": "flake-utils",
"nixpkgs": "nixpkgs",
"org-babel": "org-babel"
}
}
},
"root": "root",
"version": 7
}

29
test/flake.nix Normal file
View file

@ -0,0 +1,29 @@
{
inputs.org-babel.url = "github:emacs-twist/org-babel";
outputs = {
org-babel,
flake-utils,
nixpkgs,
...
}:
flake-utils.lib.eachSystem [
"x86_64-linux"
"x86_64-darwin"
"aarch64-linux"
"aarch64-darwin"
] (system: let
pkgs = import nixpkgs {
inherit system;
overlays = [
org-babel.overlays.default
];
};
in {
checks = {
build =
pkgs.tangleOrgBabelFile "example" ./testTangle.org
{};
};
});
}