Build nix
This commit is contained in:
parent
4d479699ec
commit
726fb93ab2
2
.gitignore
vendored
2
.gitignore
vendored
@ -1,3 +1,5 @@
|
||||
.sass-cache
|
||||
node_modules
|
||||
bower_components
|
||||
css/creative.css
|
||||
css/creative.css.map
|
||||
|
27
default.nix
Normal file
27
default.nix
Normal file
@ -0,0 +1,27 @@
|
||||
{ pkgs ? import <nixpkgs> {} }:
|
||||
|
||||
pkgs.stdenv.mkDerivation rec {
|
||||
name= "site-max";
|
||||
|
||||
inherit (pkgs) sassc;
|
||||
inherit (pkgs) stdenv;
|
||||
|
||||
src = ./.;
|
||||
|
||||
buildPhase = ''
|
||||
${sassc}/bin/sassc -m auto -t compressed scss/creative.scss css/creative.css
|
||||
'';
|
||||
|
||||
installPhase = ''
|
||||
mkdir -p $out/
|
||||
cp -R . $out/
|
||||
'';
|
||||
|
||||
meta = {
|
||||
description = "Site de présentation de Max Spiegel";
|
||||
homepage = https://maxspiegel.fr/;
|
||||
maintainers = with stdenv.lib.maintainers; [ nyanloutre ];
|
||||
license = stdenv.lib.licenses.cc-by-nc-sa-40;
|
||||
platforms = stdenv.lib.platforms.all;
|
||||
};
|
||||
}
|
Loading…
Reference in New Issue
Block a user