summaryrefslogtreecommitdiff
path: root/network/flake.nix
diff options
context:
space:
mode:
Diffstat (limited to 'network/flake.nix')
-rw-r--r--network/flake.nix53
1 files changed, 0 insertions, 53 deletions
diff --git a/network/flake.nix b/network/flake.nix
deleted file mode 100644
index f8cf3dc..0000000
--- a/network/flake.nix
+++ /dev/null
@@ -1,53 +0,0 @@
-{
- description = "NetworkManager wrapper library";
-
- inputs.nixpkgs.url = "github:nixos/nixpkgs/nixos-unstable";
-
- outputs = {
- self,
- nixpkgs,
- }: let
- version = builtins.replaceStrings ["\n"] [""] (builtins.readFile ./version);
- system = "x86_64-linux";
- pkgs = import nixpkgs {inherit system;};
-
- nativeBuildInputs = with pkgs; [
- gobject-introspection
- meson
- pkg-config
- ninja
- vala
- ];
-
- buildInputs = with pkgs; [
- glib
- networkmanager
- ];
- in {
- packages.${system} = rec {
- default = network;
- network = pkgs.stdenv.mkDerivation {
- inherit nativeBuildInputs buildInputs;
- pname = "astal-network";
- version = version;
- src = ./.;
- outputs = ["out" "dev"];
- };
- };
-
- devShells.${system} = {
- default = pkgs.mkShell {
- inherit nativeBuildInputs buildInputs;
- };
- network = pkgs.mkShell {
- inherit nativeBuildInputs;
- buildInputs =
- buildInputs
- ++ [
- self.packages.${system}.default
- pkgs.gjs
- ];
- };
- };
- };
-}