From 632d9da4fab0ce4e410479c8a67c1e52b25b9905 Mon Sep 17 00:00:00 2001 From: stupidcomputer Date: Sun, 5 Jan 2025 15:22:08 -0600 Subject: [PATCH] update sssg.nix --- builds/sssg.nix | 28 +++++++--------------------- 1 file changed, 7 insertions(+), 21 deletions(-) diff --git a/builds/sssg.nix b/builds/sssg.nix index 6dd2631..1fa4d24 100644 --- a/builds/sssg.nix +++ b/builds/sssg.nix @@ -1,27 +1,13 @@ -{ stdenv -, lib -, fetchgit -, makeWrapper -, bash -, pandoc -}: - -stdenv.mkDerivation rec { +{ python3Packages, fetchgit }: +with python3Packages; +buildPythonApplication { pname = "sssg"; - version = "1.00"; + version = "1.1"; + + propagatedBuildInputs = [ markdown jinja2 watchdog ]; src = fetchgit { url = "https://git.beepboop.systems/stupidcomputer/sssg"; - hash = "sha256-b0lbHsu628CKPNC6HDLApZQ4HsinTrXCoFqr1KdVIYE="; + hash = "sha256-EPw9zylvRcwYHwBIVhuGRY5YvER6cF7Jdy+pLFojoKA="; }; - - nativeBuildInputs = [ makeWrapper ]; - buildInputs = [ bash pandoc ]; - - installPhase = '' - mkdir -p $out/bin - - cp $src/sssg.sh $out/bin/sssg - wrapProgram $out/bin/sssg --prefix PATH : ${lib.makeBinPath [ bash pandoc ]} - ''; }