Skip to content

Commit

Permalink
Add nixos to circleci
Browse files Browse the repository at this point in the history
  • Loading branch information
jiegec committed Jan 20, 2023
1 parent 32f1a23 commit ef06826
Show file tree
Hide file tree
Showing 2 changed files with 35 additions and 0 deletions.
11 changes: 11 additions & 0 deletions .circleci/config.yml
Original file line number Diff line number Diff line change
Expand Up @@ -102,6 +102,16 @@ jobs:
make check
cat test-suite.log
make distcheck
nixos:
docker:
- image: docker.io/nixos/nix:latest
steps:
- checkout
- run:
name: Build
command: |
nix-channel --update
nix-build
bigsur:
macos:
xcode: 12.5.1
Expand Down Expand Up @@ -154,4 +164,5 @@ workflows:
matrix:
parameters:
distro: [fedora36, fedora37, centos8, centos9, debian11, ubuntu2204, archlinux, opensuse15]
- nixos
- bigsur
24 changes: 24 additions & 0 deletions default.nix
Original file line number Diff line number Diff line change
@@ -0,0 +1,24 @@
with import <nixpkgs> {};

stdenv.mkDerivation {
name = "lsof";
version = "1.0";

src = ./.;

postPatch = ''
patchShebangs .
'';

nativeBuildInputs = [
autoreconfHook
groff
pkg-config
];

doCheck = true;
checkInputs = lib.optionals stdenv.isLinux [
util-linux
procps
];
}

0 comments on commit ef06826

Please sign in to comment.