Add flake.nix for lib

This commit is contained in:
niten 2023-05-10 10:49:39 -07:00
parent 9142e3d8e9
commit 6857e3bd36
2 changed files with 33 additions and 3 deletions

View File

@ -2,9 +2,6 @@
:paths ["src/clj" "src/java"] :paths ["src/clj" "src/java"]
:deps { :deps {
org.clojure/clojure { :mvn/version "1.11.1" } org.clojure/clojure { :mvn/version "1.11.1" }
;;org.freedesktop/libdbus-java { :mvn/version "2.7" }
;;com.github.hypfvieh/libmatthew { :mvn/version "0.8.3" }
;;com.github.hypfvieh/dbus-java { :mvn/version "3.3.2" }
com.github.hypfvieh/dbus-java-core { :mvn/version "4.3.0" } com.github.hypfvieh/dbus-java-core { :mvn/version "4.3.0" }
com.github.hypfvieh/dbus-java-transport-native-unixsocket { :mvn/version "4.3.0" } com.github.hypfvieh/dbus-java-transport-native-unixsocket { :mvn/version "4.3.0" }
} }

33
flake.nix Normal file
View File

@ -0,0 +1,33 @@
{
description = "Library for sending DBus notifications.";
inputs = {
nixpkgs.url = "nixpkgs/nixos-22.11";
utils.url = "github:numtide/flake-utils";
helpers = {
url = "git+https://git.fudo.org/fudo-public/nix-helpers.git";
inputs.nixpkgs.follows = "nixpkgs";
};
};
outputs = { self, nixpkgs, utils, helpers, ... }:
utils.lib.eachDefaultSystem (system:
let pkgs = nixpkgs.legacyPackages."${system}";
in {
packages = rec {
default = notifier;
notifier = helpers.packages."${system}".mkClojureLib {
name = "org.fudo/notifier";
src = ./.;
};
};
devShells = rec {
default = updateDeps;
updateDeps = pkgs.mkShell {
buildInputs = with helpers.packages."${system}";
[ updateClojureDeps ];
};
};
});
}