-
Notifications
You must be signed in to change notification settings - Fork 0
/
flake.nix
46 lines (45 loc) · 1.31 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
39
40
41
42
43
44
45
46
{
inputs.nixpkgs.url = "github:NixOS/nixpkgs/nixos-unstable";
inputs.my-nix.url = "github:WhiteBlackGoose/my-nix/master";
outputs = { nixpkgs, my-nix, ... }:
let
systems = [
"x86_64-linux"
"aarch64-linux"
"x86_64-darwin"
"aarch64-darwin"
]; in
{
devShells = nixpkgs.lib.genAttrs systems (arch: {
default = my-nix.dotnetShell
nixpkgs.legacyPackages.${arch}
(p: [ p.sdk_7_0 ])
(p: [ ])
;
});
packages = nixpkgs.lib.genAttrs systems (arch: with nixpkgs.legacyPackages.${arch}; {
default =
buildDotnetModule {
pname = "amcli";
version = builtins.readFile VERSION/VERSION;
src = ./.;
nugetDeps = ./deps.nix;
nativeBuildInputs = [
pkgs.installShellFiles
];
dotnet-sdk = dotnetCorePackages.sdk_7_0;
dotnet-runtime = dotnetCorePackages.runtime_7_0;
projectFile = "./amcli.csproj";
postInstall = ''
installManPage amcli.1
'';
meta = {
description = "CLI interface to AngouriMath symbolic algebra library";
licenses = pkgs.lib.licenses.gpl3;
homepage = "https://am.angouri.org";
mainProgram = "amcli";
};
};
});
};
}