xo-unit: + ./pkgs/xo-refcnt.nix for nix CI
This commit is contained in:
parent
ac6b55c447
commit
4cfad33578
1 changed files with 37 additions and 0 deletions
37
pkgs/xo-refcnt.nix
Normal file
37
pkgs/xo-refcnt.nix
Normal file
|
|
@ -0,0 +1,37 @@
|
||||||
|
{
|
||||||
|
# nixpkgs dependencies
|
||||||
|
stdenv, cmake, catch2, # ... other deps here
|
||||||
|
|
||||||
|
# xo dependencies
|
||||||
|
xo-cmake, xo-indentlog
|
||||||
|
|
||||||
|
# args
|
||||||
|
|
||||||
|
# attrset for fetching source code.
|
||||||
|
# { type, owner, repo, ref }
|
||||||
|
#
|
||||||
|
# e.g. type="github", owner="rconybea", repo="cmake-examples", ref="ex1b"
|
||||||
|
#
|
||||||
|
# see [[../flake.nix]]
|
||||||
|
#
|
||||||
|
#cmake-examples-ex1-path
|
||||||
|
|
||||||
|
# someconfigurationoption ? false
|
||||||
|
} :
|
||||||
|
|
||||||
|
stdenv.mkDerivation (finalattrs:
|
||||||
|
{
|
||||||
|
name = "xo-refcnt";
|
||||||
|
|
||||||
|
src = (fetchGit {
|
||||||
|
url = "https://github.com/rconybea/refcnt";
|
||||||
|
version = "1.0";
|
||||||
|
#ref = "ex1";
|
||||||
|
#rev = "c0472c9d7e4d2c53bfb977d3182380832fe96645";
|
||||||
|
});
|
||||||
|
|
||||||
|
cmakeFlags = ["-DCMAKE_MODULE_PATH=${xo-cmake}/share/cmake"];
|
||||||
|
doCheck = true;
|
||||||
|
nativeBuildInputs = [ cmake catch2 ];
|
||||||
|
propagatedBuildInputs = [ xo-indentlog ];
|
||||||
|
})
|
||||||
Loading…
Add table
Add a link
Reference in a new issue