24 lines
367 B
Nix
24 lines
367 B
Nix
{ pkgs, lib }:
|
|
|
|
pkgs.stdenv.mkDerivation {
|
|
pname = "sox";
|
|
version = "1.0";
|
|
|
|
src = ./.;
|
|
|
|
buildInputs = [ pkgs.go pkgs.libqalculate ];
|
|
|
|
buildPhase = ''
|
|
# Nothing to build for a static site
|
|
# cp -r $src/* $out/var/www/my-static-site/
|
|
mkdir -p $out/bin
|
|
go build -o $out/bin/ $src/
|
|
'';
|
|
|
|
installPhase = ''
|
|
chmod +x $out/bin/sox
|
|
'';
|
|
}
|
|
|
|
|