1 Commits

Author SHA1 Message Date
7ee21ae6b0 change how actions work
Some checks failed
cache / build (push) Has been cancelled
check / build (push) Successful in 15h26m1s
2026-02-01 14:52:09 +04:00
3 changed files with 14 additions and 58 deletions

View File

@@ -1,6 +1,8 @@
name: cache
on:
push:
branches:
- main
jobs:
build:
runs-on: nix

View File

@@ -0,0 +1,12 @@
name: check
on:
push:
branches-ignore:
- main
pull_request:
jobs:
build:
runs-on: nix
steps:
- uses: actions/checkout@v4
- run: nix-fast-build --skip-cached --systems "x86_64-linux aarch64-linux" --no-nom

View File

@@ -1,58 +0,0 @@
{
lib,
stdenv,
fetchFromGitHub,
autoconf,
autoconf-archive,
gcc,
glib,
dbus-glib,
libxml2,
pkg-config,
automake,
gtk-doc,
systemd,
upower,
libnl,
man-db,
}:
stdenv.mkDerivation (final: {
pname = "intel-lpmd";
version = "0.1.0";
nativeBuildInputs = [
autoconf
autoconf-archive
gcc
man-db
glib
dbus-glib
libxml2
pkg-config
gtk-doc
systemd
automake
upower
libnl
];
src = fetchFromGitHub {
owner = "intel";
repo = "intel-lpmd";
rev = "v${final.version}";
sha256 = "sha256-eZBgWpR2tdSDeqYV4Y2h2j5UeJebQg2tXlXcUywwZEA=";
};
# https://github.com/intel/intel-lpmd?tab=readme-ov-file#build-and-install
configurePhase = ''
./autogen.sh --localstatedir=/var --sysconfdir=$out/etc
'';
buildPhase = ''
make
mkdir -p "$out/bin"
cp ./intel_lpmd $out/bin/intel_lpmd
'';
# Needed for config files, which the program will not run without.
installPhase = ''
mkdir -p "$out/etc/intel_lpmd/"
cp $src/data/* $out/etc/intel_lpmd/ -r
'';
})