mirror of
https://github.com/javalsai/lidm.git
synced 2025-08-30 18:08:00 +02:00
feat(nix): reorganize nix flake for modularity and flexibility
This commit is contained in:
26
assets/pkg/nix/lidm.nix
Normal file
26
assets/pkg/nix/lidm.nix
Normal file
@@ -0,0 +1,26 @@
|
||||
{ config, pkgs, ...}: pkgs.stdenv.mkDerivation rec {
|
||||
pname = "lidm";
|
||||
version = config.version;
|
||||
src = config.src;
|
||||
|
||||
nativeBuildInputs = with pkgs; [
|
||||
gcc
|
||||
gnumake
|
||||
linux-pam
|
||||
];
|
||||
|
||||
makeFlags = [
|
||||
"DESTDIR=$(out)"
|
||||
"PREFIX="
|
||||
];
|
||||
|
||||
installPhase = ''
|
||||
make install DESTDIR=$out PREFIX=
|
||||
mkdir -p $out/etc/systemd/system/
|
||||
make install-service-systemd DESTDIR=$out PREFIX=
|
||||
'';
|
||||
|
||||
fixupPhase = ''
|
||||
rm -rf $out/etc
|
||||
'';
|
||||
}
|
Reference in New Issue
Block a user