-
Notifications
You must be signed in to change notification settings - Fork 9
Expand file tree
/
Copy pathflake.nix
More file actions
33 lines (31 loc) · 1.11 KB
/
flake.nix
File metadata and controls
33 lines (31 loc) · 1.11 KB
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
{
description = "Flake providing a package for the SimpleStation14 Launcher.";
inputs.nixpkgs.url = "github:NixOS/nixpkgs/nixpkgs-unstable";
outputs =
{ self, nixpkgs, ... }:
let
forAllSystems =
function:
nixpkgs.lib.genAttrs [ "x86_64-linux" "aarch64-linux" ] (
system: function (import nixpkgs { inherit system; })
);
in
rec {
packages = forAllSystems (pkgs: {
default = packages.${pkgs.system}.simple-station-launcher-development;
# Build via nix build -L 'git+file://PATH?submodules=1'
simple-station-launcher-development = pkgs.callPackage ./nix/package.nix { };
simple-station-launcher = pkgs.callPackage ./nix/package.nix rec {
version = "3.3.0";
source = pkgs.fetchFromGitHub {
owner = "Simple-Station";
repo = "SimpleStationLauncher";
tag = "v${version}";
hash = "sha256-4EaiQOEhIHwIaW+tK+/pIxpGT/4bVuBRvrN17HOH31w=";
fetchSubmodules = true;
};
};
});
formatter = forAllSystems (pkgs: pkgs.nixfmt-rfc-style);
};
}