Skip to content

marler8997/nix-windows

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

1 Commit
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

Nix on Windows

The goal is to be able to leverage nix software build/deployment strategies on windows.

The Plan

  • gradually integrate windows support into https://github.com/NixOS/nix
    • start with libutil
  • port nix-store to run on windows first
    • this implies that you can build/manage derivations

Build

nix-build -A nixwin32
nix-build -A nixwin64

Nix Store on Windows

The big question for the nix store on windows is user environments. The biggest problem here is that you can't add symbolic links, so creating a combined user-environment with all the packages isn't straightforward. My current idea is to create an "executable" user environment, where instead of symbolic links, we just use small bash wrappers, i.e.

c:\nix\store\...-coreutils-1.0.0\bin\ls
c:\nix\store\...-bash-1.0.0\bin\bash
c:\nix-store\...-user-environment\bin\ls.bat
c:\nix-store\...-user-environment\bin\bash.bat

About

An exploration on nix for windows.

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published