Skip to content

Commit

Permalink
build kind-scm-deb with nix
Browse files Browse the repository at this point in the history
  • Loading branch information
rigille committed Oct 20, 2021
1 parent 436b11d commit b46c798
Showing 1 changed file with 23 additions and 1 deletion.
24 changes: 23 additions & 1 deletion flake.nix
Original file line number Diff line number Diff line change
Expand Up @@ -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 =
Expand All @@ -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";
Expand Down

0 comments on commit b46c798

Please sign in to comment.