diff options
author | Tom Barrett <tom@tombarrett.xyz> | 2023-11-04 12:03:11 +0100 |
---|---|---|
committer | Tom Barrett <tom@tombarrett.xyz> | 2023-11-04 12:03:11 +0100 |
commit | 8b69ba41d10dc301af77283795ab20801160bd16 (patch) | |
tree | 1c047a1aa07119246a29533af341f7f166c06e8a | |
parent | feb122116fdb3619502c2e8d88f6dd570bc4b4ca (diff) |
-rw-r--r-- | config.mk | 2 | ||||
-rw-r--r-- | flake.lock | 25 | ||||
-rw-r--r-- | flake.nix | 20 |
3 files changed, 46 insertions, 1 deletions
@@ -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; + }; +} |