Add flake.nix for lib
This commit is contained in:
parent
9142e3d8e9
commit
6857e3bd36
3
deps.edn
3
deps.edn
|
@ -2,9 +2,6 @@
|
|||
:paths ["src/clj" "src/java"]
|
||||
:deps {
|
||||
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-transport-native-unixsocket { :mvn/version "4.3.0" }
|
||||
}
|
||||
|
|
|
@ -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 ];
|
||||
};
|
||||
};
|
||||
});
|
||||
}
|
Loading…
Reference in New Issue