julia_15: nixpkgs unstable → 21.05

Apparently the working julia version was moved into a stable channel since I
last looked at this, and the version in unstable is broken again. Fun!

Anyways, it builds again now (as part of parsons's config)
This commit is contained in:
stuebinm 2021-08-26 22:11:54 +02:00
parent a00e28d85a
commit 78845777ad
No known key found for this signature in database
GPG key ID: 8FBE8AAD32FA12B7

View file

@ -1,6 +1,6 @@
{ config, lib, pkgs, ... }: { config, lib, pkgs, ... }:
let sources = import ../../../nix/sources.nix; let sources = import ../nix/sources.nix;
in in
{ {
containers.pluto = { containers.pluto = {
@ -14,8 +14,8 @@ in
config = {pkgs, config, ...}: { config = {pkgs, config, ...}: {
systemd.services.pluto = systemd.services.pluto =
let let
julia = (import ../../../pkgs/pluto) julia = (import ../pkgs/pluto)
{pkgs = import sources.nixpkgs-unstable {};}; {pkgs = import sources.nixpkgs {};};
pluto = pkgs.stdenv.mkDerivation { pluto = pkgs.stdenv.mkDerivation {
name = "pluto-standalone"; name = "pluto-standalone";
buildPhase = "mkdir $out"; buildPhase = "mkdir $out";
@ -23,7 +23,7 @@ in
cp *.toml $out cp *.toml $out
cp *.jl $out cp *.jl $out
''; '';
src = ../../../pkgs/pluto; src = ../pkgs/pluto;
}; };
in { in {
enable = true; enable = true;
@ -48,6 +48,7 @@ in
users.users.pluto = { users.users.pluto = {
group = "pluto"; group = "pluto";
home = "/notebooks"; home = "/notebooks";
isSystemUser = true;
}; };
users.groups.pluto = {}; users.groups.pluto = {};
systemd.tmpfiles.rules = [ systemd.tmpfiles.rules = [