Reduce files copied into build
This commit is contained in:
parent
66ad565cba
commit
d5cd8905bb
@ -108,7 +108,7 @@ instance MimeRender HTML BytesModel where
|
||||
H.head $ do
|
||||
H.meta ! A.charset "utf-8"
|
||||
H.title "utoy"
|
||||
H.style $ H.toHtml $ Encoding.decodeUtf8 $(embedFile "utoy.css")
|
||||
H.style $ H.toHtml $ Encoding.decodeUtf8 $(embedFile "static/utoy.css")
|
||||
H.body $ do
|
||||
H.table $ for_ model.codepoints $ \(bytes, eiC) -> do
|
||||
H.tr $ do
|
||||
|
@ -10,7 +10,7 @@ copyright: "2023 Paul Brinkmeier"
|
||||
|
||||
extra-source-files:
|
||||
- README.md
|
||||
- utoy.css
|
||||
- static/utoy.css
|
||||
|
||||
dependencies:
|
||||
- base >= 4.7 && < 5
|
||||
|
15
utoy.nix
15
utoy.nix
@ -11,7 +11,22 @@ let
|
||||
version = "0.1.0.0";
|
||||
pname = "utoy";
|
||||
license = pkgs.lib.licenses.mit;
|
||||
src =
|
||||
let
|
||||
buildFiles = [
|
||||
./LICENSE
|
||||
./utoy.cabal
|
||||
./Setup.hs
|
||||
./app
|
||||
./src
|
||||
./static
|
||||
./test
|
||||
];
|
||||
in
|
||||
pkgs.lib.sources.cleanSourceWith {
|
||||
src = ./.;
|
||||
filter = path: _type: pkgs.lib.any (prefix: pkgs.lib.hasPrefix (toString prefix) path) buildFiles;
|
||||
};
|
||||
|
||||
libraryHaskellDepends = haskellDeps haskellPackages;
|
||||
};
|
||||
|
Loading…
x
Reference in New Issue
Block a user