Skip to content

Commit

Permalink
remove flake-utils and lazy cross arch outputs
Browse files Browse the repository at this point in the history
  • Loading branch information
adtya committed May 26, 2024
1 parent cdbc7c9 commit 6abc81d
Show file tree
Hide file tree
Showing 2 changed files with 35 additions and 72 deletions.
34 changes: 0 additions & 34 deletions flake.lock

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

73 changes: 35 additions & 38 deletions flake.nix
Original file line number Diff line number Diff line change
Expand Up @@ -12,45 +12,42 @@

inputs = {
nixpkgs.url = "github:NixOS/nixpkgs/nixpkgs-unstable";
flake-utils.url = "github:numtide/flake-utils";
};

outputs = { nixpkgs, flake-utils, ... }:
flake-utils.lib.eachDefaultSystem (system:
let
pkgs = import nixpkgs {
inherit system;
};
outputs = { nixpkgs, ... }:
let
pkgs = import nixpkgs {
system = "x86_64-linux";
};

packages = rec {
libgovarnam = pkgs.callPackage ./govarnam/libgovarnam.nix { };
varnam-cli = pkgs.callPackage ./govarnam { inherit libgovarnam; };
fcitx5-varnam = pkgs.callPackage ./varnam-fcitx5 { inherit libgovarnam; };
};
in
{
formatter = pkgs.nixpkgs-fmt;
devShells.default = pkgs.mkShell {
packages = (with pkgs; [
go_1_22
gopls
gnumake
meson
ninja
cmake
pkg-config
ruby
rubyPackages.ffi
python3
]) ++ (with packages; [ libgovarnam varnam-cli ]);
};
packages = {
inherit (packages) libgovarnam varnam-cli fcitx5-varnam;
default = packages.varnam-cli;
};
overlays.default = final: prev: {
inherit (packages) libgovarnam varnam-cli fcitx5-varnam;
};
}
);
packages = pkgs: rec {
libgovarnam = pkgs.callPackage ./govarnam/libgovarnam.nix { };
varnam-cli = pkgs.callPackage ./govarnam { inherit libgovarnam; };
fcitx5-varnam = pkgs.callPackage ./varnam-fcitx5 { inherit libgovarnam; };
};
in
{
formatter.x86_64-linux = pkgs.nixpkgs-fmt;
devShells.x86_64-linux.default = pkgs.mkShell {
packages = (with pkgs; [
go_1_22
gopls
gnumake
meson
ninja
cmake
pkg-config
ruby
rubyPackages.ffi
python3
]) ++ (with (packages pkgs); [ libgovarnam varnam-cli ]);
};
packages.x86_64-linux = rec {
inherit (packages pkgs) libgovarnam varnam-cli fcitx5-varnam;
default = varnam-cli;
};
overlays.default = final: prev: {
inherit (packages prev) libgovarnam varnam-cli fcitx5-varnam;
};
};
}

0 comments on commit 6abc81d

Please sign in to comment.