mirror of
https://github.com/emacs-twist/org-babel.git
synced 2025-03-05 16:27:07 +00:00
tests: Add flake.nix to run nix flake check
against it
Ensure that the derivation does not have IFD.
This commit is contained in:
parent
92e7d57aa5
commit
8b1e46093f
2 changed files with 81 additions and 0 deletions
52
test/flake.lock
generated
Normal file
52
test/flake.lock
generated
Normal 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
29
test/flake.nix
Normal 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
|
||||
{};
|
||||
};
|
||||
});
|
||||
}
|
Loading…
Add table
Reference in a new issue