adding cargo...
This commit is contained in:
parent
51410f2469
commit
8f3e898385
4 changed files with 671 additions and 29 deletions
21
flake.nix
21
flake.nix
|
@ -2,20 +2,31 @@
|
|||
description = "A Church Presentation Application";
|
||||
|
||||
inputs = {
|
||||
cargo2nix.url = "github:cargo2nix/cargo2nix/release-0.11.0";
|
||||
nixpkgs.url = "github:nixos/nixpkgs/nixos-unstable";
|
||||
flake-utils.url = "github:numtide/flake-utils";
|
||||
};
|
||||
|
||||
outputs = { self, nixpkgs, flake-utils }:
|
||||
outputs = inputs: with inputs;
|
||||
flake-utils.lib.eachDefaultSystem
|
||||
(system:
|
||||
let
|
||||
pkgs = nixpkgs.legacyPackages.${system};
|
||||
pkgs = import nixpkgs {
|
||||
inherit system;
|
||||
overlays = [cargo2nix.overlays.default];
|
||||
};
|
||||
src = ./.;
|
||||
in
|
||||
rustPkgs = pkgs.rustBuilder.makePackageSet {
|
||||
rustVersion = "1.61.0";
|
||||
packageFun = import ./Cargo.nix;
|
||||
};
|
||||
|
||||
in rec
|
||||
{
|
||||
devShell = import ./shell.nix { inherit pkgs; };
|
||||
defaultPackage = pkgs.libsForQt5.callPackage ./default.nix {};
|
||||
libre-presenter = (rustPkgs.workspace.libre-presenter {}).bin;
|
||||
|
||||
devShell = import ./shell.nix { inherit pkgs; };
|
||||
defaultPackage = pkgs.libsForQt5.callPackage ./default.nix {};
|
||||
}
|
||||
);
|
||||
}
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue