summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
-rw-r--r--config.mk2
-rw-r--r--flake.lock25
-rw-r--r--flake.nix20
3 files changed, 46 insertions, 1 deletions
diff --git a/config.mk b/config.mk
index 94b1542..80ed843 100644
--- a/config.mk
+++ b/config.mk
@@ -4,7 +4,7 @@ VERSION = 0.1
BUGREPORT = https:\/\/github.com\/ritze\/pinentry-dmenu
# Paths
-PREFIX = /usr/local
+PREFIX = ${out}
MANPREFIX = ${PREFIX}/share/man
X11INC = /usr/X11R6/include
diff --git a/flake.lock b/flake.lock
new file mode 100644
index 0000000..686cf9d
--- /dev/null
+++ b/flake.lock
@@ -0,0 +1,25 @@
+{
+ "nodes": {
+ "nixpkgs": {
+ "locked": {
+ "lastModified": 1699065553,
+ "narHash": "sha256-j8UmH8fqXcOgL6WrlMcvV2m2XQ6OzU0IBucyuJ0vnyQ=",
+ "owner": "NixOS",
+ "repo": "nixpkgs",
+ "rev": "8ab9c53eee434651ce170dee1d9727b974e9a6b6",
+ "type": "github"
+ },
+ "original": {
+ "id": "nixpkgs",
+ "type": "indirect"
+ }
+ },
+ "root": {
+ "inputs": {
+ "nixpkgs": "nixpkgs"
+ }
+ }
+ },
+ "root": "root",
+ "version": 7
+}
diff --git a/flake.nix b/flake.nix
new file mode 100644
index 0000000..e79094c
--- /dev/null
+++ b/flake.nix
@@ -0,0 +1,20 @@
+{
+ outputs = {
+ self,
+ nixpkgs,
+ }:
+ with nixpkgs.legacyPackages.x86_64-linux; {
+ packages.x86_64-linux.default = stdenv.mkDerivation {
+ name = "pinentry-dmenu";
+ src = ./.;
+ buildInputs = [
+ xorg.libX11.dev
+ xorg.libXinerama
+ xorg.libXft
+ gpgme
+ libconfig
+ ];
+ };
+ formatter.x86_64-linux = alejandra;
+ };
+}