From b601bdd79693b7fae04542c772a91db17b254f20 Mon Sep 17 00:00:00 2001 From: stuce-bot Date: Wed, 25 Jun 2025 14:08:37 +0200 Subject: [PATCH 1/2] updated tarball --- flake.nix | 10 +++++----- stack.yaml | 4 ++++ 2 files changed, 9 insertions(+), 5 deletions(-) diff --git a/flake.nix b/flake.nix index 8cec79d..d7222c2 100644 --- a/flake.nix +++ b/flake.nix @@ -10,7 +10,7 @@ nixpkgs, }: let tarball = fetchTarball { - url = "https://git.stuce.ch/stuce/sTodo/releases/download/Release1/release1.tar.gz"; + url = "https://git.stuce.ch/stuce/sTodo/releases/download/Release2/release2.tar.gz"; sha256 = "10jyldwmcs5zyz1k8lp3jscn7nhlvn56g0709l5jp91qimw7xiqz"; }; in { @@ -68,10 +68,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} diff --git a/stack.yaml b/stack.yaml index be7a8b4..3092e82 100644 --- a/stack.yaml +++ b/stack.yaml @@ -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. # From c84fa67136162cef2d54246e5631842c2ebf8b03 Mon Sep 17 00:00:00 2001 From: stuce-bot Date: Wed, 25 Jun 2025 15:47:12 +0200 Subject: [PATCH 2/2] . --- flake.nix | 5 +++-- 1 file changed, 3 insertions(+), 2 deletions(-) diff --git a/flake.nix b/flake.nix index d7222c2..3896e0e 100644 --- a/flake.nix +++ b/flake.nix @@ -11,7 +11,7 @@ }: let tarball = fetchTarball { url = "https://git.stuce.ch/stuce/sTodo/releases/download/Release2/release2.tar.gz"; - sha256 = "10jyldwmcs5zyz1k8lp3jscn7nhlvn56g0709l5jp91qimw7xiqz"; + 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