initial commit
This commit is contained in:
commit
0d3340713c
6 changed files with 104 additions and 0 deletions
30
flake.nix
Normal file
30
flake.nix
Normal file
|
|
@ -0,0 +1,30 @@
|
|||
{
|
||||
description = "glonkers glonkers glonkers";
|
||||
inputs = {
|
||||
flake-utils.url = "github:numtide/flake-utils";
|
||||
nixpkgs.url = "nixpkgs/nixos-unstable";
|
||||
};
|
||||
outputs = { self, nixpkgs, flake-utils }:
|
||||
flake-utils.lib.eachDefaultSystem (system:
|
||||
let
|
||||
pkgs = import nixpkgs { inherit system; };
|
||||
in
|
||||
{
|
||||
defaultPackage = pkgs.stdenv.mkDerivation {
|
||||
name = "glonkers";
|
||||
src = ./.;
|
||||
naitiveBuildInputs = with pkgs; [
|
||||
gcc
|
||||
pkg-config
|
||||
];
|
||||
buildInputs = with pkgs; [
|
||||
sdl3
|
||||
];
|
||||
installPhase = ''
|
||||
mkdir -p $out/bin
|
||||
cp glonkers $out/bin
|
||||
'';
|
||||
};
|
||||
}
|
||||
);
|
||||
}
|
||||
Loading…
Add table
Add a link
Reference in a new issue