From 8b69ba41d10dc301af77283795ab20801160bd16 Mon Sep 17 00:00:00 2001 From: Tom Barrett Date: Sat, 4 Nov 2023 12:03:11 +0100 Subject: flake --- config.mk | 2 +- flake.lock | 25 +++++++++++++++++++++++++ flake.nix | 20 ++++++++++++++++++++ 3 files changed, 46 insertions(+), 1 deletion(-) create mode 100644 flake.lock create mode 100644 flake.nix 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; + }; +} -- cgit v1.2.3