Compare commits

..

2 commits

Author SHA1 Message Date
c84fa67136 . 2025-06-25 15:47:12 +02:00
b601bdd796 updated tarball 2025-06-25 14:08:37 +02:00
2 changed files with 12 additions and 7 deletions

View file

@ -10,8 +10,8 @@
nixpkgs,
}: let
tarball = fetchTarball {
url = "https://git.stuce.ch/stuce/sTodo/releases/download/Release1/release1.tar.gz";
sha256 = "10jyldwmcs5zyz1k8lp3jscn7nhlvn56g0709l5jp91qimw7xiqz";
url = "https://git.stuce.ch/stuce/sTodo/releases/download/Release2/release2.tar.gz";
sha256 = "10jyldwmcs5zyz1k8lp3jsdn7nhlvn56g0709l5jp91qimw7xiqz";
};
in {
packages.x86_64-linux.sTodo = with nixpkgs.legacyPackages.x86_64-linux;
@ -19,7 +19,8 @@
pname = "sTodo";
version = "1.0.0";
src = tarball;
buildInputs = [zlib gmp libffi openssl];
buildInputs = [zlib gmp libffi];
nativeBuildInputs = [openssl];
installPhase = ''
mkdir -p $out/bin
cp $src/sTodo $out/bin
@ -68,10 +69,10 @@
environment.systemPackages = [pkgs.openssl];
users.groups."sTodo".name = "sTodo";
users.users."sTodo" = {
name = "sTodo";
isSystemUser = true;
group = "sTodo";
};
name = "sTodo";
isSystemUser = true;
group = "sTodo";
};
systemd.services.sTodo.preStart = ''
[ -f ${sessionKey} ] || {
"${pkgs.openssl}/bin/openssl" rand 256 > ${sessionKey}

View file

@ -20,6 +20,10 @@
snapshot:
url: https://raw.githubusercontent.com/commercialhaskell/stackage-snapshots/master/lts/20/26.yaml
nix:
enable: true
pure: false
# User packages to be built.
# Various formats can be used as shown in the example below.
#