add flake

master
Rachel Lambda Samuelsson 2023-08-02 17:01:40 +02:00
parent 239e13246f
commit cd5df7b956
3 changed files with 38 additions and 1 deletions

24
flake.lock 100644
View File

@ -0,0 +1,24 @@
{
"nodes": {
"nixpkgs": {
"locked": {
"lastModified": 1690630041,
"narHash": "sha256-gbnvqm5goS9DSKAqGFpq3398aOpwejmq4qWikqmQyRo=",
"path": "/nix/store/qxgp86sdhxwzj0k89kz2aaw0xw7d8f6i-source",
"rev": "d57e8c535d4cbb07f441c30988ce52eec69db7a8",
"type": "path"
},
"original": {
"id": "nixpkgs",
"type": "indirect"
}
},
"root": {
"inputs": {
"nixpkgs": "nixpkgs"
}
}
},
"root": "root",
"version": 7
}

12
flake.nix 100644
View File

@ -0,0 +1,12 @@
{
description = "My website";
outputs = { self, nixpkgs }:
{
devShells.x86_64-linux.default = import ./shell.nix {
pkgs = nixpkgs.legacyPackages."x86_64-linux";
};
defaultPackage.x86_64-linux = self.devShells.x86_64-linux.default;
};
}

View File

@ -1,4 +1,5 @@
with import <nixpkgs> {}; let
{ pkgs, ... }:
with pkgs; let
json-minify = (buildRubyGem {
gemName = "json-minify";