mirror of
https://github.com/KeyZox71/ft_minipowershell.git
synced 2026-10-16 03:10:07 +02:00
「✨」 feat: nixos poggies uwu gedagedigedagedayo
This commit is contained in:
1 parent
0273b019c4
commit
e19660cfa7
4 files changed
+62
-3
No files matched your search
+1
-3
@@ -1,11 +1,9 @@
|
||||
obj/
|
||||
minishell
|
||||
.direnv
|
||||
.envrc
|
||||
flake.nix
|
||||
compile_commands.json
|
||||
.cache
|
||||
libft/**/*.o
|
||||
libft/**/*.a
|
||||
src/main.c
|
||||
vgcore.*
|
||||
result
|
||||
Generated
+27
@@ -0,0 +1,27 @@
|
||||
{
|
||||
"nodes": {
|
||||
"nixpkgs": {
|
||||
"locked": {
|
||||
"lastModified": 1733261153,
|
||||
"narHash": "sha256-eq51hyiaIwtWo19fPEeE0Zr2s83DYMKJoukNLgGGpek=",
|
||||
"owner": "nixos",
|
||||
"repo": "nixpkgs",
|
||||
"rev": "b681065d0919f7eb5309a93cea2cfa84dec9aa88",
|
||||
"type": "github"
|
||||
},
|
||||
"original": {
|
||||
"owner": "nixos",
|
||||
"ref": "nixos-24.11",
|
||||
"repo": "nixpkgs",
|
||||
"type": "github"
|
||||
}
|
||||
},
|
||||
"root": {
|
||||
"inputs": {
|
||||
"nixpkgs": "nixpkgs"
|
||||
}
|
||||
}
|
||||
},
|
||||
"root": "root",
|
||||
"version": 7
|
||||
}
|
||||
@@ -0,0 +1,34 @@
|
||||
{
|
||||
description = "minishell flake";
|
||||
inputs = {
|
||||
nixpkgs.url = "github:nixos/nixpkgs/nixos-24.11";
|
||||
};
|
||||
|
||||
outputs = { self, nixpkgs, ... }:
|
||||
let
|
||||
supportedSystems = [ "x86_64-linux" ];
|
||||
forAllSystems = f: nixpkgs.lib.genAttrs supportedSystems (system: f {
|
||||
pkgs = import nixpkgs { inherit system; };
|
||||
});
|
||||
in
|
||||
{
|
||||
packages = forAllSystems ({ pkgs }: rec {
|
||||
default = minishell;
|
||||
minishell = pkgs.stdenv.mkDerivation {
|
||||
name = "minishell";
|
||||
src = self;
|
||||
buildInputs = with pkgs; [
|
||||
gcc clang readline
|
||||
];
|
||||
hardeningDisable = [ "all" ];
|
||||
buildPhase = ''
|
||||
make
|
||||
'';
|
||||
installPhase = ''
|
||||
mkdir -p $out/bin
|
||||
cp -r * $out/bin
|
||||
'';
|
||||
};
|
||||
});
|
||||
};
|
||||
}
|
||||
Reference in new issue
Block a user