From b46c7986b200bf504f5b8638ca73bc1f14b61149 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?R=C3=ADgille=20S=2E=20B=2E=20Menezes?= Date: Wed, 20 Oct 2021 14:36:29 -0300 Subject: [PATCH] build kind-scm-deb with nix --- flake.nix | 24 +++++++++++++++++++++++- 1 file changed, 23 insertions(+), 1 deletion(-) diff --git a/flake.nix b/flake.nix index fb7c6aaf7..4570c8944 100644 --- a/flake.nix +++ b/flake.nix @@ -8,7 +8,7 @@ flake-utils.lib.eachDefaultSystem (system: let pkgs = nixpkgs.legacyPackages.${system}; - version = "1.0.95"; + version = "1.0.104"; in { packages.kind-scm = @@ -33,6 +33,28 @@ doCheck = false; }; + packages.kind-scm-deb = + pkgs.stdenv.mkDerivation { + pname = "kind-scm-deb"; + version = version; + + src = self; + + buildInputs = [ pkgs.chez-racket pkgs.chez-exe pkgs.libuuid pkgs.dpkg ]; + + buildPhase = '' + cd bin/scm + make deb + ''; + + installPhase = '' + mkdir -p $out + cp bin/kind-scm_1.0.1-0_amd64.deb $out + ''; + + doCheck = false; + }; + /*packages.kind-js = pkgs.stdenv.mkDerivation { pname = "kind-js";