-
Notifications
You must be signed in to change notification settings - Fork 4
/
flake.nix
38 lines (32 loc) · 1.02 KB
/
flake.nix
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
{
inputs = {
nixpkgs.url = "github:NixOS/nixpkgs/nixos-unstable";
flake-parts.url = "github:hercules-ci/flake-parts";
systems.url = "github:nix-systems/default";
};
outputs =
inputs:
inputs.flake-parts.lib.mkFlake { inherit inputs; } {
systems = import inputs.systems;
perSystem =
{ pkgs, lib, ... }: rec {
packages.default = pkgs.rustPlatform.buildRustPackage rec {
pname = "zola";
version = "1.0.0";
src = pkgs.fetchFromGitHub {
owner = "ericthelemur";
repo = pname;
rev = "453b92af84ca653125423f8c0e4405842e140ca1";
hash = "sha256-5RlfNwuCbon63SygVmMKqvmStTGQnsAouxE5IjZMejw=";
};
cargoLock = {
lockFile = "${src}/Cargo.lock";
allowBuiltinFetchGit = true;
};
};
devShells.default = pkgs.mkShell {
buildInputs = with pkgs; [ packages.default ];
};
};
};
}