mirror of
https://github.com/HigherOrderCO/Kind1.git
synced 2024-09-11 08:45:32 +03:00
create nix derivation
This commit is contained in:
parent
69d0121184
commit
01d8ba8aed
19
bin/scm/default.nix
Normal file
19
bin/scm/default.nix
Normal 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
|
||||
'';
|
||||
}
|
Loading…
Reference in New Issue
Block a user