Add Matlab Compat

David Crompton 2023-07-28 10:02:26 -04:00
parent 2b8e38e02c
commit 9948d46d50
5 changed files with 54 additions and 5 deletions

View File

@ -1,5 +1,42 @@
{ {
"nodes": { "nodes": {
"flake-compat": {
"flake": false,
"locked": {
"lastModified": 1673956053,
"narHash": "sha256-4gtG9iQuiKITOjNQQeQIpoIB6b16fm+504Ch3sNKLd8=",
"owner": "edolstra",
"repo": "flake-compat",
"rev": "35bb57c0c8d8b62bbfd284272c928ceb64ddbde9",
"type": "github"
},
"original": {
"owner": "edolstra",
"repo": "flake-compat",
"type": "github"
}
},
"nix-matlab": {
"inputs": {
"flake-compat": "flake-compat",
"nixpkgs": [
"nixpkgs"
]
},
"locked": {
"lastModified": 1690470066,
"narHash": "sha256-/z/TDmKE6wKRiyi/qwp3SG6jmFBIg2EvjrF2GldAmOs=",
"owner": "doronbehar",
"repo": "nix-matlab",
"rev": "8b48ad6bf6843f7c2fb9aae6032aa9b8267f7830",
"type": "gitlab"
},
"original": {
"owner": "doronbehar",
"repo": "nix-matlab",
"type": "gitlab"
}
},
"nixpkgs": { "nixpkgs": {
"locked": { "locked": {
"lastModified": 1690470004, "lastModified": 1690470004,
@ -34,6 +71,7 @@
}, },
"root": { "root": {
"inputs": { "inputs": {
"nix-matlab": "nix-matlab",
"nixpkgs": "nixpkgs", "nixpkgs": "nixpkgs",
"sops-nix": "sops-nix" "sops-nix": "sops-nix"
} }

View File

@ -8,10 +8,16 @@
# Follow the system nixpkgs # Follow the system nixpkgs
inputs.nixpkgs.follows = "nixpkgs"; inputs.nixpkgs.follows = "nixpkgs";
}; };
nix-matlab = {
url = "gitlab:doronbehar/nix-matlab";
# Follow the system nixpkgs
inputs.nixpkgs.follows = "nixpkgs";
}; };
outputs = { self, nixpkgs, sops-nix }: { };
outputs = { self, nixpkgs, sops-nix, nix-matlab }@attrs: {
nixosConfigurations.kcnhub = nixpkgs.lib.nixosSystem { nixosConfigurations.kcnhub = nixpkgs.lib.nixosSystem {
system = "x86_64-linux"; system = "x86_64-linux";
specialArgs = attrs;
modules = [ modules = [
./machines/kcnhub/configuration.nix ./machines/kcnhub/configuration.nix
sops-nix.nixosModules.sops sops-nix.nixosModules.sops

View File

@ -1,7 +1,3 @@
# Edit this configuration file to define what should be installed on
# your system. Help is available in the configuration.nix(5) man page
# and in the NixOS manual (accessible by running nixos-help).
{ config, pkgs, ... }: { config, pkgs, ... }:
{ {

View File

@ -2,5 +2,6 @@
imports = [ imports = [
./packages/office.nix ./packages/office.nix
./packages/terminal.nix ./packages/terminal.nix
./packages/matlab.nix
]; ];
} }

View File

@ -0,0 +1,8 @@
{ config, lib, pkgs, nix-matlab, ... }: {
environment.systemPackages = with nix-matlab.packages.x86_64-linux; [
matlab
matlab-shell
matlab-mlint
matlab-mex
];
}