Skip to content

Commit

Permalink
move nix stuff to contrib
Browse files Browse the repository at this point in the history
  • Loading branch information
Kl4rry committed May 19, 2024
1 parent 9b4fb61 commit a833910
Show file tree
Hide file tree
Showing 4 changed files with 112 additions and 110 deletions.
61 changes: 61 additions & 0 deletions contrib/flake.lock

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

49 changes: 49 additions & 0 deletions contrib/flake.nix
Original file line number Diff line number Diff line change
@@ -0,0 +1,49 @@
{
inputs = {
flake-utils.url = "github:numtide/flake-utils";
naersk.url = "github:nix-community/naersk";
nixpkgs.follows = "naersk/nixpkgs";
};

outputs = { self, nixpkgs, flake-utils, naersk }:
flake-utils.lib.eachDefaultSystem (system:
let
packageName = "simp";

pkgs = import nixpkgs {
inherit system;
};
deps = with pkgs; [
git
pkg-config
gtk3
xorg.libxcb
speechd
libxkbcommon
openssl
rustc
cargo
];
naersk' = naersk.lib."${system}";
in
rec {
packages.${packageName} = naersk'.buildPackage {
pname = "${packageName}";
root = ./.;
nativeBuildInputs = deps ++ [ pkgs.wrapGAppsHook ];
};
defaultPackage = packages.${packageName};

apps.${packageName} = packages.${packageName};
defaultApp = apps.${packageName};

devShell = pkgs.mkShell {
buildInputs = deps ++ (with pkgs; [
rustfmt
clippy
rust-analyzer
]);
};
}
);
}
61 changes: 0 additions & 61 deletions flake.lock

This file was deleted.

1 change: 1 addition & 0 deletions flake.lock

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

49 changes: 0 additions & 49 deletions flake.nix

This file was deleted.

1 change: 1 addition & 0 deletions flake.nix

0 comments on commit a833910

Please sign in to comment.