DEVELOPMENT ENVIRONMENT

~liljamo/robots.txt

607a9298218659b6e3dbe0193464bf4516a6bf4f — Jonni Liljamo a month ago 413b11c
feat: nix package
3 files changed, 44 insertions(+), 0 deletions(-)

A .gitignore
A flake.lock
A flake.nix
A .gitignore => .gitignore +1 -0
@@ 0,0 1,1 @@
/result

A flake.lock => flake.lock +27 -0
@@ 0,0 1,27 @@
{
  "nodes": {
    "nixpkgs": {
      "locked": {
        "lastModified": 1729850857,
        "narHash": "sha256-WvLXzNNnnw+qpFOmgaM3JUlNEH+T4s22b5i2oyyCpXE=",
        "owner": "nixos",
        "repo": "nixpkgs",
        "rev": "41dea55321e5a999b17033296ac05fe8a8b5a257",
        "type": "github"
      },
      "original": {
        "owner": "nixos",
        "ref": "nixpkgs-unstable",
        "repo": "nixpkgs",
        "type": "github"
      }
    },
    "root": {
      "inputs": {
        "nixpkgs": "nixpkgs"
      }
    }
  },
  "root": "root",
  "version": 7
}

A flake.nix => flake.nix +16 -0
@@ 0,0 1,16 @@
{
  inputs = {
    nixpkgs.url = "github:nixos/nixpkgs/nixpkgs-unstable";
  };

  outputs = { self, nixpkgs }: {
      packages.x86_64-linux.default = nixpkgs.legacyPackages.x86_64-linux.pkgs.stdenv.mkDerivation {
        name = "robots.txt";
        src = ./.;
        installPhase = ''
          mkdir -p $out
          cp robots.txt $out
        '';
      };
    };
}