create nix derivation

This commit is contained in:
Rígille S. B. Menezes 2023-04-10 16:38:55 -03:00
parent 69d0121184
commit 01d8ba8aed

19
bin/scm/default.nix Normal file
View File

@ -0,0 +1,19 @@
{ pkgs ? import <nixpkgs> {} }:
pkgs.stdenv.mkDerivation {
name = "kind-scm";
src = ./.;
buildInputs = [
pkgs.chez
];
buildPhase = ''
cd src/
scheme compile.scm
cd ..
chmod +x bin/kind-scm
'';
installPhase = ''
mkdir $out
mv bin/kind-scm $out/kind-scm
'';
}