mirror of
https://github.com/javalsai/lidm.git
synced 2025-08-31 02:18:00 +02:00
feat(nix): make flake read version from makefile
This commit is contained in:
@@ -1,8 +1,11 @@
|
|||||||
{
|
{
|
||||||
|
description = "A ✨fully✨ colorful customizable TUI display manager made in C for simplicity.";
|
||||||
|
|
||||||
inputs = {
|
inputs = {
|
||||||
flake-utils.url = "github:numtide/flake-utils";
|
flake-utils.url = "github:numtide/flake-utils";
|
||||||
nixpkgs.url = "github:nixos/nixpkgs?ref=nixos-unstable";
|
nixpkgs.url = "github:nixos/nixpkgs?ref=nixos-unstable";
|
||||||
};
|
};
|
||||||
|
|
||||||
outputs =
|
outputs =
|
||||||
{ flake-utils, nixpkgs, ... }:
|
{ flake-utils, nixpkgs, ... }:
|
||||||
flake-utils.lib.eachDefaultSystem (
|
flake-utils.lib.eachDefaultSystem (
|
||||||
@@ -11,7 +14,9 @@
|
|||||||
pkgs = import nixpkgs { inherit system; };
|
pkgs = import nixpkgs { inherit system; };
|
||||||
|
|
||||||
name = "lidm";
|
name = "lidm";
|
||||||
version = "0.0.2";
|
version = builtins.elemAt (
|
||||||
|
builtins.match "VERSION[[:blank:]]*=[[:space:]]*([^\n]*)\n.*" (builtins.readFile ./Makefile)
|
||||||
|
) 0;
|
||||||
|
|
||||||
lidm = (
|
lidm = (
|
||||||
pkgs.stdenv.mkDerivation {
|
pkgs.stdenv.mkDerivation {
|
||||||
|
Reference in New Issue
Block a user